private void ChangeDirection() { string strCol = CPacman.BoardValue(m_iPosX + (Translation(m_iDir, true) * 2), m_iPosY + (Translation(m_iDir, false) * 2)); if (strCol == "║" || strCol == "╝" || strCol == "╗" || strCol == "╔" || strCol == "╚" || strCol == "═" || (m_boExit && strCol == "=")) { m_iDir--; if (m_iDir == -1) { m_iDir = 3; } if (m_boChD) { ChangeDirection(); m_boChD = !m_boChD; } else { ChangeDirection(strCol); } } }
static void Main(string[] args) { pPac = new CPacman(); pPac.Start(); }