Changeset 7071 in orxonox.OLD for trunk/src/world_entities/test_entity.cc
- Timestamp:
- Feb 7, 2006, 2:58:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/test_entity.cc
r6512 r7071 76 76 77 77 78 void TestEntity::setAnim(int animationIndex )78 void TestEntity::setAnim(int animationIndex, int animPlaybackMode) 79 79 { 80 80 if( likely(this->getModel(0) != NULL)) 81 ((MD2Model*)this->getModel(0))->setAnim(animationIndex );81 ((MD2Model*)this->getModel(0))->setAnim(animationIndex, animPlaybackMode); 82 82 } 83 83 … … 92 92 93 93 void TestEntity::collidesWith(WorldEntity* entity, const Vector& location) 94 {} 94 { 95 if( this->lastCollided != entity) 96 { 97 this->dieHard(); 98 this->lastCollided = entity; 99 } 100 } 95 101 96 102 103 104 void TestEntity::dieHard() 105 { 106 this->setAnim(DEATH_FALLBACK, MD2_ANIM_ONCE); 107 } 108
Note: See TracChangeset
for help on using the changeset viewer.