コード例 #1
0
ファイル: Dungeon.cpp プロジェクト: bennybroseph/Assesments
	bool OnKeyPress(int a_iKey) // THis is called by the 'MainLoop' when standard input is selected
	{
		if (oRobot.IsAlive())
			oRobot.OnKeyPress(a_iKey);

		return oRobot.IsAlive(); // Returns if the program should continue or not
	}
コード例 #2
0
ファイル: Dungeon.cpp プロジェクト: bennybroseph/Assesments
	bool Handle() // This is called by the 'MainLoop' when text input is selected
	{
		if (oRobot.IsAlive())
			oRobot.Handle();

		return oRobot.IsAlive(); // Returns if the program should continue or not
	}