Changeset 6218 in orxonox.OLD for branches/christmas_branche/src/world_entities/creatures
- Timestamp:
- Dec 21, 2005, 12:05:55 PM (19 years ago)
- Location:
- branches/christmas_branche/src/world_entities/creatures
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/world_entities/creatures/md2_creature.cc
r6212 r6218 181 181 this->cameraConnNode.addChild(this->getWeaponManager()->getFixedTarget()); 182 182 this->getWeaponManager()->getFixedTarget()->setRelCoor(10,0,0); 183 184 } 185 186 187 void MD2Creature::enter() 188 { 189 dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true); 190 191 192 } 193 194 void MD2Creature::leave() 195 { 196 dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false); 197 183 198 184 199 } -
branches/christmas_branche/src/world_entities/creatures/md2_creature.h
r6208 r6218 26 26 void init(); 27 27 void loadParams(const TiXmlElement* root); 28 29 virtual void enter(); 30 virtual void leave(); 28 31 29 32 void addWeapon(Weapon* weapon );
Note: See TracChangeset
for help on using the changeset viewer.