Fission FSN
Loading...
Searching...
No Matches
fsCEntity Class Reference

#include <fsCEntity.h>

Inheritance diagram for fsCEntity:

Public Member Functions

fsCEntitygrandparentGet () const
void listenersRegister ()
void listenersDeRegister ()
fsCComponentFactorycomponentFactoryGet ()
fsCEntityFactoryentityFactoryGet ()
fsITextSpriteComponenttextComponentGet () const
fsITextSpriteComponenttextComponentAdd ()
fsISpriteComponentspriteComponentGet () const
fsISpriteComponentspriteComponentAdd ()
fsBool tagExists (fsStr const &pTag) const
void tagAdd (fsStr const &pTag)
template<typename TComponent>
TComponent * componentAdd ()
fsIComponentcomponentAdd (const fsCUniqueId &pTypeId)
template<typename TComponent>
TComponent * componentGet () const
fsIComponentcomponentGet (const fsCUniqueId &pTypeId) const
void componentDestroy (const fsCUniqueId &pTypeId)
template<typename TInterface>
TInterface * firstComponentOfFamilyType () const
template<typename TLamda>
void forMyChildren (TLamda &&pLamda)
template<typename TLamda>
void forAllChildren (TLamda &&pLamda)
fsCEntitychildFind (const fsStr &pName, fsBool pCaseless=false)
template<typename TInterface>
std::vector< TInterface * > componentsOfFamilyTypeGet () const
template<typename TInterface>
std::vector< fsCEntity * > childEntitiesWithComponentsOfFamilyType ()
std::vector< fsCEntity * > childEntitiesWithComponentsOfTypeGet (const std::vector< const std::type_info * > &pPossibleComponentTypes)
std::vector< fsCEntity * > childEntitiesTaggedWithGet (std::vector< fsStr > pTags)
template<typename TInterface>
fsCEntityfirstChildEntityWithComponentsOfFamilyType ()
Public Member Functions inherited from fsINode
fsBool matrixDirtyGet () const
void destroy ()
void initialiseFromVariableTable (const fsCVariableTable &pVars)
void init ()
fsBool screenCoordConvertToLocal (const fsVec2d &pScreenPos, fsVec2d &pLocalPos)
void posSet (const fsVec2d &pPos)
fsVec2d posGet () const
fsVec2d posRelativeToAncestorGet (const fsINode *pAncestor) const
fsVec2d screenPositionGet () const
void scaleSet (fsVec2d const &pScale)
fsVec2d const & scaleGet () const
void angleSet (fsF32 pAngleRadians)
void targetAngleSet (fsF32 pRadians, fsF32 pRadiansPerSec)
fsF32 angleGet () const
void visibleSet (fsBool pVisible)
fsBool visibleGet () const
void skipMeSet (fsBool pVisible)
fsBool skipMeGet () const
const fsStrnameGet () const
void nameSet (const fsStr &pName)
const fsAffineMtx2dlocalMatrixGet () const
const fsAffineMtx2drenderMatrixGet () const
void childAdd (fsINode *pChild)
void childRemove (fsINode *pChild)
fsINodeparentGet () const
fsINodechildFind (const fsStr &pName, fsBool pCaseless=false) const
void bringToFrontOfSiblings ()
void pushToBackOfSiblings ()
void postLink ()
void matrixUpdateIfDirty ()
void update (fsS32 pDeltaMs)
void render ()
void reset ()
void hierarchyDumpToLog () const
void serialise (fsStr &pSaveStr)
void deserialise (fsStr &pLoadStr)
void s32Serialise (fsS32 pVal)
fsS32 s32Deserialise ()
void boolSerialise (fsBool pVal)
fsBool boolDeserialise ()
void strSerialise (const fsStr &pVal)
fsStr strDeserialise ()
void pointSerialise (const fsPoint &pVal)
fsPoint pointDeserialise ()
void matrixUpdate ()
 fsINode (const fsStr &pName)

Static Public Member Functions

static void componentFactorySet (std::shared_ptr< fsCComponentFactory > pComponentFactory)
static void entityFactorySet (std::shared_ptr< fsCEntityFactory > pEntityFactory)
Static Public Member Functions inherited from fsINode
static void staticVectorsCreate ()
static void staticVectorsDestroy ()
static void flaggedNodesDestroy ()
static void newNodesParent ()

Protected Member Functions

 fsCEntity (const fsStr &pName)
virtual ~fsCEntity ()
void initialiseFromVariableTableDo (const fsCVariableTable &pVars) override
void updateDo (fsS32 pDeltaMs) override
void renderDo () override
void updatedMatrixProcess () override
void initDo () override
void resetDo () override
void serialiseDo () override
void deserialiseDo () override
void postLoad () override
void postLinkDo () override
Protected Member Functions inherited from fsINode
virtual ~fsINode ()

Friends

class fsCEntityFactory
class gfCTestLoadGuis
class fsIGuiComponent

Additional Inherited Members

Protected Attributes inherited from fsINode
std::vector< fsINode * > mChildren
fsINodemParent
fsStr mName
fsAffineMtx2d mLocalMtx
fsAffineMtx2d mRenderMtx
fsBool mInChildUpdate
fsBool mVisible
fsBool mRenderChildrenRegardless
fsBool mSkipMe
fsBool mMtxDirty
fsVec2d mPos
fsVec2d mScale
fsF32 mAngle
fsF32 mTargetAngle
fsF32 mRotationDir
fsF32 mRotationSpeed
fsISerialisablemSerialisableController

Constructor & Destructor Documentation

◆ fsCEntity()

fsCEntity::fsCEntity ( const fsStr & pName)
protected

◆ ~fsCEntity()

fsCEntity::~fsCEntity ( )
protectedvirtual

Member Function Documentation

◆ childEntitiesTaggedWithGet()

std::vector< fsCEntity * > fsCEntity::childEntitiesTaggedWithGet ( std::vector< fsStr > pTags)

◆ childEntitiesWithComponentsOfFamilyType()

template<typename TInterface>
std::vector< fsCEntity * > fsCEntity::childEntitiesWithComponentsOfFamilyType ( )

◆ childEntitiesWithComponentsOfTypeGet()

std::vector< fsCEntity * > fsCEntity::childEntitiesWithComponentsOfTypeGet ( const std::vector< const std::type_info * > & pPossibleComponentTypes)

◆ childFind()

fsCEntity * fsCEntity::childFind ( const fsStr & pName,
fsBool pCaseless = false )

◆ componentAdd() [1/2]

template<typename TComponent>
TComponent * fsCEntity::componentAdd ( )

◆ componentAdd() [2/2]

fsIComponent * fsCEntity::componentAdd ( const fsCUniqueId & pTypeId)

◆ componentDestroy()

void fsCEntity::componentDestroy ( const fsCUniqueId & pTypeId)

◆ componentFactoryGet()

fsCComponentFactory * fsCEntity::componentFactoryGet ( )

◆ componentFactorySet()

void fsCEntity::componentFactorySet ( std::shared_ptr< fsCComponentFactory > pComponentFactory)
static

◆ componentGet() [1/2]

template<typename TComponent>
TComponent * fsCEntity::componentGet ( ) const

◆ componentGet() [2/2]

fsIComponent * fsCEntity::componentGet ( const fsCUniqueId & pTypeId) const

◆ componentsOfFamilyTypeGet()

template<typename TInterface>
std::vector< TInterface * > fsCEntity::componentsOfFamilyTypeGet ( ) const

◆ deserialiseDo()

void fsCEntity::deserialiseDo ( )
overrideprotectedvirtual

Reimplemented from fsINode.

◆ entityFactoryGet()

fsCEntityFactory * fsCEntity::entityFactoryGet ( )

◆ entityFactorySet()

void fsCEntity::entityFactorySet ( std::shared_ptr< fsCEntityFactory > pEntityFactory)
static

◆ firstChildEntityWithComponentsOfFamilyType()

template<typename TInterface>
fsCEntity * fsCEntity::firstChildEntityWithComponentsOfFamilyType ( )

◆ firstComponentOfFamilyType()

template<typename TInterface>
TInterface * fsCEntity::firstComponentOfFamilyType ( ) const

◆ forAllChildren()

template<typename TLamda>
void fsCEntity::forAllChildren ( TLamda && pLamda)

◆ forMyChildren()

template<typename TLamda>
void fsCEntity::forMyChildren ( TLamda && pLamda)

◆ grandparentGet()

fsCEntity * fsCEntity::grandparentGet ( ) const

◆ initDo()

void fsCEntity::initDo ( )
overrideprotectedvirtual

Reimplemented from fsINode.

◆ initialiseFromVariableTableDo()

void fsCEntity::initialiseFromVariableTableDo ( const fsCVariableTable & pVars)
overrideprotectedvirtual

Reimplemented from fsINode.

◆ listenersDeRegister()

void fsCEntity::listenersDeRegister ( )

◆ listenersRegister()

void fsCEntity::listenersRegister ( )

◆ postLinkDo()

void fsCEntity::postLinkDo ( )
overrideprotectedvirtual

Reimplemented from fsINode.

◆ postLoad()

void fsCEntity::postLoad ( )
overrideprotectedvirtual

Reimplemented from fsINode.

◆ renderDo()

void fsCEntity::renderDo ( )
overrideprotectedvirtual

Reimplemented from fsINode.

◆ resetDo()

void fsCEntity::resetDo ( )
overrideprotectedvirtual

Reimplemented from fsINode.

◆ serialiseDo()

void fsCEntity::serialiseDo ( )
overrideprotectedvirtual

Reimplemented from fsINode.

◆ spriteComponentAdd()

fsISpriteComponent * fsCEntity::spriteComponentAdd ( )

◆ spriteComponentGet()

fsISpriteComponent * fsCEntity::spriteComponentGet ( ) const

◆ tagAdd()

void fsCEntity::tagAdd ( fsStr const & pTag)

◆ tagExists()

fsBool fsCEntity::tagExists ( fsStr const & pTag) const

◆ textComponentAdd()

fsITextSpriteComponent * fsCEntity::textComponentAdd ( )

◆ textComponentGet()

fsITextSpriteComponent * fsCEntity::textComponentGet ( ) const

◆ updatedMatrixProcess()

void fsCEntity::updatedMatrixProcess ( )
overrideprotectedvirtual

Reimplemented from fsINode.

◆ updateDo()

void fsCEntity::updateDo ( fsS32 pDeltaMs)
overrideprotectedvirtual

Reimplemented from fsINode.

Reimplemented in fsCScreenFade.

◆ fsCEntityFactory

friend class fsCEntityFactory
friend

◆ fsIGuiComponent

friend class fsIGuiComponent
friend

◆ gfCTestLoadGuis

friend class gfCTestLoadGuis
friend

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