/** * 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; } }
/** * 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; } }