Potato Engine
Loading...
Searching...
No Matches
Entity.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "Actor.hpp"
5
9class Entity : public Actor
10{
11public:
16 Entity();
17 virtual ~Entity();
18
24 float TakeDamage(float damage);
25
31 float AddHealth(float amount);
32
34 float GetHealth() const;
35
36protected:
37 float Health;
38 float MaxHealth;
39
40};
Actor()
Constructs actor object.
Definition Actor.cpp:13
float AddHealth(float amount)
Adds health to entity.
Definition Entity.cpp:20
float GetHealth() const
Gets health.
Definition Entity.cpp:25
float TakeDamage(float damage)
Delivers damage to the entity.
Definition Entity.cpp:15