private void OnTurnBegun(TurnBegun e)
        {
            var newTurnIsFriendly = e.Character.IsFriendly;

            if (!_isFriendlyTurn && newTurnIsFriendly)
            {
                Sound.SoundEffect("SFX/turn-start.wav", DefaultVolume).Play();
            }
            _isFriendlyTurn = newTurnIsFriendly;
        }
Exemple #2
0
        // </public>  <protected>

        protected virtual void OnTurnBegun(TurnBegunEventArgs e = null)
        => TurnBegun?.Invoke(this, e ?? new TurnBegunEventArgs(TurnCounter, currentPieces));
Exemple #3
0
 private void OnTurnBegun(TurnBegun e) => e.Character.Notify(e);
Exemple #4
0
 internal void Notify(TurnBegun e)
 {
     State.IsHiding         = false;
     State.IsOverwatching   = false;
     State.OverwatchedTiles = new Dictionary <Point, ShotCoverInfo>();
 }