Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
GenericGun Class Reference
Inheritance diagram for GenericGun:
[legend]
Collaboration diagram for GenericGun:
[legend]

Public Member Functions

 GenericGun (const std::string &name)
 
virtual float bulletLifetime () const override
 
void setBulletLifetime (float bulletLifetime)
 
virtual float bulletSpeed () const override
 
void setBulletSpeed (float bulletSpeed)
 
virtual const Visualsvisuals () const override
 
void setVisuals (const Visuals &visuals)
 
virtual const SoundPropertiesfireSound () const override
 
void setFireSound (const SoundProperties &fireSound)
 
virtual float cooldownTime () const override
 
void setCooldownTime (float cooldownTime)
 
const std::string & bulletName () const
 
void setBulletName (const std::string &bulletName)
 
- Public Member Functions inherited from Gun
 Gun (const std::string &equipmentKey)
 
virtual void fireAtPoint (const glm::vec3 &point)
 
virtual void update (float deltaSec) override
 
- Public Member Functions inherited from Weapon
 Weapon (WeaponType type, const std::string &equipmentKey)
 
Hardpointhardpoint ()
 
void setHardpoint (Hardpoint *hardpoint)
 
WeaponType type () const
 
bool canFire ()
 
void onFired ()
 
- Public Member Functions inherited from Equipment
 Equipment (const std::string &equipmentKey)
 
const std::string & equipmentKey () const
 

Protected Member Functions

virtual BulletcreateBullet () override
 
- Protected Member Functions inherited from Gun
void setupBullet (Bullet *bullet, const glm::vec3 &point)
 

Protected Attributes

float m_bulletSpeed
 
float m_bulletLifetime
 
float m_cooldownTime
 
Visuals m_visuals
 
SoundProperties m_fireSound
 
std::string m_bulletName
 
- Protected Attributes inherited from Weapon
Hardpointm_hardpoint
 
WeaponType m_type
 
float m_cooldown
 
- Protected Attributes inherited from Equipment
std::string m_equipmentKey
 

The documentation for this class was generated from the following files: