GlPortal Class Reference
0.1.1
Source code documentation of the free and open 3D action puzzle game.
|
#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 | |
Entity & | entity |
using radix::Trigger::Action = std::function<void(BaseGame*)> |
radix::Trigger::Trigger | ( | Entity & | ent | ) |
radix::Trigger::~Trigger | ( | ) |
btGhostObject * radix::Trigger::getBulletGhostObject | ( | ) |
|
inlinevirtual |
Implements radix::Component.
|
inlinevirtual |
Implements radix::Component.
|
inline |
|
inline |
|
inline |
|
inline |
|
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 | ) |
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 |
|
private |
std::shared_ptr<btConvexShape> radix::Trigger::shape |