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

Public Member Functions

 GenericRocketLauncher (const std::string &name)
 
virtual const Visualsvisuals () const override
 
void setVisuals (const Visuals &visuals)
 
virtual float cooldownTime () const override
 
void setCooldownTime (float cooldownTime)
 
const RocketrocketPrototype () const
 
void setRocketPrototype (Rocket *rocketPrototype)
 
const std::string & rocketName () const
 
void setRocketName (const std::string &rocketName)
 
- Public Member Functions inherited from RocketLauncher
 RocketLauncher (const std::string &equipmentKey)
 
virtual void fireAtObject (WorldObject *target)
 
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 RocketcreateRocket () override
 
- Protected Member Functions inherited from RocketLauncher
void setupRocket (Rocket *rocket, WorldObject *target)
 

Protected Attributes

float m_cooldownTime
 
SoundProperties m_rocketSound
 
SoundProperties m_explosionSound
 
Visuals m_visuals
 
std::string m_rocketName
 
- 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: