-
Notifications
You must be signed in to change notification settings - Fork 0
/
Robot.h
42 lines (38 loc) · 985 Bytes
/
Robot.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 "Texture.h"
#include "Moveable.h"
class Robot : public Moveable
{
private:
int m_lives;
int m_bombs;
int m_timer;
int m_score;
int Robotx, Roboty;
sf::RectangleShape m_shape;
enum DIRECTION m_direction;
public:
Robot();
Robot(int i, int j, char type);
Robot(const Robot& robot);
void setBombNum(int bombs);
void addBombNum(int bombs);
virtual void setSuccess(bool condition) { success = condition; };
virtual bool getSuccess() { return success; };
int getBombNum();
int getX() const { return this->Robotx; }
int getY() const { return this->Roboty; }
sf::Vector2f updatePosition();
void changeSpeed(float, int);
sf::Vector2f tempPos;
virtual void setmovment(sf::Vector2i movment, sf::Vector2u limits);
int getLives() const;
virtual void kill();
virtual bool isKill();
void setScore(int);
int getScore() const;
void startScore();
virtual void update_TextureRobot(sf::Texture);
virtual void change_texture(DIRECTION);
~Robot();
};