Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
objecthudgetvoxels.h
1 #pragma once
2 
3 #include <memory>
4 #include <vector>
5 
6 #include "factions/factionrelation.h"
7 
8 class Ray;
9 class ObjectHudget;
11 
12 
14 public:
17 
18  ObjectHudget* hudget();
19 
20  void setTargetHightlight(bool targetHightlight);
21  void setRelationType(FactionRelationType relationType);
22 
23  float openingAngle() const;
24  void setOpeningAngle(float openingAngle);
25 
26  void update(float deltaSec);
27  void draw();
28 
29  bool isAt(const Ray& ray) const;
30 
31 
32 protected:
33  ObjectHudget* m_hudget;
34 
35  std::unique_ptr<ObjectHudgetCornerVoxels> m_lu;
36  std::unique_ptr<ObjectHudgetCornerVoxels> m_lb;
37  std::unique_ptr<ObjectHudgetCornerVoxels> m_ru;
38  std::unique_ptr<ObjectHudgetCornerVoxels> m_rb;
39 
40  float m_openingAngle;
41  bool m_targetHightlight;
42  FactionRelationType m_relationType;
43 };
44 
Definition: objecthudgetvoxels.h:13
Definition: objecthudgetcornervoxels.h:14
Definition: objecthudget.h:15
Definition: ray.h:12