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/WeaponSlot.h

    r2662 r2912  
    3131
    3232#include "OrxonoxPrereqs.h"
    33 
    34 #include "Weapon.h"
    3533#include "objects/worldentities/StaticEntity.h"
    3634
     
    5048            void fire();
    5149
    52             inline void setParentWeaponSystem(WeaponSystem *parentWeaponSystem)
    53                 { parentWeaponSystem_=parentWeaponSystem; }
    54             inline WeaponSystem * getParentWeaponSystem()
    55                 { return parentWeaponSystem_; }
     50            inline void setWeaponSystem(WeaponSystem *weaponSystem)
     51                { this->weaponSystem_ = weaponSystem; }
     52            inline WeaponSystem * getWeaponSystem() const
     53                { return this->weaponSystem_; }
    5654
    5755
     
    6058            bool unlimitedAmmo_;
    6159
    62             WeaponSystem *parentWeaponSystem_;
     60            WeaponSystem *weaponSystem_;
    6361    };
    6462}
Note: See TracChangeset for help on using the changeset viewer.