1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /*!
- * \file include/Entity.h
- * \brief World Entities
- *
- * \author xythobuz
- */
-
- #ifndef _ENTITY_H_
- #define _ENTITY_H_
-
- #include "math/math.h"
- #include "TombRaider.h"
-
- class Entity {
- public:
- typedef enum {
- MoveTypeWalkNoSwim = -1,
- MoveTypeWalk = 0,
- MoveTypeNoClipping = 1,
- MoveTypeFly = 2,
- MoveTypeSwim = 3
- } MoveType;
-
- Entity(TombRaider &tr);
-
- // Animation State
-
- unsigned int getAnimationFrame();
- void setAnimationFrame(unsigned int index);
-
- unsigned int getBoneFrame();
- void setBoneFrame(unsigned int index);
-
- unsigned int getIdleAnimation();
- void setIdleAnimation(unsigned int index);
-
- private:
- vec3_t pos;
- vec3_t angles;
- int room;
-
- unsigned int skeletalModel;
- MoveType moveType;
-
- int state;
- int objectId;
-
- // Animation State
-
- unsigned int boneFrame;
- unsigned int animationFrame;
- unsigned int idleAnimation;
- };
-
- #endif
|