123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- /*!
- * \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);
-
- bool operator<(Entity &o);
- void display();
-
- void setSkeletalModel(unsigned int model);
-
- // 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
|