diff options
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 |