Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
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
14
class
SquadLogic
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
SquadLogic
Definition:
squadlogic.h:14
Squad
Definition:
squad.h:16
Ship
Definition:
ship.h:23
src
ai
squadlogic.h
Generated on Sun Mar 30 2014 13:32:30 for Voxellancer by
1.8.6