예제 #1
0
        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>();
            }
        }
예제 #2
0
        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>();
            }
        }