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

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

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

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