示例#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;
     }
 }
示例#2
0
 public override void PerformAction(Player inhabitant)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public abstract void PerformAction(Player inhabitant);
示例#4
0
 public static void PassGo(Player dest)
 {
     Banker.TransferMoney(dest, 200);
 }