Пример #1
0
        //This command initiates movement through the Lounge secret passageway
        //Should have logic to pass back the move command with the main player for this client
        public bool ActivateLoungeSecretPassage()
        {
            bool success = true;
            var  args    = new EventArgStructures.MoveEventCommand(Board_Controller.Person.White,
                                                                   Board_Controller.Room.Lounge,
                                                                   Board_Controller.Room.Conservatory);

            MoveEvent(this, args);
            return(success);
        }
Пример #2
0
        //Move Right command received from the GUI
        //Should have logic to figure out where to move the main player this client is controlling
        public bool MoveRight()
        {
            bool success = true;
            var  args    = new EventArgStructures.MoveEventCommand(Board_Controller.Person.Peacock,
                                                                   Board_Controller.Room.Billiard,
                                                                   Board_Controller.Room.BilliardRoomDiningRoom_Hallway);

            MoveEvent(this, args);
            return(success);
        }
Пример #3
0
        //Move Left command received from the GUI
        //Should have logic to figure out where to move the main player this client is controlling
        public bool MoveLeft()
        {
            bool success = true;
            var  args    = new EventArgStructures.MoveEventCommand(Board_Controller.Person.Mustard,
                                                                   Board_Controller.Room.Billiard,
                                                                   Board_Controller.Room.LibraryBilliardRoom_Hallway);

            MoveEvent(this, args);
            return(success);
        }
Пример #4
0
        //Move Down command received from the GUI
        //Should have logic to figure out where to move the main player this client is controlling
        public bool MoveDown()
        {
            bool success = true;
            var  args    = new EventArgStructures.MoveEventCommand(Board_Controller.Person.Plum,
                                                                   Board_Controller.Room.Billiard,
                                                                   Board_Controller.Room.BilliardRoomBallroom_Hallway);

            MoveEvent(this, args);
            return(success);
        }
Пример #5
0
        //This command initiates movement through the Study secret passageway
        //Should have logic to pass back the move command with the main player for this client
        public bool ActivateStudySecretPassage()
        {
            bool success = true;
            var  args    = new EventArgStructures.MoveEventCommand(Board_Controller.Person.White,
                                                                   Board_Controller.Room.Study,
                                                                   Board_Controller.Room.Kitchen);

            MoveEvent(this, args);
            return(success);
        }
Пример #6
0
        void HandleMoveEvent(object sender, EventArgs m)
        {
            EventArgStructures.MoveEventCommand moveData = (EventArgStructures.MoveEventCommand)m;

            MovePerson(moveData.p, moveData.from, moveData.to);
        }