-
Notifications
You must be signed in to change notification settings - Fork 0
/
glstation.h
33 lines (26 loc) · 838 Bytes
/
glstation.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
#ifndef GL_STATION_H
#define GL_STATION_H
#include <list>
#include "glship.h"
#include "wrapped_point.h"
using namespace std;
class GLStation : public Ship {
public:
GLStation(const Grid &grid, list<GLShip*>* objects, list<GLShip*>* targets);
virtual ~GLStation();
void draw(bool minimap = false) const;
void step(float delta, const Grid &grid);
// void collide(Ship *ship) const;
void reset();
int level() const;
private:
unsigned int body, map_body;
static const int NUM_SEGMENTS = 30;
float inner_rotation, outer_rotation, outer_rotation_speed, inner_rotation_speed;
std::list<GLShip*>* objects, *targets;
int ships_this_wave, max_ships_per_wave, extra_ships_per_wave, ships_left_to_deploy;
int time_until_next_ship, time_between_ships;
bool deploying, redeploying;
int wave, difficulty;
};
#endif