Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
character.h
1 #pragma once
2 
3 #include <memory>
4 
5 
6 class AiTask;
7 class Faction;
8 class Ship;
9 
15 class Character {
16 public:
17  Character(Ship& ship, Faction& faction);
18 
19  Faction& faction();
20  void setFaction(Faction& faction);
21 
22  void setTask(std::shared_ptr<AiTask> task);
23  std::shared_ptr<AiTask> task();
24 
25  virtual void update(float deltaSec);
26 
27 protected:
28  Ship& m_ship;
29  Faction* m_faction;
30  std::shared_ptr<AiTask> m_task;
31 };
32 
Definition: aitask.h:15
Definition: faction.h:10
Definition: character.h:15
Definition: ship.h:23