#include <Entity.h>
◆ Entity()
| lodestone::level::entity::Entity::Entity |
( |
| ) |
|
|
default |
◆ ~Entity()
| lodestone::level::entity::Entity::~Entity |
( |
| ) |
|
|
overridedefault |
◆ getHealth()
| int lodestone::level::entity::Entity::getHealth |
( |
| ) |
const |
int m_health
Definition Entity.h:56
◆ getMaxHealth()
| int lodestone::level::entity::Entity::getMaxHealth |
( |
| ) |
const |
|
virtual |
17 {
19 }
static constexpr int MAX_HEALTH
Definition Entity.h:25
◆ getMotion()
| const types::Vec3d & lodestone::level::entity::Entity::getMotion |
( |
| ) |
const |
types::Vec3d m_motion
The motion that the entity has.
Definition Entity.h:54
◆ getType()
◆ isDead()
| bool lodestone::level::entity::Entity::isDead |
( |
| ) |
const |
◆ resetCoords()
| void lodestone::level::entity::Entity::resetCoords |
( |
| ) |
|
31 {
35 }
virtual void setMotion(const types::Vec3d &motion)
Sets the entity's motion.
Definition Entity.cpp:23
types::Vec2f rotation
Definition WorldSpaceObject.h:21
types::Vec3d position
Definition WorldSpaceObject.h:20
constexpr Vec2< T > VEC2_ZERO
Definition Vec2.h:62
constexpr Vec3< T > VEC3_ZERO
Definition Vec3.h:170
◆ setHealth()
| void lodestone::level::entity::Entity::setHealth |
( |
int | health | ) |
|
11 {
13 }
virtual int getMaxHealth() const
Definition Entity.cpp:17
◆ setMotion() [1/2]
| void lodestone::level::entity::Entity::setMotion |
( |
const types::Vec3d & | motion | ) |
|
|
virtual |
Sets the entity's motion.
◆ setMotion() [2/2]
| void lodestone::level::entity::Entity::setMotion |
( |
double | x, |
|
|
double | y, |
|
|
double | z ) |
◆ toString()
| std::string lodestone::level::entity::Entity::toString |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ lodestone::level::chunk::Chunk
◆ lodestone::level::world::World
◆ m_health
| int lodestone::level::entity::Entity::m_health = MAX_HEALTH |
|
protected |
◆ m_motion
| types::Vec3d lodestone::level::entity::Entity::m_motion {0, 0, 0} |
|
protected |
The motion that the entity has.
◆ MAX_HEALTH
| int lodestone::level::entity::Entity::MAX_HEALTH = 20 |
|
staticconstexpr |
The documentation for this class was generated from the following files:
- /home/runner/work/libLodestone/libLodestone/projects/Libraries/Level/include/Lodestone.Level/entity/Entity.h
- /home/runner/work/libLodestone/libLodestone/projects/Libraries/Level/src/entity/Entity.cpp