Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 23, 2005, 11:50:51 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: small cleanup

File:
1 edited

Legend:

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

    r4947 r4948  
    2525#include "class_list.h"
    2626#include "load_param.h"
     27#include "state.h"
     28#include "sound_engine.h"
     29#include "animation3d.h"
    2730#include "vector.h"
    28 #include "list.h"
    29 #include "state.h"
    30 #include "animation3d.h"
    31 #include "sound_engine.h"
    3231
    3332////////////////////
     
    108107  if (this->projectileFactory == NULL)
    109108    return false;
     109  else
     110  {
     111    // grabbing Parameters from the Projectile to have them at hand here.
     112    this->projectileFactory->prepare(1);
     113    Projectile* pj = dynamic_cast<Projectile*>(this->projectileFactory->resurrect());
     114    this->minCharge = pj->getEnergyMin();
     115    this->maxCharge = pj->getEnergyMax();
     116    this->chargeable = pj->isChageable();
     117  }
    110118};
    111119
Note: See TracChangeset for help on using the changeset viewer.