CSEngine
Loading...
Searching...
No Matches
CSE::Skeleton Class Reference
Inheritance diagram for CSE::Skeleton:
CSE::SResource CSE::SObject

Public Member Functions

 Skeleton (int jointCount, Joint *headJoint)
 
void SetJoint (int jointCount, Joint *headJoint)
 
int getJointCount () const
 
void setJointCount (int jointCount)
 
JointgetHeadJoint () const
 
void setHeadJoint (Joint *headJoint)
 
void Exterminate () override
 
- Public Member Functions inherited from CSE::SResource
 SResource (bool isRegister)
 
 SResource (const SResource *resource, bool isRegister)
 
void SetName (std::string name)
 
void SetAbsoluteID (std::string id)
 
std::string GetName () const
 
std::string GetAbsoluteID () const
 
AssetMgr::AssetReferenceGetAssetReference (std::string hash="") const
 
void LinkResource (AssetMgr::AssetReference *asset)
 
void LinkResource (std::string name)
 
void SetHash (std::string &hash) override
 
- Public Member Functions inherited from CSE::SObject
 SObject (bool isRegister)
 
virtual void SetUndestroyable (bool enable)
 
virtual void Destroy ()
 
virtual void __FORCE_DESTROY__ ()
 
virtual std::string GenerateMeta ()
 
std::string GetHash () const
 

Protected Member Functions

void Init (const AssetMgr::AssetReference *asset) override
 

Additional Inherited Members

- Static Public Member Functions inherited from CSE::SResource
template<class T >
static T * Create (const std::string &name)
 
template<class T >
static T * Create (const AssetMgr::AssetReference *asset)
 
template<class T >
static T * Get (std::string name)
 
- Protected Attributes inherited from CSE::SObject
std::string m_hash
 

Detailed Description

Definition at line 12 of file Skeleton.h.

Constructor & Destructor Documentation

◆ Skeleton() [1/2]

CSE::Skeleton::Skeleton ( )
inline

Definition at line 14 of file Skeleton.h.

14 {
15 SetUndestroyable(true);
16 }

◆ Skeleton() [2/2]

CSE::Skeleton::Skeleton ( int  jointCount,
Joint headJoint 
)
inline

Definition at line 18 of file Skeleton.h.

18 : m_jointCount(jointCount), m_headJoint(headJoint) {
19 SetUndestroyable(true);
20
21 }

◆ ~Skeleton()

CSE::Skeleton::~Skeleton ( )
inlineoverride

Definition at line 23 of file Skeleton.h.

23 {
24 Exterminate();
25 }

Member Function Documentation

◆ Exterminate()

void CSE::Skeleton::Exterminate ( )
inlineoverridevirtual

Implements CSE::SObject.

Definition at line 51 of file Skeleton.h.

51 {
52 SAFE_DELETE(m_headJoint);
53 }

◆ getHeadJoint()

Joint * CSE::Skeleton::getHeadJoint ( ) const
inline

Definition at line 42 of file Skeleton.h.

42 {
43 if (!isLoaded()) return nullptr;
44 return m_headJoint;
45 }

◆ getJointCount()

int CSE::Skeleton::getJointCount ( ) const
inline

Definition at line 33 of file Skeleton.h.

33 {
34 if (!isLoaded()) return -1;
35 return m_jointCount;
36 }

◆ Init()

void CSE::Skeleton::Init ( const AssetMgr::AssetReference asset)
inlineoverrideprotectedvirtual

Implements CSE::SResource.

Definition at line 56 of file Skeleton.h.

56 {
57 return;
58 }

◆ setHeadJoint()

void CSE::Skeleton::setHeadJoint ( Joint headJoint)
inline

Definition at line 47 of file Skeleton.h.

47 {
48 Skeleton::m_headJoint = headJoint;
49 }

◆ SetJoint()

void CSE::Skeleton::SetJoint ( int  jointCount,
Joint headJoint 
)
inline

Definition at line 27 of file Skeleton.h.

27 {
28 m_jointCount = jointCount;
29 m_headJoint = headJoint;
30 }

◆ setJointCount()

void CSE::Skeleton::setJointCount ( int  jointCount)
inline

Definition at line 38 of file Skeleton.h.

38 {
39 Skeleton::m_jointCount = jointCount;
40 }

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