Exemple #1
0
 // come out of stealth
 public void ExitStealth()
 {
     if (stealthed)
     {
         stealthed = false;
         OnReveal?.Invoke();
     }
 }
Exemple #2
0
        public void SecondReveal(int i_Row, int i_Col)
        {
            m_GameBoard.Expose(i_Row, i_Col);

            if (Reveal != null)
            {
                Reveal.Invoke(i_Row, i_Col);
            }
        }
Exemple #3
0
        public void FirstReveal(int i_Row, int i_Col, bool i_TurnPlayer1)
        {
            m_GameBoard.Expose(i_Row, i_Col);

            if (Reveal != null)
            {
                Reveal.Invoke(i_Row, i_Col);
            }

            if (m_Player2.Pc && !i_TurnPlayer1)
            { // Case this is turn of player 2 and it is AI -> need to update memeory of AI.
                m_Player2.m_PlayerVsComputer.UpdateMemory(i_Row, i_Col, m_GameBoard.m_Board[i_Row, i_Col].Value);
            }
        }