69class
Skyscraper :
public OgreBites::ApplicationContext,
public OgreBites::InputListener
72 friend class MainScreen;
87 virtual bool OnInit();
98 Ogre::RenderWindow*
CreateRenderWindow(
const Ogre::NameValuePairList* miscParams = 0,
const std::string& windowName =
"");
99 void destroyRenderWindow();
104 std::string SelectBuilding();
105 bool Load(
const std::string &filename,
EngineContext *parent = 0,
const Vector3 &position = Vector3::ZERO,
Real rotation = 0.0,
const Vector3 &area_min = Vector3::ZERO,
const Vector3 &area_max = Vector3::ZERO);
112 void SetFullScreen(
bool enabled);
117 virtual void MacOpenFile(
const wxString &filename);
119 std::filesystem::path GetExeDirectory();
120 bool keyPressed(
const OgreBites::KeyboardEvent& evt);
121 bool keyReleased(
const OgreBites::KeyboardEvent& evt);
122 bool mouseMoved(
const OgreBites::MouseMotionEvent &evt);
123 bool mousePressed(
const OgreBites::MouseButtonEvent &evt);
124 bool mouseReleased(
const OgreBites::MouseButtonEvent &evt);
125 bool mouseWheelRolled(
const OgreBites::MouseWheelEvent &evt);
126 bool touchMoved(
const OgreBites::TouchFingerEvent &evt);
127 bool touchPressed(
const OgreBites::TouchFingerEvent &evt);
128 bool touchReleased(
const OgreBites::TouchFingerEvent &evt);
131 std::string GetDataPath();
132 MainScreen* GetWindow();
158 void Report(
const std::string &message);
159 bool ReportError(
const std::string &message);
161 void GetKeyStates(
EngineContext *engine, OgreBites::Keycode &key,
bool down);
162 void ProcessMovement(
EngineContext *engine,
bool control =
false,
bool shift =
false,
bool angle_only =
false);
163 void HandleMouseMovement();
164 void EnableFreelook(
bool value);
166 wxCmdLineParser *parser;