Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2016, 5:50:36 PM (9 years ago)
Author:
tgidron
Message:

New Floor, Level HUD, Pickups work

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

Legend:

Unmodified
Added
Removed
  • code/branches/tgidronFS16/src/modules/weapons/weaponmodes/HsW01.cc

    r11108 r11192  
    8585        XMLPortParam(HsW01, "projectileMesh", setMesh, getMesh, xmlelement, mode);
    8686        XMLPortParam(HsW01, "sound", setSound, getSound, xmlelement, mode);
     87        XMLPortParam(HsW01, "speed", setSpeed, getSpeed, xmlelement, mode);
    8788    }
    8889
  • code/branches/tgidronFS16/src/modules/weapons/weaponmodes/HsW01.h

    r11099 r11192  
    112112            void muzzleflash();
    113113
     114            /**
     115            @brief Set the firing speed.
     116            @param speed The speed of the shot
     117            */
     118
     119            void setSpeed(const float speed)
     120                { this->speed_ = speed; }
     121
     122            /**
     123            @brief Get the firing speed.
     124            @return Returns the speed of the shot
     125            */
     126
     127            const float getSpeed() const
     128                { return this->speed_; }
     129
    114130            std::string material_; //!< The material.
    115131            std::string mesh_; //!< The mesh.
Note: See TracChangeset for help on using the changeset viewer.