GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Data Fields | Private Attributes
radix::Trigger Class Reference

#include <external/RadixEngine/include/radix/component/Trigger.hpp>

Inherits radix::Component.

Public Types

using Action = std::function< void(BaseGame *)>
 
- Public Types inherited from radix::Component
using TypeId = ComponentTypeId
 

Public Member Functions

btGhostObject * getBulletGhostObject ()
 
 Trigger (Entity &ent)
 
 ~Trigger ()
 
const char * getName () const
 
void setActionOnExit (Action action)
 
void setActionOnEnter (Action action)
 
void setActionOnMove (Action action)
 
void setActionOnUpdate (Action action)
 
TypeId getTypeId () const
 
void serialize (serine::Archiver &ar)
 
void onEnter (BaseGame *game)
 
void onExit (BaseGame *game)
 
void onMove (BaseGame *game)
 
void onUpdate (BaseGame *game)
 
- Public Member Functions inherited from radix::Component
 Component (Entity &ent) noexcept
 
virtual ~Component ()
 

Data Fields

Action actionOnEnter
 
Action actionOnExit
 
Action actionOnMove
 
Action actionOnUpdate
 
EventDispatcher::CallbackHolder callbackOnEnter
 
EventDispatcher::CallbackHolder callbackOnExit
 
std::shared_ptr< btConvexShape > shape
 

Private Attributes

btGhostObject * ghostObject
 

Additional Inherited Members

- Static Public Member Functions inherited from radix::Component
template<typename T >
static TypeId getTypeId ()
 Gets a component's type ID. More...
 
- Static Public Attributes inherited from radix::Component
static constexpr TypeId MaxId = 32
 
- Protected Attributes inherited from radix::Component
Entityentity
 

Member Typedef Documentation

using radix::Trigger::Action = std::function<void(BaseGame*)>

Constructor & Destructor Documentation

radix::Trigger::Trigger ( Entity ent)
radix::Trigger::~Trigger ( )

Member Function Documentation

btGhostObject * radix::Trigger::getBulletGhostObject ( )
const char* radix::Trigger::getName ( ) const
inlinevirtual

Implements radix::Component.

TypeId radix::Trigger::getTypeId ( ) const
inlinevirtual

Implements radix::Component.

void radix::Trigger::onEnter ( BaseGame game)
inline
void radix::Trigger::onExit ( BaseGame game)
inline
void radix::Trigger::onMove ( BaseGame game)
inline
void radix::Trigger::onUpdate ( BaseGame game)
inline
void radix::Trigger::serialize ( serine::Archiver &  ar)
inline
void radix::Trigger::setActionOnEnter ( Action  action)
void radix::Trigger::setActionOnExit ( Action  action)
void radix::Trigger::setActionOnMove ( Action  action)
void radix::Trigger::setActionOnUpdate ( Action  action)

Field Documentation

Action radix::Trigger::actionOnEnter
Action radix::Trigger::actionOnExit
Action radix::Trigger::actionOnMove
Action radix::Trigger::actionOnUpdate
EventDispatcher::CallbackHolder radix::Trigger::callbackOnEnter
EventDispatcher::CallbackHolder radix::Trigger::callbackOnExit
btGhostObject* radix::Trigger::ghostObject
private
std::shared_ptr<btConvexShape> radix::Trigger::shape

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