class TrgTolerance {
// this boolean gate will return true till depletion or reset()
var maxRepeats:Int
var repeats:Int = 0
init(maxRepeats:Int) {
self.maxRepeats = maxRepeats
}
func setMaxRepeats(maxRepeats:Int){
self.maxRepeats = maxRepeats...
class AXCmdBreaker{
// separate command parameter from the command
var conjuration:String
init(conjuration: String) {
self.conjuration = conjuration
}
func extractCmdParam(s1:String)->String{
if s1.contains(conjuration){
return...
public class AXCmdBreaker {
// separate command parameter from the command
public String conjuration;
public AXCmdBreaker(String conjuration) {
this.conjuration = conjuration;
}
public String extractCmdParam(String s1){
if (s1.contains(conjuration)){...
public class AXCmdBreaker {
private String conjuration;
public AXCmdBreaker(String conjuration) {
this.conjuration = conjuration;
}
public String extractCmdParam(String s1){
if (s1.contains(conjuration)){
return s1.replace(conjuration,"").trim()...