public override bool match(string s, World g) { selected = null; foreach (Matcher f in m) { if (f.match(s,g)){ selected=f; } } if (selected==null){ return false; } else{ return true; } }
public Command(Matcher m, String name) { this.matcher = m; this.name = name; }
public Command(Matcher m, String name) { this.matcher = m; this.name = name; }