![]() |
Public API Reference |
#include <light.h>
Inheritance diagram for csLightList:
Public Methods | |
csLightList () | |
constructor. More... | |
virtual void | PrepareItem (iLight *) |
Override PrepareItem. More... | |
virtual void | FreeItem (iLight *) |
Override FreeItem. More... | |
virtual int | GetCount () const |
Return the number of lights in this list. More... | |
virtual iLight * | Get (int n) const |
Return a light by index. More... | |
virtual int | Add (iLight *obj) |
Add a light. More... | |
virtual bool | Remove (iLight *obj) |
Remove a light. More... | |
virtual bool | Remove (int n) |
Remove the nth light. More... | |
virtual void | RemoveAll () |
Remove all lights. More... | |
virtual int | Find (iLight *obj) const |
Find a light and return its index. More... | |
virtual iLight * | FindByName (const char *Name) const |
Find a light by name. More... | |
virtual iLight * | FindByID (const char *id) const |
Find a light by its ID value (16-byte MD5). More... |
This class implements iLightList.
Definition at line 600 of file csengine/light.h.
|
constructor.
|
|
Add a light.
Implements iLightList. |
|
Find a light and return its index.
Implements iLightList. |
|
Find a light by its ID value (16-byte MD5).
Implements iLightList. |
|
Find a light by name.
Implements iLightList. |
|
Override FreeItem.
Reimplemented in csSectorLightList. Definition at line 615 of file csengine/light.h. |
|
Return a light by index.
Implements iLightList. Definition at line 618 of file csengine/light.h. References csRefArray::Get. |
|
Return the number of lights in this list.
Implements iLightList. Definition at line 617 of file csengine/light.h. References csRefArray::Length. |
|
Override PrepareItem.
Reimplemented in csSectorLightList. Definition at line 613 of file csengine/light.h. |
|
Remove the nth light.
Implements iLightList. |
|
Remove a light.
Implements iLightList. |
|
Remove all lights.
Implements iLightList. |