Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
factionrelation.h
1 #pragma once
2 
3 #include <string>
4 
5 
6 class Faction;
7 
8 enum class FactionRelationType {
9  Enemy,
10  NegativeNeutral,
11  Neutral,
12  PositiveNeutral,
13  Friend
14 };
15 
17 public:
18  FactionRelation(Faction& factionA, Faction& factionB, float friendliness);
19 
20  Faction& factionA();
21  Faction& factionB();
22 
23  float friendliness() const;
24  void setFriendliness(float friendliness);
25 
26  FactionRelationType type() const;
27 
28  static std::string typeName(FactionRelationType type);
29 
30 
31 protected:
32  Faction& m_factionA;
33  Faction& m_factionB;
34  float m_friendliness;
35  FactionRelationType m_type;
36 };
37 
Definition: faction.h:10
Definition: factionrelation.h:16