Drag[en]gine Game Engine  1.0
deDynamicSkin Class Reference

Dynamic Skin. More...

#include <deDynamicSkin.h>

Inheritance diagram for deDynamicSkin:
deResource deObject

Public Member Functions

Management
int GetRenderableCount () const
 
deDSRenderableGetRenderableAt (int index) const
 
deDSRenderableGetRenderableNamed (const char *name) const
 
bool HasRenderable (deDSRenderable *renderable) const
 
bool HasRenderableNamed (const char *name) const
 
int IndexOfRenderable (deDSRenderable *renderable) const
 
int IndexOfRenderableNamed (const char *name) const
 
void AddRenderable (deDSRenderable *renderable)
 
void RemoveRenderable (deDSRenderable *renderable)
 
void RemoveRenderableNamed (const char *name)
 
void RemoveAllRenderables ()
 
void NotifyRenderableChanged (int index)
 
System Peers
deBaseGraphicDynamicSkinGetGraphicPeer () const
 
void SetGraphicPeer (deBaseGraphicDynamicSkin *peer)
 
- Public Member Functions inherited from deResource
deResourceManagerGetResourceManager () const
 Resource manager or NULL if resource is leaking. More...
 
deEngineGetEngine () const
 Game engine object from resource manager. More...
 
deResourceGetLLManagerPrev () const
 Previous resource in the resource manager linked list. More...
 
void SetLLManagerPrev (deResource *resource)
 Set next resource in the resource manager linked list. More...
 
deResourceGetLLManagerNext () const
 Next resource in the resource manager linked list. More...
 
void SetLLManagerNext (deResource *resource)
 Set next resource in the resource manager linked list. More...
 
void MarkLeaking ()
 Marks the resource leaking. More...
 
 deResource (deResourceManager *resourceManager)
 Create resource. More...
 
- Public Member Functions inherited from deObject
int GetRefCount () const
 Reference count. More...
 
void AddReference ()
 Add reference increasing reference count by 1. More...
 
void FreeReference ()
 Decrease reference count by one and delete object if count reaches 0. More...
 
 deObject ()
 Create object with reference count of 1. More...
 

Constructors and Destructors

 deDynamicSkin (deDynamicSkinManager *manager)
 
virtual ~deDynamicSkin ()
 Clean up resource. More...
 

Additional Inherited Members

- Protected Member Functions inherited from deResource
virtual ~deResource ()
 Clean up resource. More...
 
- Protected Member Functions inherited from deObject
virtual ~deObject ()
 Clean up object. More...
 

Detailed Description

Dynamic Skin.

Defines dynamic properties of a skin resource.

Author
Pl├╝ss Roland
Version
1.0
Date
2009

Constructor & Destructor Documentation

◆ deDynamicSkin()

deDynamicSkin::deDynamicSkin ( deDynamicSkinManager manager)

Creates a new resource.

◆ ~deDynamicSkin()

virtual deDynamicSkin::~deDynamicSkin ( )
protectedvirtual

Clean up resource.

Note
Subclasses should set their destructor protected too to avoid users accidently deleting a reference counted object through the object pointer. Only FreeReference() is allowed to delete the object.

Member Function Documentation

◆ AddRenderable()

void deDynamicSkin::AddRenderable ( deDSRenderable renderable)

Adds a renderable.

Referenced by GetRenderableCount().

◆ GetGraphicPeer()

deBaseGraphicDynamicSkin* deDynamicSkin::GetGraphicPeer ( ) const
inline

Retrieves the graphic system peer object.

References SetGraphicPeer().

◆ GetRenderableAt()

deDSRenderable* deDynamicSkin::GetRenderableAt ( int  index) const

Retrieves the renderable at the given index.

Referenced by GetRenderableCount().

◆ GetRenderableCount()

◆ GetRenderableNamed()

deDSRenderable* deDynamicSkin::GetRenderableNamed ( const char *  name) const

Retrieves the renderable with the given name or NULL if not found.

Referenced by GetRenderableCount().

◆ HasRenderable()

bool deDynamicSkin::HasRenderable ( deDSRenderable renderable) const

Determines if a renderable exists.

Referenced by GetRenderableCount().

◆ HasRenderableNamed()

bool deDynamicSkin::HasRenderableNamed ( const char *  name) const

Determines if a renderable with the given name exists.

Referenced by GetRenderableCount().

◆ IndexOfRenderable()

int deDynamicSkin::IndexOfRenderable ( deDSRenderable renderable) const

Retrieves the index of the renderable or -1 if not found.

Referenced by GetRenderableCount().

◆ IndexOfRenderableNamed()

int deDynamicSkin::IndexOfRenderableNamed ( const char *  name) const

Retrieves the index of the renderable with the given name or -1 if not found.

Referenced by GetRenderableCount().

◆ NotifyRenderableChanged()

void deDynamicSkin::NotifyRenderableChanged ( int  index)

Notifies the peer that the given renderable changed.

Referenced by GetRenderableCount().

◆ RemoveAllRenderables()

void deDynamicSkin::RemoveAllRenderables ( )

Removes all renderables.

Referenced by GetRenderableCount().

◆ RemoveRenderable()

void deDynamicSkin::RemoveRenderable ( deDSRenderable renderable)

Removes a renderable.

Referenced by GetRenderableCount().

◆ RemoveRenderableNamed()

void deDynamicSkin::RemoveRenderableNamed ( const char *  name)

Removes a renderable with the given name if existing.

Referenced by GetRenderableCount().

◆ SetGraphicPeer()

void deDynamicSkin::SetGraphicPeer ( deBaseGraphicDynamicSkin peer)

Sets the graphic system peer object.

Referenced by GetGraphicPeer().


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