DynRPG v0.32 Unofficial
Plugin SDK
Public Member Functions | List of all members
RPG::NamedCatalog< T > Class Template Reference

Class inherited from RPG::Catalog in which elements with non-consecutive IDs are stored without waste of memory (i.e. events on a map) More...

#include <NamedCatalog.h>

Inheritance diagram for RPG::NamedCatalog< T >:
RPG::Catalog< T >

Public Member Functions

T operator[] (int index)
 Array access operator.
 
T get (int index)
 Array access method.
 
- Public Member Functions inherited from RPG::Catalog< T >
T operator[] (int index)
 Array access operator.
 
T get (int index)
 Array access method.
 
int count ()
 Returns the number of items in the list.
 

Additional Inherited Members

- Public Attributes inherited from RPG::Catalog< T >
DListPtr< Tlist
 Pointer to the actual RPG::DList.
 

Detailed Description

template<class T = void*>
class RPG::NamedCatalog< T >

Class inherited from RPG::Catalog in which elements with non-consecutive IDs are stored without waste of memory (i.e. events on a map)

If you need to enumerate all items in an RPG::NamedCatalog, use

for(int i = 0; i < myCatalog.count(); i++) {
// Processing here...
}
Map *& map
The current map environment (camera, events, etc.)

If you have an RPG::NamedCatalogPtr, it works the same way.

See also
RPG::Catalog
RPG::NamedCatalogPtr

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