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 | Static Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions
radix::Component Class Referenceabstract

Base class to create entity components. More...

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

Inherits Serializable.

Inherited by glPortal::Portal, glPortal::Screen, glPortal::Terminal, radix::Health, radix::LightSource, radix::MeshDrawable, radix::Player, radix::RigidBody, radix::SoundListener, radix::SoundSource, radix::Transform, radix::Trigger, and radix::ViewFrame.

Public Types

using TypeId = ComponentTypeId
 

Public Member Functions

 Component (Entity &ent) noexcept
 
virtual const char * getName () const =0
 
virtual TypeId getTypeId () const =0
 
virtual ~Component ()
 

Static Public Member Functions

template<typename T >
static TypeId getTypeId ()
 Gets a component's type ID. More...
 

Static Public Attributes

static constexpr TypeId MaxId = 32
 

Protected Attributes

Entityentity
 

Private Member Functions

 Component (const Component &)=delete
 
Componentoperator= (const Component &)=delete
 

Detailed Description

Base class to create entity components.

Member Typedef Documentation

Constructor & Destructor Documentation

radix::Component::Component ( const Component )
privatedelete
radix::Component::Component ( Entity ent)
inlinenoexcept
virtual radix::Component::~Component ( )
inlinevirtual

Member Function Documentation

virtual const char* radix::Component::getName ( ) const
pure virtual
template<typename T >
static TypeId radix::Component::getTypeId ( )
inlinestatic

Gets a component's type ID.

Parameters
TComponent type
virtual TypeId radix::Component::getTypeId ( ) const
pure virtual
Component& radix::Component::operator= ( const Component )
privatedelete

Field Documentation

Entity& radix::Component::entity
protected
constexpr TypeId radix::Component::MaxId = 32
static

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