diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-12 00:03:31 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-12 00:03:31 +0000 |
commit | d07d7e0d0ba022d555f418e9a072d71c190ed225 (patch) | |
tree | 40428732c2eab0796e7c4b8b8089cbf58ecea76e /src/game/base/navpoint.h | |
parent | 128d1f7b752a25f2fd2ee105c9acfe8f9d1b9be5 (diff) |
read factions.ini and add te ablity to apply faction colors to entities,
read templates.ini and add te ablity to apply template settings to entities.
Diffstat (limited to 'src/game/base/navpoint.h')
-rw-r--r-- | src/game/base/navpoint.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/game/base/navpoint.h b/src/game/base/navpoint.h index bb2420e..0d98dc8 100644 --- a/src/game/base/navpoint.h +++ b/src/game/base/navpoint.h @@ -7,11 +7,12 @@ #ifndef __INCLUDED_BASE_NAVPOINT_H__ #define __INCLUDED_BASE_NAVPOINT_H__ -#include "core/entity.h" -#include "math/mathlib.h" - #include <string> +#include "math/mathlib.h" +#include "core/entity.h" +#include "base/template.h" + namespace game { @@ -21,6 +22,13 @@ class NavPoint : public core::Entity public: NavPoint(); ~NavPoint(); + + static inline void set_template (const Template *entitytemplate) { + navpoint_template = entitytemplate; + } + +private: + static const Template *navpoint_template; }; } |