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); }
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); }
public virtual void PerformPlayerAction(PlayedEventArgs args) { ActionPerformed?.Invoke(this, args); }