//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); }
//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); }
//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); }
//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); }
//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); }
void HandleMoveEvent(object sender, EventArgs m) { EventArgStructures.MoveEventCommand moveData = (EventArgStructures.MoveEventCommand)m; MovePerson(moveData.p, moveData.from, moveData.to); }