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

#include <fsIScene.h>

Inheritance diagram for fsIScene:

Public Member Functions

template<typename TInterface>
std::vector< fsCEntity * > entitiesWithComponentsOfFamilyType () const
template<typename TInterface>
fsCEntityfirstEntityWithComponentsOfFamilyType () const
fsCEntityentityNamed (const fsStr &pName) const
fsBool emptyGet () const
void link (fsINode *pChild)
virtual ~fsIScene ()
Public Member Functions inherited from fsCEntity
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 fsIScenecreate (const fsStr &pSceneName)
Static Public Member Functions inherited from fsCEntity
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

 fsIScene (const fsStr &pSceneName)
virtual void linkDo (fsINode *const pChild)
Protected Member Functions inherited from fsCEntity
 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 ()

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

◆ ~fsIScene()

fsIScene::~fsIScene ( )
virtual

◆ fsIScene()

fsIScene::fsIScene ( const fsStr & pSceneName)
protected

Member Function Documentation

◆ create()

fsIScene * fsIScene::create ( const fsStr & pSceneName)
static

◆ emptyGet()

fsBool fsIScene::emptyGet ( ) const

◆ entitiesWithComponentsOfFamilyType()

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

◆ entityNamed()

fsCEntity * fsIScene::entityNamed ( const fsStr & pName) const

◆ firstEntityWithComponentsOfFamilyType()

template<typename TInterface>
fsCEntity * fsIScene::firstEntityWithComponentsOfFamilyType ( ) const

◆ link()

void fsIScene::link ( fsINode * pChild)

◆ linkDo()

virtual void fsIScene::linkDo ( fsINode *const pChild)
inlineprotectedvirtual

Reimplemented in fsCScene, fsCScene, fsCScene, fsCScene, and fsCScene.


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