Thrive
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
thrive::EmptyShape Class Reference

An empty shape. More...

#include <collision_shape.h>

Inheritance diagram for thrive::EmptyShape:
thrive::CollisionShape

Public Member Functions

btCollisionShape * bulletShape () const override
 Returns a pointer to the internal Bullet shape object. More...
 
ShapeType shapeType () const override
 The shape's type.
 
StorageContainer storage () const override
 Serializes this empty shape. More...
 
 EmptyShape ()
 Constructor.
 
- Public Member Functions inherited from thrive::CollisionShape
virtual ~CollisionShape ()=0
 Destructor.
 

Static Public Member Functions

static std::unique_ptr< EmptyShape > load (const StorageContainer &storage)
 Loads an empty shape. More...
 
static luabind::scope luaBindings ()
 Lua bindings. More...
 
- Static Public Member Functions inherited from thrive::CollisionShape
static std::unique_ptr< CollisionShape > load (const StorageContainer &storage)
 Loads a shape from a storage container. More...
 
static luabind::scope luaBindings ()
 Lua bindings. More...
 

Static Public Attributes

static const ShapeType SHAPE_TYPE = EMPTY_SHAPE
 The ShapeType associated with this class. More...
 

Additional Inherited Members

- Public Types inherited from thrive::CollisionShape
enum  Axis : uint8_t { AXIS_X = 0, AXIS_Y = 1, AXIS_Z = 2 }
 Enumeration for the 3 axes. More...
 
enum  ShapeType : uint8_t {
  EMPTY_SHAPE = 0, BOX_SHAPE = 1, CAPSULE_SHAPE = 2, COMPOUND_SHAPE = 3,
  CONE_SHAPE = 4, CYLINDER_SHAPE = 5, SPHERE_SHAPE = 6
}
 Enumeration for the currently supported shape types. More...
 
using Ptr = std::shared_ptr< CollisionShape >
 Convenience typedef.
 

Detailed Description

An empty shape.

Mostly as a placeholder

Member Function Documentation

btCollisionShape* thrive::EmptyShape::bulletShape ( ) const
inlineoverridevirtual

Returns a pointer to the internal Bullet shape object.

Returns

Implements thrive::CollisionShape.

std::unique_ptr< EmptyShape > EmptyShape::load ( const StorageContainer &  storage)
static

Loads an empty shape.

Returns
luabind::scope EmptyShape::luaBindings ( )
static

Lua bindings.

EmptyShape::EmptyShape()

Returns
StorageContainer EmptyShape::storage ( ) const
overridevirtual

Serializes this empty shape.

Returns

Implements thrive::CollisionShape.

Member Data Documentation

const ShapeType thrive::EmptyShape::SHAPE_TYPE = EMPTY_SHAPE
static

The ShapeType associated with this class.


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