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

#include <ship.h>

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

Public Member Functions

virtual WorldObjectType objectType () const override
 
virtual void update (float deltaSec) override
 
Handle< Ship > & handle ()
 
void setTargetObject (WorldObject *target)
 
WorldObjecttargetObject ()
 
BoardComputerboardComputer ()
 
SquadLogicsquadLogic ()
 
void setCharacter (Character *character)
 
Charactercharacter ()
 
- Public Member Functions inherited from WorldObject
 WorldObject (const Transform &transform)
 
SpawnState spawnState () const
 
void setSpawnState (SpawnState spawnState)
 
CollisionFiltercollisionFilter ()
 
void setCollisionFilter (CollisionFilter *collisionFilter)
 
CollisionDetectorcollisionDetector ()
 
Physicsphysics ()
 
const Physicsphysics () const
 
ObjectInfoobjectInfo ()
 
WorldObjectComponentscomponents ()
 
const WorldObjectComponentscomponents () const
 
virtual void addVoxel (Voxel *voxel) override
 
virtual void removeVoxel (Voxel *voxel) override
 
VoxelcrucialVoxel ()
 
void setCrucialVoxel (const glm::ivec3 &cell)
 
bool isCrucialVoxelDestroyed ()
 
void updateTransformAndGeode (const glm::vec3 &position, const glm::quat &orientation)
 
virtual void onCollision ()
 
virtual void onSpawnFail ()
 
Handle< WorldObject > & handle ()
 
float collisionFieldOfDamage () const
 
void setCollisionFieldOfDamage (float collisionFieldOfDamage)
 
virtual bool passiveForCollisionDetection ()
 
- Public Member Functions inherited from VoxelCluster
 VoxelCluster (float scale)
 
VoxelClusterBoundsbounds ()
 
Transformtransform ()
 
const Transformtransform () const
 
void setTransform (const Transform &transform)
 
const glm::vec3 & position () const
 
const glm::quat & orientation () const
 
Voxelvoxel (const glm::ivec3 &position)
 
const Voxelvoxel (const glm::ivec3 &position) const
 
const std::unordered_map
< glm::ivec3, Voxel * > & 
voxelMap () const
 
int voxelCount () const
 
VoxelRenderDatavoxelRenderData ()
 
virtual float emissiveness () const
 
- Public Member Functions inherited from Scriptable
int scriptKey () const
 
void setScriptKey (int key)
 
bool isScriptLocal () const
 
void setScriptLocal (bool local)
 

Protected Member Functions

void updateEnginePosition ()
 

Protected Attributes

std::unique_ptr< Characterm_character
 
std::unique_ptr< BoardComputerm_boardComputer
 
std::unique_ptr< SquadLogicm_squadLogic
 
Handle< Shipm_shipHandle
 
Handle< WorldObjectm_targetObjectHandle
 
- Protected Attributes inherited from WorldObject
std::unique_ptr< CollisionFilterm_collisionFilter
 
std::unique_ptr
< CollisionDetector
m_collisionDetector
 
std::unique_ptr< Physicsm_physics
 
std::unique_ptr< ObjectInfom_objectInfo
 
std::unique_ptr
< WorldObjectComponents
m_components
 
Handle< WorldObjectm_handle
 
Voxelm_crucialVoxel
 
bool m_crucialVoxelDestroyed
 
float m_collisionFieldOfDamage
 
SpawnState m_spawnState
 
- Protected Attributes inherited from VoxelCluster
std::unordered_map< glm::ivec3,
Voxel * > 
m_voxels
 
std::unique_ptr< VoxelRenderDatam_voxelRenderData
 
std::unique_ptr
< VoxelClusterBounds
m_bounds
 
Transform m_transform
 
- Protected Attributes inherited from Scriptable
int m_key
 
bool m_local
 

Additional Inherited Members

- Static Public Attributes inherited from Scriptable
static const int INVALID_KEY = -1
 

Detailed Description

A Ship is a WorldObject with a Pilot (Character), thus can have an AiTask and a Squad membership


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