-
Notifications
You must be signed in to change notification settings - Fork 0
/
Enemy.h
49 lines (36 loc) · 809 Bytes
/
Enemy.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
48
49
#ifndef _ENEMY_H_
#define _ENEMY_H_
#include "ball.h"
class Enemy : public Ball
{
public:
Enemy(void);
~Enemy(void);
void doKollision(Ball& object);
void move(GLfloat time);
void setX(GLfloat x);
void setTravelLength(GLfloat travel_length);
GLfloat getTravelLength();
GLfloat getStartX();
GLfloat getStartY();
GLfloat getStartSpeedX();
GLfloat getStartSpeedY();
void setStartX(GLfloat);
void setStartY(GLfloat);
void setStartSpeedX(GLfloat);
void setStartSpeedY(GLfloat);
void setKollisionXEnable(bool kollision_x);
bool isKolliosionXEnable();
void reset();
bool turnsOnCliff();
void setTurnOnCliff(bool);
private:
GLfloat travel_length;
GLfloat start_x;
GLfloat start_y;
GLfloat start_speed_y;
GLfloat start_speed_x;
bool kollision_x;
bool turn_on_cliff;
};
#endif