Exemplo n.º 1
0
        public static bool CheckEnemyBack(Map map, Tank tank)
        {
            var way = DirectionMethods.Flip(tank.Direction);

            return(CheckEnemyByWay(map, tank, way));
        }
Exemplo n.º 2
0
        public static bool CheckEnemyRight(Map map, Tank tank)
        {
            var way = DirectionMethods.RotateRight(tank.Direction);

            return(CheckEnemyByWay(map, tank, way));
        }