Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

made some changes (still doesn't compile)

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.