CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

csCollection Class Reference

A collection object is for conveniance of the script language. More...

#include <cscoll.h>

Inheritance diagram for csCollection:

csObject iObject iBase List of all members.

Public Methods

 csCollection (csEngine *engine)
 Create a new csCollection with the given name. More...

iObjectFindObject (char *name)
 Find an object with the given name inside this collection. More...

int GetObjectCount () const
 Get the number of objects in this collection. More...

void AddObject (iObject *obj)
 Add an object to the collection. More...


Detailed Description

A collection object is for conveniance of the script language.

It simply groups objects which are related in some way.

Definition at line 36 of file cscoll.h.


Constructor & Destructor Documentation

csCollection::csCollection csEngine   engine
 

Create a new csCollection with the given name.


Member Function Documentation

void csCollection::AddObject iObject   obj [inline]
 

Add an object to the collection.

Definition at line 66 of file cscoll.h.

References csRefArray::Push.

iObject* csCollection::FindObject char *    name
 

Find an object with the given name inside this collection.

int csCollection::GetObjectCount   const [inline]
 

Get the number of objects in this collection.

Definition at line 63 of file cscoll.h.

References csRefArray::Length.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14