forked from snoutmate/Sea-Defender
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboat.h
More file actions
48 lines (35 loc) · 796 Bytes
/
boat.h
File metadata and controls
48 lines (35 loc) · 796 Bytes
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
48
#pragma once
#include <GL/glfw.h>
#include "snoutlib/misc.h"
#include "snoutlib/staticmesh.h"
#include "pe_smoke.h"
#include "pe_bubbles.h"
class Boat
{
static const int m_num_bubble_streams = 5;
static int m_names_used[3];
StaticMesh **m_model;
vec2 m_pos;
string m_name;
float m_scale;
float m_pos_shift;
float m_rot;
bool m_damaged;
bool m_sinking;
float m_hit_pos;
float m_sinking_start_time;
float m_sinking_start_pos;
float m_sinking_start_rot;
ParticleEffect *m_smoke;
ParticleEffect *m_bbl[m_num_bubble_streams];
float m_bbl_emitpos_x[m_num_bubble_streams];
string randname(int index);
public:
OBB m_obb;
Boat(vec2 pos,int index,float scale=0.41);
~Boat();
void draw(void);
void hit(float x);
bool is_sinking(void);
bool is_alive(void);
};