diff options
Diffstat (limited to 'src/game/base/npc.cc')
-rw-r--r-- | src/game/base/npc.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/base/npc.cc b/src/game/base/npc.cc index 8b81f04..f8c27d9 100644 --- a/src/game/base/npc.cc +++ b/src/game/base/npc.cc @@ -6,6 +6,7 @@ #include "base/npc.h" #include "base/game.h" +#include "base/patrol.h" namespace game { @@ -72,6 +73,9 @@ NPC::NPC(const Profile profile, const ShipModel *shipmodel) : Ship(0, shipmodel) npc_profile = profile; npc_mood = MoodWander; npc_destroyed_timestamp = 0; + + npc_patrol = 0; + npc_leader = 0; } void NPC::set_mood(const Mood mood) @@ -84,6 +88,11 @@ void NPC::set_leader(Ship *leader) npc_leader = leader; } +void NPC::set_patrol(Patrol *patrol) +{ + npc_patrol = patrol; +} + void NPC::frame(const unsigned long elapsed) { if (state() == core::Entity::Destroyed) { |