Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Dec 15, 2021
1 parent 273e68e commit 8c3b156
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/entity/character.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Character : public Entity
std::vector<Hitbox> attackHitbox; //in a strategy ?
Hitbox damageHitbox;

float maxLife; //to be update if a charac is considered as an agglo of body parts
float maxLife; //to be update later if a charac is considered as a system of body parts
float currentLife;
float strength;
float maxSpeed;
Expand Down
6 changes: 3 additions & 3 deletions include/entity/entity.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
class Entity //maybe virtual class ? let's see if this is usefull or not later
{
private:
std::vector<Strategy*> strategies;
std::vector<Strategy*> strategies; //basic attribute of an Entity

public:
Entity(std::vector<Strategy*> strategies);
Entity(std::vector<Strategy*> strategies); //basic constructor
~Entity();
};

//in .cpp :


Entity::Entity(std::vector<Strategy*> strategies){
//this->strategies = strategies;
}
Expand Down

0 comments on commit 8c3b156

Please sign in to comment.