Exemple #1
0
 private void MovePlayerThroughDoor(object sender, room destination)
 {
     Player.UpdateLocation(destination);
 }
Exemple #2
0
 private void TraverseDoor(object sender, room destination)
 {
     TraverseDoorEvent?.Invoke(sender, destination);
 }
Exemple #3
0
        public gameLogic()
        {
            room r = new room();

            r.TraverseDoorEvent += MovePlayerThroughDoor;
        }
Exemple #4
0
 public void UpdateLocation(room destination)
 {
     this.location = destination;
 }