Exemplo n.º 1
0
 /**
 * Overrides the super isMatch, becuase with monsters the count must also be checked
 * other - tile for comparison
 */
 public override bool isMatch(Tile other)
 {
     if(match == other.getKey() && count == other.count){
         return true;
     }
     else{
         return false;
     }
 }
Exemplo n.º 2
0
 /**
  * Checks for a match based on the keys
  * other - tile that is currently being checked against this one
  * returns - ture when there is a match, false otherwise
  */
 public virtual bool isMatch(Tile other)
 {
     if(match == other.getKey()){
         return true;
     }
     else{
         return false;
     }
 }