Changeset 7927 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- May 28, 2006, 6:46:33 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.cc
r7779 r7927 32 32 #include "camera.h" 33 33 34 #include "cr_engine.h" 35 #include "collision_handle.h" 36 37 34 38 using namespace std; 35 39 … … 65 69 66 70 this->toList(OM_NULL); 71 72 //this->collisionHandles = new *CollisionHandle[CREngine::CR_NUMBER](); 67 73 } 68 74 … … 228 234 } 229 235 236 237 /** 238 * subscribes this world entity to a collision reaction 239 * @param type the type of reaction to subscribe to 240 * @param nrOfTargets number of target filters 241 * @param ... the targets as classIDs 242 */ 243 void WorldEntity::subscribeReaction(CREngine::CRType type, int nrOfTargets, ...) 244 {} 245 246 230 247 /** 231 248 * @brief moves this entity to the List OM_List -
trunk/src/world_entities/world_entity.h
r7779 r7927 11 11 #include "model.h" 12 12 13 #include "cr_engine.h" 13 14 #include "object_manager.h" 14 15 #include "glincl.h" 15 16 #include <vector> 17 #include <stdarg.h> 18 19 16 20 17 21 // FORWARD DECLARATION … … 21 25 class BVTree; 22 26 class Model; 27 class CollisionHandle; 28 23 29 24 30 //class CharacterAttributes; … … 54 60 virtual void draw () const; 55 61 62 /* --- Collision Detection Block --- */ 56 63 bool buildObbTree(int depth); 57 64 virtual void collidesWith (WorldEntity* entity, const Vector& location); … … 60 67 void drawBVTree(int depth, int drawMode) const; 61 68 62 void debugWE() { this->debugEntity(); } 63 ; ///FIXME 64 void debugEntity() const; 69 /* --- Collision Reaction Block --- */ 70 void subscribeReaction(CREngine::CRType type, int nrOfTargets, ...); 65 71 66 72 … … 72 78 // CharacterAttributes* getCharacterAttributes(); 73 79 80 /* --- Object Manager Block --- */ 74 81 void toList(OM_LIST list); 75 76 77 82 /** @returns a Reference to the objectListNumber to set. */ 78 83 OM_LIST& getOMListNumber() { return this->objectListNumber; } … … 80 85 ObjectManager::EntityList::iterator& getEntityIterator() { return this->objectListIterator; } 81 86 87 /* --- Network Block --- */ 82 88 int writeState(const byte* data, int length, int sender); 83 89 int readState(byte* data, int maxLength ); 84 90 91 /* --- Character Attribute Block --- */ 85 92 /** @returns the Energy of the entity */ 86 93 float getHealth() const { return this->health; }; … … 92 99 OrxGui::GLGuiWidget* getHealthWidget(); 93 100 bool hasHealthWidget() const { return this->healthWidget; }; 101 102 /* --- Misc Stuff Block --- */ 103 void debugWE() { this->debugEntity(); } 104 ; ///FIXME 105 void debugEntity() const; 106 94 107 95 108 protected: … … 121 134 122 135 float scaling; 136 CollisionHandle** collisionHandles; 123 137 124 138
Note: See TracChangeset
for help on using the changeset viewer.