-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathairship_segment.h
47 lines (33 loc) · 1 KB
/
airship_segment.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef AIRSHIP_SEGMENT_H_
#define AIRSHIP_SEGMENT_H_
#include "game_object.h"
#include "collidable.h"
#include "crew.h"
#include "workstation.h"
#include <vector>
namespace game {
class AirshipSegment : public Collidable
{
public:
AirshipSegment(const glm::vec3& position, Geometry* geom, Shader* shader, GLuint texture);
void Update(double delta_time, GuiState* gui_state) override;
bool AssignCrew(Crew* crew);
bool UnassignCrew(Crew* crew);
bool HasCrew(Crew* crew);
void SetCrewDestination(Crew* crew, Workstation* workstation);
void HandleCollisionEvent(CollisionEvent& event) override;
void HandleNewCollisionEvent(CollisionEvent& event) override;
void AddWorkstation(Workstation* workstation);
bool RemoveWorkstation(Workstation* workstation);
bool GetDisable() { return disable_; }
void SetDisable(bool disable);
bool powerup_pickup;
protected:
// Crew
int num_workstations_;
std::vector<Workstation*> workstations_;
float health_;
bool disable_;
};
}
#endif