Beispiel #1
0
        public void Move()
        {
            switch (Direction)
            {
            case DirectionType.North:
                MoveNorth();
                break;

            case DirectionType.East:
                MoveEast();
                break;

            case DirectionType.South:
                MoveSouth();
                break;

            case DirectionType.West:
                MoveWest();
                break;
            }

            var temp = CustomRectangle.Clone() as CustomRectangle;

            AllMoves.Add(temp);
        }
Beispiel #2
0
        public Coordinate()
        {
            CustomRectangle = new CustomRectangle();
            var temp = CustomRectangle.Clone() as CustomRectangle;

            AllMoves.Add(temp);
        }