Changeset 9890 in orxonox.OLD for branches/coll_rect/src
- Timestamp:
- Oct 13, 2006, 9:48:13 PM (18 years ago)
- Location:
- branches/coll_rect/src
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/coll_rect/src/lib/collision_reaction/Makefile.am
r9235 r9890 5 5 6 6 libORXcr_a_SOURCES = cr_engine.cc \ 7 collision_tube.cc \ 7 8 collision.cc \ 8 9 collision_event.cc \ … … 16 17 17 18 noinst_HEADERS = cr_engine.h \ 19 collision_tube.h \ 18 20 collision.h \ 19 21 collision_event.h \ -
branches/coll_rect/src/lib/collision_reaction/collision_handle.cc
r9889 r9890 199 199 void CollisionHandle::handleCollisions() 200 200 { 201 // if continuous poll pollthe reaction201 // if continuous poll the reaction 202 202 if( this->bContinuousPoll && !this->bCollided) 203 203 { -
branches/coll_rect/src/lib/collision_reaction/collision_handle.h
r9889 r9890 28 28 { 29 29 ObjectListDeclaration(CollisionHandle); 30 30 31 public: 31 32 CollisionHandle(WorldEntity* owner, CREngine::CRType type); -
branches/coll_rect/src/lib/collision_reaction/cr_engine.cc
r9889 r9890 31 31 32 32 ObjectListDefinition(CREngine); 33 34 33 35 /** 34 36 * standard constructor -
branches/coll_rect/src/world_entities/world_entity.h
r9889 r9890 25 25 namespace OrxSound { class SoundBuffer; class SoundSource; } 26 26 namespace OrxGui { class GLGuiWidget; class GLGuiBar; class GLGuiEnergyWidget; }; 27 namespace CoRe { class CollisionHandle; class Collision; } 27 28 28 29 class BVTree; … … 30 31 class AABBTreeNode; 31 32 class Model; 32 class CollisionHandle;33 class Collision;34 35 36 //class CharacterAttributes;37 38 33 39 34 … … 42 37 { 43 38 ObjectListDeclaration(WorldEntity); 39 44 40 public: 45 41 WorldEntity(); … … 51 47 void loadModel2(const std::string& fileN, float scal = 1.0f){this->loadModel(fileN,scal,0,4);} 52 48 void setModel(Model* model, unsigned int modelNumber = 0); 53 Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; };49 Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; }; 54 50 55 51 inline void loadMD2Texture(const std::string& fileName) { this->md2TextureFileName = fileName; } … … 127 123 128 124 void hide() { if( this->objectListNumber != OM_DEAD) this->lastObjectListNumber = this->objectListNumber; this->toList(OM_DEAD); } 129 void unhide() { if( this->objectListNumber != this->lastObjectListNumber) this->toList(this->lastObjectListNumber); }125 void unhide() { if( this->objectListNumber != this->lastObjectListNumber) this->toList(this->lastObjectListNumber); } 130 126 131 127 132 128 /* --- Character Attribute Block --- */ 133 129 /** @returns the scaling of the model */ 134 float getScaling(){return this->scaling;}130 float getScaling(){return this->scaling;} 135 131 /** @returns the damage dealt by this world entity */ 136 132 float getDamage() const { return this->damage; } … … 169 165 void setHealthMax(float healthMax); 170 166 void createHealthWidget(); 171 172 // CharacterAttributes* charAttr; //!< the character attributes of a world_entity 167 // CharacterAttributes* charAttr; //!< the character attributes of a world_entity 168 169 173 170 private: 174 171 void updateHealthWidget(); 172 175 173 176 174 private: … … 194 192 OM_LIST lastObjectListNumber; //!< the last ObjectList from the ObjectManager this Entity was is in 195 193 196 197 194 /* collision reaction stuff */ 195 CoRe::CollisionHandle* collisionHandles[CoRe::CREngine::CR_NUMBER]; //!< the list of the collision reactions 196 bool bReactive; //!< true if there is at least one collision reaction subscibed 197 198 199 PhysicsInterface physicsInterface; //!< the physics object of the WorldEntity 200 bool bOnGround; //!< true if this entity is standing on the ground 201 202 /* network help structures */ 198 203 float scaling; //!< model's scaling factor 199 204 int scaling_handle; //!< handle for syncing var … … 211 216 int healthMax_handle; 212 217 213 CoRe::CollisionHandle* collisionHandles[CoRe::CREngine::CR_NUMBER]; //!< the list of the collision reactions 214 bool bReactive; //!< true if there is at least one collision reaction subscibed 215 216 217 PhysicsInterface physicsInterface; //!< the physics object of the WorldEntity 218 bool bOnGround; //!< true if this entity is standing on the ground 218 219 219 220 220 protected:
Note: See TracChangeset
for help on using the changeset viewer.