Example #1
0
 public void performAction(Player player)
 {
     switch (cardType)
     {
         case CardType.Tax: player.TransferMoney(Board.Banker, value);
             break;
         case CardType.Reward: Board.Banker.TransferMoney(player, value);
             break;
         case CardType.MoveRelative: player.MoveRelative(value);
             break;
         case CardType.MoveAbsolute: player.MoveAbsolute(value);
             break;
     }
 }
Example #2
0
 public override void PerformAction(Player inhabitant)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public abstract void PerformAction(Player inhabitant);
Example #4
0
 public static void PassGo(Player dest)
 {
     Banker.TransferMoney(dest, 200);
 }