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

Public Member Functions

 Gun (const std::string &equipmentKey)
 
virtual const SoundPropertiesfireSound () const =0
 
virtual float bulletLifetime () const =0
 
virtual float bulletSpeed () const =0
 
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)
 
virtual const Visualsvisuals () const =0
 
Hardpointhardpoint ()
 
void setHardpoint (Hardpoint *hardpoint)
 
WeaponType type () const
 
virtual float cooldownTime () const =0
 
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 ()=0
 
void setupBullet (Bullet *bullet, const glm::vec3 &point)
 

Additional Inherited Members

- 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: