diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-03 23:35:59 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-03 23:35:59 +0000 |
commit | 8126e1941666f5dccd61e9ecc60db162049bb8ff (patch) | |
tree | 9468363f1670352ec8d5f2155cfcfa77b602d772 /src/game/base/faction.h | |
parent | fb18eff66171e855e378575b534683e4fb9c20f5 (diff) |
Added initial support for NPC patrol routes,
added support for lawfull/unlawfull factions.
Diffstat (limited to 'src/game/base/faction.h')
-rw-r--r-- | src/game/base/faction.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/base/faction.h b/src/game/base/faction.h index 997b6fc..3775043 100644 --- a/src/game/base/faction.h +++ b/src/game/base/faction.h @@ -30,6 +30,10 @@ public: return faction_color_second; } + inline const bool lawfull() const { + return faction_lawfull; + } + /* --- actors ----------------------------------------------------- */ /** @@ -47,6 +51,10 @@ public: faction_color_second.assign(color_second); } + inline void set_lawfull(const bool lawfull) { + faction_lawfull = lawfull; + } + /* --- static ----------------------------------------------------- */ /** @@ -70,6 +78,8 @@ private: math::Color faction_color; math::Color faction_color_second; + bool faction_lawfull; + /* --- static ----------------------------------------------------- */ static core::InfoType *faction_infotype; |