From d07d7e0d0ba022d555f418e9a072d71c190ed225 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 12 Nov 2010 00:03:31 +0000 Subject: 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. --- src/game/base/navpoint.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/game/base/navpoint.h') 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 +#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; }; } -- cgit v1.2.3