Beispiel #1
0
 public void RaiseEvent(EventEnum typeEvent, Board board)
 {
     foreach (Card card in Events[Enum.GetName(typeof(EventEnum), typeEvent)])
     {
         card.ExecuteActions(typeEvent, board);
     }
 }
Beispiel #2
0
 public void ExecuteActions(EventEnum typeEvent, Board board)
 {
     foreach (CardAction cardAction in CardActions)
     {
         if(cardAction.TypeEvent == typeEvent)
         {
             cardAction.Execute(board);
         }
     }
 }
Beispiel #3
0
 public Game()
 {
     KingBoard = new Board();
 }