-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathBoss.h
More file actions
64 lines (56 loc) · 1.17 KB
/
Boss.h
File metadata and controls
64 lines (56 loc) · 1.17 KB
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
#pragma once
#include "Entity.h"
#include "Serpent.h"
class Boss : public Entity
{
public:
Boss();
void Spawn(Vec2 pos);
Boss* Clone()const;
void Update();
void NeedsToBeRemoved();
void Draw(const float interp);
bool CheckCollided(Sphere s, float damage);
int InWater();
void LoadFromFile(CFileIO &fIO);
void WriteToFile(CFileIO &fIO);
Serpent *mSerpentAttackPattern1;
Serpent *mSerpentAttackPattern2;
Serpent *mSerpentAttackPattern3;
private:
bool bIsDead;
bool bJustSpawned;
bool bComingToLife;
int nextExplosionTick;
int iDeathTicks;
float Eye1Frame;
float Eye2Frame;
float Eye3Frame;
float Eye4Frame;
float Eye5Frame;
bool bEye1Blink;
bool bEye2Blink;
bool bEye3Blink;
bool bEye4Blink;
bool bEye5Blink;
float Eye1BlinkTime;
float Eye2BlinkTime;
float Eye3BlinkTime;
float Eye4BlinkTime;
float Eye5BlinkTime;
Vec2 Tube[4][3];
float tubeSineWave;
int iAttackWaveTicks;
int iAttackPattern;
float fAttackTicks;
float fAttackRatio;
float fChargeFrame;
float fTopGunRateOfFire;
float fLowGunRateOfFire;
float fTopGunFireTime;
float fLowGunFireTime;
float fTopCharge;
float fLowCharge;
Vec2 targetPos;
Sphere mBounds[9];//collision bounds
};