Example #1
0
 bool CanMoveTo(int x, int y)
 {
     return(Checker.IsInsideMap(x, y) && (Checker.IsEmpty(x, y) || IsGoldOrPlayer(x, y)));
 }
Example #2
0
 bool CanFallDown(int x, int y)
 {
     return(Checker.IsInsideMap(x, y + 1) && (Checker.IsEmpty(x, y + 1) || IsCellPlayerOrMonster(x, y + 1)));
 }