Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
Hardpoint Class Reference

#include <hardpoint.h>

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

Public Member Functions

 Hardpoint (WorldObjectComponents *components, HardpointVoxel *voxel)
 
HardpointVoxelvoxel ()
 
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)
 
WorldObjectComponentscomponents ()
 
const WorldObjectComponentscomponents () const
 
int index () const
 

Protected Attributes

HardpointVoxelm_voxel
 
std::shared_ptr< Weaponm_weapon
 
glm::vec3 m_direction
 
float m_fieldOfAim
 
- Protected Attributes inherited from WorldObjectSlot
WorldObjectComponentsm_components
 
std::map< std::string, bool > m_mountables
 
int m_index
 

Detailed Description

Slot into which interchangeable weapons may be mounted direction and fieldOfAim form a cone in which the hardpoint can fire its weapons


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