Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
RocketLauncher Class Referenceabstract

#include <rocketlauncher.h>

Inheritance diagram for RocketLauncher:
[legend]
Collaboration diagram for RocketLauncher:
[legend]

Public Member Functions

 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)
 
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 RocketcreateRocket ()=0
 
void setupRocket (Rocket *rocket, WorldObject *target)
 

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
 

Detailed Description

Base class for every Weapon that shoots rockets, i.e. projectiles that follow a target


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