Ejemplo n.º 1
0
 public Game(IPlayable player1, IPlayable player2)
 {
     _player1              = player1;
     _player2              = player2;
     _gameData             = new GameData();
     _gameData.Player1Name = player1.GetType().Name;
     _gameData.Player2Name = player2.GetType().Name;
 }
Ejemplo n.º 2
0
        void IEffect.ApplyAuraTo(IPlayable playable)
        {
            if (!(playable is T p))
            {
                throw new Exception($"Cannot apply {this} to an entity of type {playable.GetType()}");
            }

            ApplyAuraTo(p);
        }