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