Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 9, 2009, 3:18:11 AM (15 years ago)
Author:
landauf
Message:

Several small adjustments in the weaponsystem (like additional const keyword, includes moved from .h to .cc where possible, …)

Firemode is now an unsigned int instead of an Enum. Instead of "fire" and "altFire" use "fire 0" and "fire 1"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapons/src/orxonox/objects/weaponSystem/weapons/Fusion.cc

    r2710 r2912  
    2828
    2929#include "OrxonoxStableHeaders.h"
    30 
     30#include "Fusion.h"
    3131
    3232#include "core/CoreIncludes.h"
    33 #include "core/XMLPort.h"
    34 #include "util/Debug.h"
    3533
    36 #include "Fusion.h"
    37 
     34#include "objects/weaponSystem/Munition.h"
     35#include "objects/weaponSystem/projectiles/ParticleProjectile.h"
     36#include "objects/weaponSystem/WeaponSystem.h"
    3837
    3938namespace orxonox
     
    7372        projectile->setPosition(this->getWorldPosition());
    7473        projectile->setVelocity(this->getWorldOrientation() * WorldEntity::FRONT * this->speed_);
    75         projectile->setOwner(this->getParentWeaponSystem()->getParentPawn());
     74        projectile->setOwner(this->getWeaponSystem()->getPawn());
    7675    }
    7776}
Note: See TracChangeset for help on using the changeset viewer.