CEL

Public API Reference

Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

iBillboardManager Struct Reference

This is a manager to handle billboards. More...

#include <tools/billboard.h>

List of all members.

Public Member Functions

virtual iBillboardCreateBillboard (const char *name)=0
 Create a new billboard with the given name.
virtual iBillboardFindBillboard (const char *name) const =0
 Find a billboard with a given name.
virtual void RemoveBillboard (iBillboard *billboard)=0
 Remove a billboard.
virtual size_t GetBillboardCount () const =0
 Get the number of all billboards.
virtual iBillboardGetBillboard (size_t idx) const =0
 Get a billboard by index.
virtual iBillboardLayerCreateBillboardLayer (const char *name)=0
 Create a new billboard layer with the given name.
virtual iBillboardLayerFindBillboardLayer (const char *name) const =0
 Find a billboard layer with a given name.
virtual void RemoveBillboardLayer (iBillboardLayer *layer)=0
 Remove a billboard layer.
virtual size_t GetBillboardLayerCount () const =0
 Get the number of all billboard layers.
virtual iBillboardLayerGetBillboardLayer (size_t idx) const =0
 Get a billboard layer by index.
virtual void RemoveAll ()=0
 Remove all billboards.
virtual void SetFlags (uint32 flags, uint32 mask)=0
 Set flags for all billboards.
virtual void StackTop (iBillboard *bb)=0
 Bring a billboard to the top of the stack (first visible).
virtual void StackBottom (iBillboard *bb)=0
 Bring a billboard to the bottom of the stack.
virtual void StackUp (iBillboard *bb)=0
 Bring a billboard one closer to the top.
virtual void StackDown (iBillboard *bb)=0
 Bring a billboard one closer to the bottom.
virtual void StackBefore (iBillboard *bb, iBillboard *other)=0
 Put a billboard before the given other billboard.
virtual void StackAfter (iBillboard *bb, iBillboard *other)=0
 Put a billboard after the given other billboard.
virtual bool TestCollision (iBillboard *bb1, iBillboard *bb2)=0
 Test if two billboards collide with each other and return true if they do.


Detailed Description

This is a manager to handle billboards.

This is used in combination with the billboard property class.

Definition at line 280 of file billboard.h.


Member Function Documentation

virtual iBillboard* iBillboardManager::CreateBillboard const char *  name  )  [pure virtual]
 

Create a new billboard with the given name.

Returns 0 on failure. By default a new billboard will be visible and not movable.

virtual iBillboardLayer* iBillboardManager::CreateBillboardLayer const char *  name  )  [pure virtual]
 

Create a new billboard layer with the given name.

Returns 0 on failure. Note that there is always a layer with name 'default' which is used for new billboards.

virtual iBillboard* iBillboardManager::FindBillboard const char *  name  )  const [pure virtual]
 

Find a billboard with a given name.

virtual iBillboardLayer* iBillboardManager::FindBillboardLayer const char *  name  )  const [pure virtual]
 

Find a billboard layer with a given name.

virtual iBillboard* iBillboardManager::GetBillboard size_t  idx  )  const [pure virtual]
 

Get a billboard by index.

virtual size_t iBillboardManager::GetBillboardCount  )  const [pure virtual]
 

Get the number of all billboards.

virtual iBillboardLayer* iBillboardManager::GetBillboardLayer size_t  idx  )  const [pure virtual]
 

Get a billboard layer by index.

virtual size_t iBillboardManager::GetBillboardLayerCount  )  const [pure virtual]
 

Get the number of all billboard layers.

virtual void iBillboardManager::RemoveAll  )  [pure virtual]
 

Remove all billboards.

virtual void iBillboardManager::RemoveBillboard iBillboard billboard  )  [pure virtual]
 

Remove a billboard.

virtual void iBillboardManager::RemoveBillboardLayer iBillboardLayer layer  )  [pure virtual]
 

Remove a billboard layer.

Note that all billboards that use this layer will be put back on the default layer. Also note that you can't remove the default layer.

virtual void iBillboardManager::SetFlags uint32  flags,
uint32  mask
[pure virtual]
 

Set flags for all billboards.

virtual void iBillboardManager::StackAfter iBillboard bb,
iBillboard other
[pure virtual]
 

Put a billboard after the given other billboard.

virtual void iBillboardManager::StackBefore iBillboard bb,
iBillboard other
[pure virtual]
 

Put a billboard before the given other billboard.

virtual void iBillboardManager::StackBottom iBillboard bb  )  [pure virtual]
 

Bring a billboard to the bottom of the stack.

virtual void iBillboardManager::StackDown iBillboard bb  )  [pure virtual]
 

Bring a billboard one closer to the bottom.

virtual void iBillboardManager::StackTop iBillboard bb  )  [pure virtual]
 

Bring a billboard to the top of the stack (first visible).

virtual void iBillboardManager::StackUp iBillboard bb  )  [pure virtual]
 

Bring a billboard one closer to the top.

virtual bool iBillboardManager::TestCollision iBillboard bb1,
iBillboard bb2
[pure virtual]
 

Test if two billboards collide with each other and return true if they do.


The documentation for this struct was generated from the following file:
Generated for CEL: Crystal Entity Layer by doxygen 1.4.4