diff --git a/src/Makefile.am b/src/Makefile.am index 839dd3dd..5d8e4835 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,7 +8,7 @@ liblol_a_SOURCES = \ forge.cpp forge.h video.cpp video.h timer.cpp timer.h bitfield.h \ profiler.cpp profiler.h input.h input.cpp world.cpp world.h \ sample.cpp sample.h sampler.cpp sampler.h text.cpp text.h \ - emitter.cpp emitter.h numeric.h \ + emitter.cpp emitter.h numeric.h worldentity.cpp worldentity.h \ \ sdlinput.cpp sdlinput.h \ \ diff --git a/src/core.h b/src/core.h index a4b8f640..e7778baa 100644 --- a/src/core.h +++ b/src/core.h @@ -35,6 +35,7 @@ #include "sample.h" #include "text.h" #include "tileset.h" +#include "worldentity.h" #include "world.h" // Other objects diff --git a/src/worldentity.cpp b/src/worldentity.cpp new file mode 100644 index 00000000..10e9df5d --- /dev/null +++ b/src/worldentity.cpp @@ -0,0 +1,46 @@ +// +// Lol Engine +// +// Copyright: (c) 2010-2011 Sam Hocevar +// This program is free software; you can redistribute it and/or +// modify it under the terms of the Do What The Fuck You Want To +// Public License, Version 2, as published by Sam Hocevar. See +// http://sam.zoy.org/projects/COPYING.WTFPL for more details. +// + +#if defined HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include + +#include "core.h" + +/* + * Public WorldEntity class + */ + +WorldEntity::WorldEntity() +{ +} + +WorldEntity::~WorldEntity() +{ +} + +char const *WorldEntity::GetName() +{ + return ""; +} + +void WorldEntity::TickGame(float deltams) +{ + Entity::TickGame(deltams); +} + +void WorldEntity::TickDraw(float deltams) +{ + Entity::TickDraw(deltams); +} + diff --git a/src/worldentity.h b/src/worldentity.h new file mode 100644 index 00000000..324d5213 --- /dev/null +++ b/src/worldentity.h @@ -0,0 +1,40 @@ +// +// Lol Engine +// +// Copyright: (c) 2010-2011 Sam Hocevar +// This program is free software; you can redistribute it and/or +// modify it under the terms of the Do What The Fuck You Want To +// Public License, Version 2, as published by Sam Hocevar. See +// http://sam.zoy.org/projects/COPYING.WTFPL for more details. +// + +// +// The GraphicEntity class +// ----------------------- +// + +#if !defined __DH_WORLDENTITY_H__ +#define __DH_WORLDENTITY_H__ + +#include "entity.h" + +class WorldEntity : public Entity +{ +public: + float3 position; + float3 rotation; + float3 velocity; + float3 bbox[2]; + +protected: + WorldEntity(); + virtual ~WorldEntity(); + + virtual char const *GetName(); + + virtual void TickGame(float deltams); + virtual void TickDraw(float deltams); +}; + +#endif // __DH_WORLDENTITY_H__ + diff --git a/win32/deushax.vcxproj b/win32/deushax.vcxproj index 5d9d7371..8f3b8311 100644 --- a/win32/deushax.vcxproj +++ b/win32/deushax.vcxproj @@ -41,6 +41,7 @@ + @@ -72,6 +73,7 @@ + {EF1A4E80-63FA-4EB0-B834-12B6C500F31C} diff --git a/win32/deushax.vcxproj.filters b/win32/deushax.vcxproj.filters index 6ea39847..674d5f3e 100644 --- a/win32/deushax.vcxproj.filters +++ b/win32/deushax.vcxproj.filters @@ -81,6 +81,9 @@ lolengine + + lolengine + lolengine @@ -163,6 +166,9 @@ lolengine + + lolengine + diff --git a/win32/monsterz.vcxproj b/win32/monsterz.vcxproj index ea7fabdd..161a9ab8 100644 --- a/win32/monsterz.vcxproj +++ b/win32/monsterz.vcxproj @@ -44,6 +44,7 @@ + @@ -77,6 +78,7 @@ + {17f0f184-4436-4d08-b8aa-16572ea238db} diff --git a/win32/monsterz.vcxproj.filters b/win32/monsterz.vcxproj.filters index 430fa9d7..c0cf3b3c 100644 --- a/win32/monsterz.vcxproj.filters +++ b/win32/monsterz.vcxproj.filters @@ -81,6 +81,9 @@ lolengine + + lolengine + lolengine @@ -166,6 +169,9 @@ lolengine + + lolengine +