Ejemplo n.º 1
0
 public void BurnSplinters(IPlayer sender, Splinters splinters)
 {
     sender.Transfer(splinters, Game.EntryHall);
     this.Burning = true;
     sender.Reply($"The smoldering ash is hot enough to make the splinters catch fire. The fire is burning again.");
     Game.BroadcastMsg($"{sender} lighted the {this} in the {Game.Kitchen}");
 }
Ejemplo n.º 2
0
        public override void Use(IPlayer sender, IThing other)
        {
            Action action = other switch
            {
                Splinters splinters => () => BurnSplinters(sender, splinters),
                Tofu tofu => () => BurnTofu(sender, tofu),
                _ => () => { }
            };

            action();
        }
Ejemplo n.º 3
0
 public void BurnSplinters(IPlayer sender, Splinters splinters)
 {
     sender.Inventory.Transfer(splinters, Game.DiningRoom.Inventory);
     this.Burning = true;
     sender.Reply($"The smoldering ash is hot enough to make the splinters catch fire. The fire is burning again.");
 }