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/HsW01.cc

    r2901 r2912  
    2828
    2929#include "OrxonoxStableHeaders.h"
    30 
     30#include "HsW01.h"
    3131
    3232#include "core/CoreIncludes.h"
    3333#include "core/XMLPort.h"
    34 #include "util/Debug.h"
    35 
    36 #include "HsW01.h"
    37 
    3834
    3935namespace orxonox
     
    7975        projectile->setPosition(this->getWorldPosition());
    8076        projectile->setVelocity(this->getWorldOrientation() * WorldEntity::FRONT * this->speed_);
    81         projectile->setOwner(this->getParentWeaponSystem()->getParentPawn());
     77        projectile->setOwner(this->getWeaponSystem()->getPawn());
    8278    }
    8379}
Note: See TracChangeset for help on using the changeset viewer.