Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 12, 2008, 12:50:18 PM (16 years ago)
Author:
polakma
Message:

made some changes (still doesn't compile)

Location:
code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons
Files:
2 edited

Legend:

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

    r2145 r2186  
    3434#include "util/Debug.h"
    3535
     36#include "LaserGun.h"
     37
    3638
    3739namespace orxonox
     
    4143        RegisterObject(LaserGun);
    4244
    43         this->attachNeededMunition();
    44 
    4545        //set weapon properties here
    46         this->projectileColor_ = ColourValue(1.0, 1.0, 0.5)
    4746        this->loadingTime_ = 0.5;
    4847    }
     
    7675    }
    7776
    78     ColorValue LaserGun::getProjectileColor()
    79     {
    80         return projectileColor_;
    81     }
    82 
    83     void attachNeededMunition(Munition *pointerToMunition)
    84     {
    85         //if munition type already exist attach it, else create a new one of this type and attach it to the weapon and to the WeaponSystem
    86         if ( this->parentWeaponSystem_->munitionSet_[laserGunMunition] )
    87             this->pointerToMunition_ = pointerToMunition;
    88         else
    89         {
    90             this->pointerToMunition_ = new LaserGunMunition;
    91 
    92         }
    93     }
    9477}
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons/LaserGun.h

    r2145 r2186  
    3434#include "core/BaseObject.h"
    3535
    36 #include "LaserGunMunition.h"
     36#include "../munitions/LaserGunMunition.h"
    3737#include "util/Math.h"
     38#include "../Weapon.h"
    3839
    3940namespace orxonox
     
    4849
    4950            void fire();
    50             ColourValue LaserGun::getProjectileColour();
     51
    5152
    5253        private:
    53             ColorValue projectileColor_;
     54
    5455
    5556    };
Note: See TracChangeset for help on using the changeset viewer.