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.cc
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.cc')
-rw-r--r--src/game/base/navpoint.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/game/base/navpoint.cc b/src/game/base/navpoint.cc
index 650473b..2c76807 100644
--- a/src/game/base/navpoint.cc
+++ b/src/game/base/navpoint.cc
@@ -10,16 +10,22 @@
namespace game
{
+const Template *NavPoint::navpoint_template = 0;
+
NavPoint::NavPoint() : core::Entity()
{
entity_shape = core::Entity::Diamond;
get_color().assign(1.0f, 1.0f);
get_color_second().assign(0.6f, 1.0f);
set_radius(0.25f);
- set_flag(core::Entity::Bright);
- //set_flag(core::Entity::ShowOnMap);
entity_moduletypeid = navpoint_enttype;
+
+ // use template settings if available
+ if (navpoint_template) {
+ navpoint_template->apply(this);
+ }
+
}
NavPoint::~NavPoint()