Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-11-12 00:03:31 +0000
committerStijn Buys <ingar@osirion.org>2010-11-12 00:03:31 +0000
commitd07d7e0d0ba022d555f418e9a072d71c190ed225 (patch)
tree40428732c2eab0796e7c4b8b8089cbf58ecea76e /src/game/base/navpoint.h
parent128d1f7b752a25f2fd2ee105c9acfe8f9d1b9be5 (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.h14
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;
};
}