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