Esempio n. 1
0
        public void ApproveHint(Player player)
        {
            CurrentTurn.ApproveHint();

            AddPublicEvent(GameEvent.PlayerApprovedHint(player, DateTime.Now, CurrentTurn.HintWord !, CurrentTurn.WordCount !.Value));
        }
Esempio n. 2
0
        public void GiveHint(Player player, string hintWord, int wordCount)
        {
            CurrentTurn.GiveHint(hintWord, wordCount);

            AddCultistEvent(GameEvent.PlayerGaveHint(player, DateTime.Now, hintWord, wordCount));
        }
Esempio n. 3
0
 private void AddPublicEvent(GameEvent @event)
 {
     _publicEvents ??= new List <GameEvent>();
     _publicEvents.Add(@event);
 }
Esempio n. 4
0
 private void AddCultistEvent(GameEvent @event)
 {
     _cultistEvents ??= new List <GameEvent>();
     _cultistEvents.Add(@event);
 }
Esempio n. 5
0
        public void ClearPlayerCharacter(Player player)
        {
            player.ClearCharacter();

            AddPublicEvent(GameEvent.PlayerClearedCharacter(player, DateTime.Now));
        }