-
Notifications
You must be signed in to change notification settings - Fork 2
/
BlooberBaby.h
41 lines (31 loc) · 982 Bytes
/
BlooberBaby.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
#pragma once
#include "Enemy.h"
#include <iostream>
class BlooberBaby : public Enemy
{
int move_id; // each son is enumerated
bool script; //is blooberbaby freed?
//counts the number of frame during moving phase
int script_counter;
int moving_start_counter;
//physical parameter when is freed
int script_duration;
int falling_duration;
protected:
// textures
QPixmap texture_nothing;
QPixmap texture_swim[3];
QPixmap texture_death;
QPoint pos_in;
public:
BlooberBaby(QPoint position, int _move_id);
// pure virtual methods that must be implemented
virtual std::string name() { return "Baby_Cheep";}
virtual void animate();
virtual void hit(Object* what, Direction fromDir);
virtual void hurt(){}
virtual void advance();
void setScript_Move(bool _script) { script = _script; }
void setDying(bool _dying) { dying = _dying;}
bool getScript_Move() { return script; }
};