-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathSolarFlare.h
More file actions
35 lines (29 loc) · 715 Bytes
/
Copy pathSolarFlare.h
File metadata and controls
35 lines (29 loc) · 715 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
#pragma once
#include "Entity.h"
using namespace std;
#define SolarFlare_LENGTH 15
class SolarFlare : public ControlledEntity
{
public:
SolarFlare();
void Spawn(Vec2 pos);
void SpawnSection(Vec2 pos);
void Update();
void NeedsToBeRemoved();
void Draw(const float interp);
bool CheckCollided(Sphere s, float damage);
int InWater();
SolarFlare* Clone()const;
bool bStartDirection;//SolarFlares start outside the top or bottom of the screen
float fRotation;
vector<SolarFlare> mSections;
int iTickSection;//spawn when this is zero
int iCurSection;
Vec2 StartPos;
bool IsHead;
void LoadFromFile(CFileIO &fIO);
void WriteToFile(CFileIO &fIO);
float fStartRotation;
private:
int mWaterticks;
};