-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFighter.h
More file actions
44 lines (34 loc) · 893 Bytes
/
Fighter.h
File metadata and controls
44 lines (34 loc) · 893 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
36
37
38
39
40
41
42
43
#pragma once
#include "Container.h"
#include "ImageGC.h"
#include "FighterMove.h"
#include "ShowUpAtOppositeSidePC.h"
#include "RotationIC.h"
#include "ThrustIC.h"
#include "ReduceSpeedPC.h"
#include "GunIC.h"
class Fighter : public Container {
public:
Fighter(SDLGame* game);
virtual ~Fighter();
void initFighter();
bool getRotating() { return rotating_; }
void setRotating(bool r) { rotating_ = r; }
void setRot(int r) { rot_ = r; }
int getRot() { return rot_; }
bool getMoving() { return moving_; }
void setMoving(bool b) { moving_ = b; }
void receive(const void* senderObj, const msg::Message& msg);
private:
//Components
ImageGC fighterImage_;
FighterMove fighterMove_;
ShowUpAtOppositeSidePC oppositeSide_;
RotationIC rotation_;
ThrustIC thrust_;
ReduceSpeedPC reduceSpeed_;
GunIC normalGun_;
bool moving_ = false;
bool rotating_ = false;
int rot_ = 0;
};