Beispiel #1
0
	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
	}
Beispiel #2
0
	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
	}