summaryrefslogtreecommitdiffstats
path: root/src/object/robotmain.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2013-03-30 15:01:00 +0100
committerPiotr Dziwinski <piotrdz@gmail.com>2013-03-30 15:23:05 +0100
commite218dcfdf2c58f8841e7ebd220527d08e870a6d5 (patch)
treea567db04a8a51e2db87f80e259faf222a7d4becd /src/object/robotmain.h
parentbfc701e286259d9a7aa2ff8240704eab2ba3a237 (diff)
parente607fed265070be8c518d4302d8b76f738421fb3 (diff)
downloadcolobot-e218dcfdf2c58f8841e7ebd220527d08e870a6d5.tar.gz
colobot-e218dcfdf2c58f8841e7ebd220527d08e870a6d5.tar.bz2
colobot-e218dcfdf2c58f8841e7ebd220527d08e870a6d5.zip
Merge branch 'dev'
Merging content from dev
Diffstat (limited to 'src/object/robotmain.h')
-rw-r--r--src/object/robotmain.h31
1 files changed, 21 insertions, 10 deletions
diff --git a/src/object/robotmain.h b/src/object/robotmain.h
index cb0cd7f..fe5fbd5 100644
--- a/src/object/robotmain.h
+++ b/src/object/robotmain.h
@@ -71,12 +71,10 @@ enum Phase
};
-class CInstanceManager;
class CEventQueue;
class CSoundInterface;
-namespace Gfx
-{
+namespace Gfx {
class CEngine;
class CLightManager;
class CWater;
@@ -84,17 +82,16 @@ class CCloud;
class CLightning;
class CPlanet;
class CTerrain;
-};
+}
-namespace Ui
-{
+namespace Ui {
class CMainDialog;
class CMainShort;
class CMainMap;
class CInterface;
class CDisplayText;
class CDisplayInfo;
-};
+}
struct EndTake
@@ -178,9 +175,14 @@ const int AXIS_INVALID = -1;
class CRobotMain : public CSingleton<CRobotMain>
{
public:
- CRobotMain(CInstanceManager* iMan, CApplication* app);
+ CRobotMain(CApplication* app);
~CRobotMain();
+ Gfx::CCamera* GetCamera();
+ Gfx::CTerrain* GetTerrain();
+ Ui::CInterface* GetInterface();
+ Ui::CDisplayText* GetDisplayText();
+
void CreateIni();
//! Sets the default input bindings (key and axes)
@@ -302,6 +304,7 @@ public:
const char* GetSavegameDir();
const char* GetPublicDir();
const char* GetFilesDir();
+ bool GetRetroMode();
void SetGamerName(const char *name);
char* GetGamerName();
@@ -358,7 +361,6 @@ protected:
void Convert();
void CreateScene(bool soluce, bool fixScene, bool resetObject);
- void CreateModel();
Math::Vector LookatPoint(Math::Vector eye, float angleH, float angleV, float length);
CObject* CreateObject(Math::Vector pos, float angle, float zoom,
float height, ObjectType type, float power=1.0f,
@@ -390,7 +392,6 @@ protected:
void UpdateSpeedLabel();
protected:
- CInstanceManager* m_iMan;
CApplication* m_app;
CEventQueue* m_eventQueue;
CMainMovie* m_movie;
@@ -447,8 +448,18 @@ protected:
int m_delayWriteMessage;
int m_movieInfoIndex;
+ //Level Checker flags
+ bool m_beginObject;
+ bool m_terrainGenerate;
+ bool m_terrainInitTextures;
+ bool m_terrainInit;
+ bool m_terrainCreate;
+
+ int m_version; // Mission file version
+ bool m_retroStyle; // Retro
bool m_immediatSatCom; // SatCom immediately?
bool m_beginSatCom; // messages SatCom poster?
+ bool m_lockedSatCom; // SatCom locked?
bool m_movieLock; // movie in progress?
bool m_satComLock; // call of SatCom is possible?
bool m_editLock; // edition in progress?