|
Voxellancer
0.3
A game about voxels in space
|
#include <hardpoint.h>
Public Member Functions | |
| Hardpoint (WorldObjectComponents *components, HardpointVoxel *voxel) | |
| HardpointVoxel * | voxel () |
| const std::shared_ptr< Weapon > & | weapon () |
| void | setWeapon (const std::shared_ptr< Weapon > &weapon) |
| const glm::vec3 & | direction () const |
| void | setDirection (const glm::vec3 &direction) |
| float | fieldOfAim () const |
| void | setFieldOfAim (float fieldOfAim) |
| bool | inFieldOfAim (const glm::vec3 &point) |
| void | update (float deltaSec) |
| void | onVoxelRemoval () |
Public Member Functions inherited from WorldObjectSlot | |
| WorldObjectSlot (WorldObjectComponents *components, int index) | |
| std::list< std::string > | mountables () const |
| bool | mountable (const std::string &name) const |
| void | setMountable (const std::string &name, bool mountable) |
| WorldObjectComponents * | components () |
| const WorldObjectComponents * | components () const |
| int | index () const |
Protected Attributes | |
| HardpointVoxel * | m_voxel |
| std::shared_ptr< Weapon > | m_weapon |
| glm::vec3 | m_direction |
| float | m_fieldOfAim |
Protected Attributes inherited from WorldObjectSlot | |
| WorldObjectComponents * | m_components |
| std::map< std::string, bool > | m_mountables |
| int | m_index |
Slot into which interchangeable weapons may be mounted direction and fieldOfAim form a cone in which the hardpoint can fire its weapons