OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
Entity Class Reference

#include <Entity.h>

Public Member Functions

 Entity (int i, int r, glm::vec3 po, glm::vec3 ro)
 
void display (glm::mat4 VP)
 
int getID ()
 
int getRoom ()
 
glm::vec3 getPosition ()
 
glm::vec3 getRotation ()
 
int getSprite ()
 
void setSprite (int i)
 
int getAnimation ()
 
void setAnimation (int i)
 
int getFrame ()
 
void setFrame (int i)
 

Static Public Member Functions

static void setShowEntitySprites (bool s)
 
static bool getShowEntitySprites ()
 
static void setShowEntityMeshes (bool s)
 
static bool getShowEntityMeshes ()
 
static void setShowEntityModels (bool s)
 
static bool getShowEntityModels ()
 

Private Attributes

int id
 
int room
 
glm::vec3 pos
 
glm::vec3 rot
 
int cache
 
int cacheType
 
int sprite
 
int animation
 
int frame
 

Static Private Attributes

static bool showEntitySprites = true
 
static bool showEntityMeshes = true
 
static bool showEntityModels = true
 

Detailed Description

Definition at line 11 of file Entity.h.

Constructor & Destructor Documentation

Entity::Entity ( int  i,
int  r,
glm::vec3  po,
glm::vec3  ro 
)
inline

Definition at line 13 of file Entity.h.

Member Function Documentation

void Entity::display ( glm::mat4  VP)

Definition at line 24 of file Entity.cpp.

int Entity::getID ( )
inline

Definition at line 18 of file Entity.h.

int Entity::getRoom ( )
inline

Definition at line 19 of file Entity.h.

glm::vec3 Entity::getPosition ( )
inline

Definition at line 20 of file Entity.h.

glm::vec3 Entity::getRotation ( )
inline

Definition at line 21 of file Entity.h.

int Entity::getSprite ( )
inline

Definition at line 23 of file Entity.h.

void Entity::setSprite ( int  i)
inline

Definition at line 24 of file Entity.h.

int Entity::getAnimation ( )
inline

Definition at line 25 of file Entity.h.

void Entity::setAnimation ( int  i)
inline

Definition at line 26 of file Entity.h.

int Entity::getFrame ( )
inline

Definition at line 27 of file Entity.h.

void Entity::setFrame ( int  i)
inline

Definition at line 28 of file Entity.h.

static void Entity::setShowEntitySprites ( bool  s)
inlinestatic

Definition at line 30 of file Entity.h.

static bool Entity::getShowEntitySprites ( )
inlinestatic

Definition at line 31 of file Entity.h.

static void Entity::setShowEntityMeshes ( bool  s)
inlinestatic

Definition at line 32 of file Entity.h.

static bool Entity::getShowEntityMeshes ( )
inlinestatic

Definition at line 33 of file Entity.h.

static void Entity::setShowEntityModels ( bool  s)
inlinestatic

Definition at line 34 of file Entity.h.

static bool Entity::getShowEntityModels ( )
inlinestatic

Definition at line 35 of file Entity.h.

Member Data Documentation

int Entity::id
private

Definition at line 38 of file Entity.h.

int Entity::room
private

Definition at line 39 of file Entity.h.

glm::vec3 Entity::pos
private

Definition at line 40 of file Entity.h.

glm::vec3 Entity::rot
private

Definition at line 41 of file Entity.h.

int Entity::cache
private

Definition at line 42 of file Entity.h.

int Entity::cacheType
private

Definition at line 42 of file Entity.h.

int Entity::sprite
private

Definition at line 44 of file Entity.h.

int Entity::animation
private

Definition at line 45 of file Entity.h.

int Entity::frame
private

Definition at line 46 of file Entity.h.

bool Entity::showEntitySprites = true
staticprivate

Definition at line 48 of file Entity.h.

bool Entity::showEntityMeshes = true
staticprivate

Definition at line 49 of file Entity.h.

bool Entity::showEntityModels = true
staticprivate

Definition at line 50 of file Entity.h.


The documentation for this class was generated from the following files: