nngn
|
#include <entity.h>
Public Types | |
enum | Flag : std::uintptr_t { ALIVE = 1u << 0 , POS_UPDATED = 1u << 1 } |
Public Member Functions | |
bool | alive () const |
bool | pos_updated () const |
void | set_pos (nngn::vec3 p) |
void | set_vel (nngn::vec3 v) |
void | set_renderer (nngn::Renderer *p) |
void | set_collider (nngn::Collider *p) |
void | set_animation (nngn::Animation *p) |
void | set_camera (nngn::Camera *p) |
void | set_light (nngn::Light *l) |
void | set_parent (Entity *e) |
Public Attributes | |
nngn::Flags< Flag > | flags = {} |
nngn::vec3 | p = {0, 0, 0} |
nngn::vec3 | v = {0, 0, 0} |
float | max_v = {} |
nngn::vec3 | a = {0, 0, 0} |
nngn::Renderer * | renderer = nullptr |
nngn::Collider * | collider = nullptr |
nngn::Animation * | anim = nullptr |
nngn::Camera * | camera = nullptr |
nngn::Light * | light = nullptr |
Entity * | parent = nullptr |
enum Entity::Flag : std::uintptr_t |
|
inline |
|
inline |
void Entity::set_animation | ( | nngn::Animation * | p | ) |
void Entity::set_camera | ( | nngn::Camera * | p | ) |
void Entity::set_collider | ( | nngn::Collider * | p | ) |
void Entity::set_light | ( | nngn::Light * | l | ) |
void Entity::set_parent | ( | Entity * | e | ) |
void Entity::set_pos | ( | nngn::vec3 | p | ) |
void Entity::set_renderer | ( | nngn::Renderer * | p | ) |
void Entity::set_vel | ( | nngn::vec3 | v | ) |
nngn::vec3 Entity::a = {0, 0, 0} |
nngn::Animation* Entity::anim = nullptr |
nngn::Camera* Entity::camera = nullptr |
nngn::Collider* Entity::collider = nullptr |
nngn::Flags<Flag> Entity::flags = {} |
nngn::Light* Entity::light = nullptr |
float Entity::max_v = {} |
nngn::vec3 Entity::p = {0, 0, 0} |
Entity* Entity::parent = nullptr |
nngn::Renderer* Entity::renderer = nullptr |
nngn::vec3 Entity::v = {0, 0, 0} |