public GameTableController(Table table) { this._gameTable = table; this._cardConfig = new CardConfiguration(); this._reserveCardsController = new ReserveCardsController(); this._playerMovesQueue = new Queue <PlayerController>(); this._cardsOnTable = new Stack <Card>(); this._tablePlayers = new List <Player>(); this._trash = new TrashController(); this._actionsController = new GameActionsController(this, this._reserveCardsController); }
public GameActionsController(GameTableController tableCtrl, ReserveCardsController reserveCtrl) { // this._actionsHistory = new Stack<IGameAction>(); this._tableCtrl = tableCtrl; this._reserveCtrl = reserveCtrl; this._actions = new Dictionary <CardActions, Action <Guid, Dictionary <string, object> > > { { CardActions.EarnBuyCoins, this.GainBuyCoins }, { CardActions.EarnBuys, this.GainBuys }, { CardActions.EarnCards, this.GetFromDeck }, { CardActions.EarnMoves, this.GainActions } }; }