forked from CircusGames/Last_Resort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnemyBee.h
75 lines (52 loc) · 1.13 KB
/
EnemyBee.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef __ENEMYBEE_H__
#define __ENEMYBEE_H__
#include "Enemy.h"
#include "ModuleTextures.h"
#include "ModuleParticles.h"
class EnemyBee : public Enemy
{
private:
float wave = -1.0f;
bool going_up = true;
//int original_y = 0;
int original_y = 0;
int original_x = 0;
Animation flyToRight;
Animation flyToLeft;
Animation flyRotationRight;
Animation flyRotationLeft;
iPoint original_pos;
int attackRange;
float distance;
bool attack = true;
int length;
//movement calculations ----------------------------
//times calculation
int start_time;
int now;
int cadence;
int iSpeed;
float fSpeed;
float tx;
float ty;
float velX;
float velY;
Uint32 last_tick;
float angle = 0;
float delta_time;
bool rotEntryDir = false;
bool rotateCounterClock = false;
bool rotateClock = false;
bool firstEncounter = true;
//shooting ------------------------------------------
float vx;
float vy;
float shootSpeed;
//int lastY;
// ---------------------------------------------------
public:
EnemyBee(int x, int y, powerUpTypes type, SDL_Texture* thisTexture = nullptr);
//OnCollision
void Move();
};
#endif // __ENEMY__H__