diff options
author | Eugene Sandulenko | 2010-07-31 11:49:39 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 22:15:10 +0000 |
commit | bed623b11ef007bb46b26f1f995b6073914383c5 (patch) | |
tree | 823c2cf9aeea3e45256f2e08cbdf147c76aa1eb9 /engines/sword25/math | |
parent | 6a55700935983efc0d7e9fd37563c14dcc199027 (diff) | |
download | scummvm-rg350-bed623b11ef007bb46b26f1f995b6073914383c5.tar.gz scummvm-rg350-bed623b11ef007bb46b26f1f995b6073914383c5.tar.bz2 scummvm-rg350-bed623b11ef007bb46b26f1f995b6073914383c5.zip |
SWORD25: Fix compilation
svn-id: r53193
Diffstat (limited to 'engines/sword25/math')
-rw-r--r-- | engines/sword25/math/geometry.cpp | 19 | ||||
-rw-r--r-- | engines/sword25/math/geometry.h | 15 |
2 files changed, 11 insertions, 23 deletions
diff --git a/engines/sword25/math/geometry.cpp b/engines/sword25/math/geometry.cpp index b797667c9d..f6cab4ed80 100644 --- a/engines/sword25/math/geometry.cpp +++ b/engines/sword25/math/geometry.cpp @@ -34,27 +34,20 @@ #include "sword25/math/geometry.h" -#define BS_LOG_PREFIX "GEOMETRY" +namespace Sword25 { -// ----------------------------------------------------------------------------- -// Konstruktion / Destruktion -// ----------------------------------------------------------------------------- +#define BS_LOG_PREFIX "GEOMETRY" -BS_Geometry::BS_Geometry(BS_Kernel * pKernel) : - BS_Service(pKernel) -{ +BS_Geometry::BS_Geometry(BS_Kernel *pKernel) : BS_Service(pKernel) { if (!_RegisterScriptBindings()) BS_LOG_ERRORLN("Script bindings could not be registered."); else BS_LOGLN("Script bindings registered."); } -// ----------------------------------------------------------------------------- -BS_Geometry::~BS_Geometry() -{ +BS_Service *BS_Geometry_CreateObject(BS_Kernel *pKernel) { + return new BS_Geometry(pKernel); } -// ----------------------------------------------------------------------------- - -BS_Service * BS_Geometry_CreateObject(BS_Kernel* pKernel) { return new BS_Geometry(pKernel); }
\ No newline at end of file +} // End of namespace Sword25 diff --git a/engines/sword25/math/geometry.h b/engines/sword25/math/geometry.h index fa00e9fa21..20c7eb4b54 100644 --- a/engines/sword25/math/geometry.h +++ b/engines/sword25/math/geometry.h @@ -35,27 +35,22 @@ #ifndef SWORD25_GEOMETRY_H #define SWORD25_GEOMETRY_H -// ----------------------------------------------------------------------------- -// Includes -// ----------------------------------------------------------------------------- - #include "sword25/kernel/common.h" #include "sword25/kernel/service.h" -// ----------------------------------------------------------------------------- +namespace Sword25 { class BS_Kernel; -// ----------------------------------------------------------------------------- - -class BS_Geometry : public BS_Service -{ +class BS_Geometry : public BS_Service { public: - BS_Geometry(BS_Kernel * pKernel); + BS_Geometry(BS_Kernel *pKernel); virtual ~BS_Geometry(); private: bool _RegisterScriptBindings(); }; +} // End of namespace Sword25 + #endif |