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

#include <weapon.h>

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

Public Member Functions

 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
 
virtual void update (float deltaSec)
 
bool canFire ()
 
void onFired ()
 
- Public Member Functions inherited from Equipment
 Equipment (const std::string &equipmentKey)
 
const std::string & equipmentKey () const
 

Protected Attributes

Hardpointm_hardpoint
 
WeaponType m_type
 
float m_cooldown
 
- Protected Attributes inherited from Equipment
std::string m_equipmentKey
 

Detailed Description

Weapon to be mounted to a HardPoint


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