Exemplo n.º 1
0
        public Player(PlayerSeat seat, TeamData teamData = null, LibraryData deckData = null,
                      Configurations configurations      = null)
        {
            Configurations = configurations;
            Seat           = seat;
            Hand           = new Collection <IRuntimeCard>();

            if (teamData != null)
            {
                Team = new Team(this, teamData);
            }

            if (deckData != null)
            {
                Library = new Library(this, deckData, configurations);
            }

            Graveyard = new Graveyard(this);

            #region Mechanics

            DrawMechanics       = new DrawMechanics(this);
            DiscardMechanics    = new DiscardMechanics(this);
            PlayCardMechanics   = new PlayCardMechanics(this);
            StartTurnMechanics  = new StartTurnMechanics(this);
            FinishTurnMecahnics = new FinishTurnMecahnics(this);
            SpawnMechanics      = new SpawnMechanics(this);
            ManaMechanics       = new ManaMechanics(this);

            #endregion
        }
Exemplo n.º 2
0
 void IDrawable.DoDraw(int amount, IEffectable source) => DrawMechanics.DoDraw(amount, source);
Exemplo n.º 3
0
 public bool Draw() => DrawMechanics.Draw();
Exemplo n.º 4
0
 void IPlayer.DrawStartingHand() => DrawMechanics.DrawStartingHand();