Пример #1
0
 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;
     }
 }
Пример #2
0
 public Command(Matcher m, String name)
 {
     this.matcher = m;
     this.name = name;
 }
Пример #3
0
 public Command(Matcher m, String name)
 {
     this.matcher = m;
     this.name    = name;
 }