public void InitializeCell(Point i_Location, Game.ePlayerId i_OwnerId) { m_OwnerId = i_OwnerId; m_Sign = GetSignFromPlayerId(i_OwnerId); m_Location = i_Location; if (m_Sign != eSigns.Empty) { if (m_Sign == eSigns.FirstPlayerSign) { m_Direction = eDirection.Up; } else if (m_Sign == eSigns.SecondPlayerSign) { m_Direction = eDirection.Down; } m_MovingOptions = new Dictionary <Point, Game.eMoveType>(); } }
public void InitializeCell(int i_Row, int i_Col, Game.ePlayerId i_OwnerId) { m_OwnerId = i_OwnerId; m_Sign = GetSignFromPlayerId(i_OwnerId); m_Identifier = getCellIdByRowCol(i_Row, i_Col); if (m_Sign != eSigns.Empty) { if (m_Sign == eSigns.FirstPlayerSign) { m_Direction = eDirection.Up; } else if (m_Sign == eSigns.SecondPlayerSign) { m_Direction = eDirection.Down; } m_MovingOptions = new Dictionary <string, Game.eMoveType>(); } }