needed to push some big changes before I lose them
This commit is contained in:
parent
d84b2810d2
commit
d767806e1c
35 changed files with 637 additions and 138 deletions
10
Entity.h
10
Entity.h
|
|
@ -5,9 +5,9 @@
|
|||
#ifndef SFML_TEMPLATE_ENTITY_H
|
||||
#define SFML_TEMPLATE_ENTITY_H
|
||||
|
||||
class Entity : public MySprite {
|
||||
class Entity : public Mount {
|
||||
public:
|
||||
Entity(int health, int points, const sf::Texture &texture, float scale, float xPos, float yPos, float velocity, float direction) : MySprite(texture, scale, xPos, yPos, velocity, direction) {
|
||||
Entity(int 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;
|
||||
}
|
||||
|
|
@ -22,17 +22,11 @@ public:
|
|||
|
||||
void hit() {};
|
||||
|
||||
string getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
int getPoints() const {
|
||||
return points;
|
||||
}
|
||||
protected:
|
||||
int health, points;
|
||||
|
||||
string type = "entity";
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue