Example #1
0
        public void Test_PlayedEventArgs_Is_Initialized_Correctly_For_EndedTurn()
        {
            var pea = new PlayedEventArgs(1, PlayerActionType.EndedTurn);

            Assert.Equal(PlayerActionType.EndedTurn, pea.ActionType);
            Assert.Equal(-1, pea.CardIndex);
            Assert.Equal(-1, pea.ManaCost);
            Assert.Equal(1, pea.Tick);
        }
Example #2
0
        public void Test_PlayedEventArg_Is_Initialized_Correctly_For_PlayedCard()
        {
            var pea = new PlayedEventArgs(4, PlayerActionType.PlayedCard, 2, 3);

            Assert.Equal(PlayerActionType.PlayedCard, pea.ActionType);
            Assert.Equal(2, pea.CardIndex);
            Assert.Equal(3, pea.ManaCost);
            Assert.Equal(4, pea.Tick);
        }
Example #3
0
 public virtual void PerformPlayerAction(PlayedEventArgs args)
 {
     ActionPerformed?.Invoke(this, args);
 }