Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

WeaponSystem, Projectile (kompiliert nicht)

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