From bed623b11ef007bb46b26f1f995b6073914383c5 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 31 Jul 2010 11:49:39 +0000 Subject: SWORD25: Fix compilation svn-id: r53193 --- engines/sword25/math/geometry.cpp | 19 ++++++------------- engines/sword25/math/geometry.h | 15 +++++---------- 2 files changed, 11 insertions(+), 23 deletions(-) (limited to 'engines/sword25/math') 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 -- cgit v1.2.3