Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 12, 2005, 3:11:57 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: derivation of superclasses is more clear now. lets see, if this will hold out for some time (about 115 classes long)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/weapons/weapon_manager.cc

    r4834 r4837  
    2525#include "vector.h"
    2626#include "list.h"
     27#include "t_animation.h"
    2728
    2829using namespace std;
     
    7677  this->currConfID = W_CONFIG0;
    7778  this->crosshair = new Crosshair();
    78 }
    79 
    80 /**
    81  *
     79
     80  this->crossHairSizeAnim = new tAnimation<Crosshair>(this->crosshair, &Crosshair::setSize);
     81  this->crossHairSizeAnim->setInfinity(ANIM_INF_REWIND);
     82  this->crossHairSizeAnim->addKeyFrame(50, .1, ANIM_LINEAR);
     83  this->crossHairSizeAnim->addKeyFrame(100, .05, ANIM_LINEAR);
     84  this->crossHairSizeAnim->addKeyFrame(50, .01, ANIM_LINEAR);
     85}
     86
     87/**
     88 * loads the settings of the WeaponManager
    8289 * @param root the XML-element to load from
    8390 */
     
    207214
    208215
    209 
    210216/**
    211217 * triggers fire of all weapons in the current weaponconfig
     
    219225    if( firingWeapon != NULL) firingWeapon->fire();
    220226  }
    221   this->crosshair->setRotationSpeed(-500);
     227  this->crosshair->setRotationSpeed(500);
     228  this->crossHairSizeAnim->replay();
    222229}
    223230
Note: See TracChangeset for help on using the changeset viewer.