Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 21, 2005, 12:05:55 PM (19 years ago)
Author:
bensch
Message:

christmas: enter-leave events

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  
    181181   this->cameraConnNode.addChild(this->getWeaponManager()->getFixedTarget());
    182182  this->getWeaponManager()->getFixedTarget()->setRelCoor(10,0,0);
     183
     184}
     185
     186
     187void MD2Creature::enter()
     188{
     189  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true);
     190
     191
     192}
     193
     194void MD2Creature::leave()
     195{
     196  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false);
     197
    183198
    184199}
  • branches/christmas_branche/src/world_entities/creatures/md2_creature.h

    r6208 r6218  
    2626    void init();
    2727    void loadParams(const TiXmlElement* root);
     28
     29    virtual void enter();
     30    virtual void leave();
    2831
    2932    void addWeapon(Weapon* weapon );
Note: See TracChangeset for help on using the changeset viewer.