예제 #1
0
        private void CheckMovement(int initialCf, int initialDa, int initialAlt,
                                   HexAxis moveAxis, uint moveMagnitude,
                                   int finalCf, int finalDa, int finalAlt, int finalDaValue)
        {
            var coordinate = new HexGridCoordinate
            {
                CfCoordinate = initialCf,
                DaCoordinate = initialDa,
                Altitude     = initialAlt
            };

            _calculator.Move(coordinate, moveAxis, moveMagnitude);
            CheckCoord(coordinate, finalCf, finalDa, finalAlt, finalDaValue);
        }
예제 #2
0
 public void Move(HexAxis direction)
 {
     _hexGridCalculator.Move(Position, direction, 1);
     OnMoved();
 }