Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2016, 4:47:39 PM (9 years ago)
Author:
sagerj
Message:

everything beneath weaponmode changed to push/release - wm modified only need to implement timer/ticker

Location:
code/branches/sagerjFS16/src/modules/weapons/weaponmodes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sagerjFS16/src/modules/weapons/weaponmodes/Discharger.cc

    r11170 r11174  
    5454        this->damage_ = 90.01f;
    5555        this->speed_ = 90.01f;
    56         this->charges_ = 0;
     56        this->chargeable_ = 0;
    5757
    5858        this->setMunitionName("LaserMunition");
     
    6565    void Discharger::fire()
    6666    {
    67         charges_ += 1;
    68         orxout() << "c = " << charges_ << endl;
    69     }
    70    
    71     void Discharger::release()
    72     {
    73         orxout() << "release c = " << charges_ << endl;
     67        orxout() << "release" << cTime_ << endl;
    7468        BillboardProjectile* projectile = new BillboardProjectile(this->getContext());
    7569
  • code/branches/sagerjFS16/src/modules/weapons/weaponmodes/Discharger.h

    r11170 r11174  
    4848    @ingroup WeaponsWeaponModes
    4949    */
     50
    5051    class _WeaponsExport Discharger : public WeaponMode
    5152    {
     
    5556
    5657            virtual void fire() override;
    57             virtual void release() override;
    5858
    5959        private:
    60             float speed_; // The speed of the fired projectile.
    61             unsigned int charges_; // An indicator of how much you charged up.
     60            bool chargeable_;       // An indicator that this weapon type is chargeable.
     61            float speed_;           // The speed of the fired projectile.
     62            float ctime_;           // time the weapon has charged.
    6263    };
    6364}
Note: See TracChangeset for help on using the changeset viewer.