who knows
This commit is contained in:
parent
60d408a37c
commit
f43544d15d
19 changed files with 2379 additions and 2063 deletions
68
Entity.h
68
Entity.h
|
|
@ -1,34 +1,34 @@
|
|||
//
|
||||
// Created by benmo on 9/28/2020.
|
||||
//
|
||||
|
||||
#ifndef SFML_TEMPLATE_ENTITY_H
|
||||
#define SFML_TEMPLATE_ENTITY_H
|
||||
|
||||
class Entity : public Mount {
|
||||
public:
|
||||
Entity(float health, int points, const sf::Texture &texture, float scale, float xPos, float yPos, float velocity, float direction) : Mount(texture, scale, xPos, yPos, velocity, direction) {
|
||||
this->health = health;
|
||||
this->points = points;
|
||||
}
|
||||
|
||||
float getHealth() const {
|
||||
return health;
|
||||
}
|
||||
|
||||
void setHealth(float health) {
|
||||
this->health = health;
|
||||
}
|
||||
|
||||
void hit() {};
|
||||
|
||||
int getPoints() const {
|
||||
return points;
|
||||
}
|
||||
protected:
|
||||
float health;
|
||||
int points;
|
||||
};
|
||||
|
||||
|
||||
#endif //SFML_TEMPLATE_ENTITY_H
|
||||
//
|
||||
// Created by benmo on 9/28/2020.
|
||||
//
|
||||
|
||||
#ifndef SFML_TEMPLATE_ENTITY_H
|
||||
#define SFML_TEMPLATE_ENTITY_H
|
||||
|
||||
class Entity : public Mount {
|
||||
public:
|
||||
Entity(float health, int points, const sf::Texture &texture, float scale, float xPos, float yPos, float velocity, float direction) : Mount(texture, scale, xPos, yPos, velocity, direction) {
|
||||
this->health = health;
|
||||
this->points = points;
|
||||
}
|
||||
|
||||
float getHealth() const {
|
||||
return health;
|
||||
}
|
||||
|
||||
void setHealth(float health) {
|
||||
this->health = health;
|
||||
}
|
||||
|
||||
void hit() {};
|
||||
|
||||
int getPoints() const {
|
||||
return points;
|
||||
}
|
||||
protected:
|
||||
float health;
|
||||
int points;
|
||||
};
|
||||
|
||||
|
||||
#endif //SFML_TEMPLATE_ENTITY_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue