Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
squadlogic.h
1 #pragma once
2 
3 #include <vector>
4 #include <memory>
5 
6 #include "glm/glm.hpp"
7 class Ship;
8 class Squad;
9 
15 {
16 public:
17  SquadLogic(Ship& ship);
18  ~SquadLogic();
19  Ship* ship();
20 
21  void joinSquadOf(Ship* leader);
22  void joinSquad(std::shared_ptr<Squad> squad);
23  void leaveSquad();
24  std::shared_ptr<Squad> squad();
25  bool inSquad();
26  bool isSquadLeader();
27 
28  glm::vec3 formationPosition();
29  glm::vec3 formationUp();
30 
31 
32 protected:
33  Ship& m_ship;
34  std::shared_ptr<Squad> m_squad;
35 };
36 
Definition: squadlogic.h:14
Definition: squad.h:16
Definition: ship.h:23