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