public static bool CheckEnemyBack(Map map, Tank tank) { var way = DirectionMethods.Flip(tank.Direction); return(CheckEnemyByWay(map, tank, way)); }
public static bool CheckEnemyRight(Map map, Tank tank) { var way = DirectionMethods.RotateRight(tank.Direction); return(CheckEnemyByWay(map, tank, way)); }