public void Act(Player player, IOcupant ocupant) { if (ocupant is Enemy) { ocupant.EditPlayer(player); } else { throw new Exception("Not Key Object"); } }
public void Act(Player player, IOcupant ocupant) { if (ocupant is null) { return; } else { throw new Exception("Not Treasure Object"); } }
public void Act(Player player, IOcupant ocupant) { if (ocupant is Treasure) { ocupant.EditPlayer(player); } else { throw new Exception("Not Treasure Object"); } }
public void Pay(Player player, IOcupant ocupant) { Action.Act(player, ocupant); }
public Cell(IOcupant ocupant) { Player = null; _ocupant = ocupant; }