示例#1
0
 public void ScanHamster(IPlayer sender, Hamster hamster)
 {
     if (this.Game.DiningRoom.Door.IsOpen)
     {
         sender.Reply($"You hold the {hamster} in front of the {this}. A short beep can be heard.");
         Game.BroadcastMsg($"{sender} holds the {hamster} in front of the {this}. A short beep can be heard.", sender);
     }
     else
     {
         sender.Reply($"You hold the {hamster} in front of the {this}. A short beep, and the {this.Game.DiningRoom.Door} jumps open.");
         Game.BroadcastMsg($"{sender} holds the {hamster} in front of the {this}. A short beep, and the {this.Game.DiningRoom.Door} jumps open.", sender);
         this.Game.DiningRoom.Door.Unlock();
     }
 }
示例#2
0
 public Cage(FindLostyGame game) : base(game)
 {
     this.Hamster = new Hamster(game);
     this.Add(this.Hamster);
 }