Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 29, 2008, 4:13:10 PM (16 years ago)
Author:
polakma
Message:

WeaponSystem, Projectile (kompiliert nicht)

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  
    4040    {
    4141        RegisterObject(LaserGun);
     42
     43        projectileColor_ = ColourValue(1.0, 1.0, 0.5)
    4244    }
    4345
     
    4648    }
    4749
     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
    4863    LaserGun::addMunition()
    4964    {
    50         this->munition_ =
     65        //this->munition_ = ;
    5166    }
    5267
     
    5671    }
    5772
     73    ColorValue LaserGun::getProjectileColor()
     74    {
     75        return projectileColor_;
     76    }
    5877}
  • code/branches/weapon/src/orxonox/objects/weaponSystem/weapons/LaserGun.h

    r2049 r2060  
    3535
    3636#include "LaserGunMunition.h"
     37#include "../tools/BillboardSet.h"
    3738
    3839namespace orxonox
     
    4647            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    4748
    48 
     49            ColourValue LaserGun::getProjectileColour();
    4950
    5051        private:
     52            ColorValue projectileColor_;
    5153
    5254
Note: See TracChangeset for help on using the changeset viewer.