- Timestamp:
- Oct 29, 2008, 4:13:10 PM (16 years ago)
- Location:
- code/branches/weapon/src/orxonox/objects/weaponSystem/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc
r2049 r2060 40 40 { 41 41 RegisterObject(LaserGun); 42 43 projectileColor_ = ColourValue(1.0, 1.0, 0.5) 42 44 } 43 45 … … 46 48 } 47 49 50 LaserGun::fire() 51 { 52 BillboardProjectile* projectile = new ParticleProjectile(this); 53 projectile->setColour(this->projectileColor_); 54 projectile->create(); 55 if (projectile->getClassID() == 0) 56 { 57 COUT(3) << "generated projectile with classid 0" << std::endl; // TODO: remove this output 58 } 59 60 projectile->setObjectMode(0x3); 61 } 62 48 63 LaserGun::addMunition() 49 64 { 50 this->munition_ =65 //this->munition_ = ; 51 66 } 52 67 … … 56 71 } 57 72 73 ColorValue LaserGun::getProjectileColor() 74 { 75 return projectileColor_; 76 } 58 77 } -
code/branches/weapon/src/orxonox/objects/weaponSystem/weapons/LaserGun.h
r2049 r2060 35 35 36 36 #include "LaserGunMunition.h" 37 #include "../tools/BillboardSet.h" 37 38 38 39 namespace orxonox … … 46 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 47 48 48 49 ColourValue LaserGun::getProjectileColour(); 49 50 50 51 private: 52 ColorValue projectileColor_; 51 53 52 54
Note: See TracChangeset
for help on using the changeset viewer.