From fd09071c29452bdfea2c519f0defbffebee42f4c Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sat, 22 Sep 2012 14:40:13 +0200 Subject: Data dir paths - changed access to paths in data directory in CApplication - models now load from data directory --- src/object/object.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/object/object.h') diff --git a/src/object/object.h b/src/object/object.h index 1301768..b555856 100644 --- a/src/object/object.h +++ b/src/object/object.h @@ -21,11 +21,14 @@ #include "graphics/engine/engine.h" #include "graphics/engine/camera.h" -#include "sound/sound.h" + #include "object/object_ids.h" +#include "sound/sound.h" + class CInstanceManager; +class CApplication; class CPhysics; class CBrain; class CMotion; @@ -407,6 +410,8 @@ public: float GetTraceWidth(); void SetTraceWidth(float width); + std::string GetModelDirName(); + protected: bool EventFrame(const Event &event); void VirusFrame(float rTime); @@ -422,6 +427,7 @@ protected: protected: CInstanceManager* m_iMan; + CApplication* m_app; Gfx::CEngine* m_engine; Gfx::CLightManager* m_lightMan; Gfx::CTerrain* m_terrain; -- cgit v1.2.3-1-g7c22