Adonthell  0.4
objects Class Reference

The global container for access to all the different game objects from within a script. More...

#include <storage.h>

Public Member Functions

 objects ()
 Default constructor. More...
 
void set_val (const char *key, storage *val)
 Associates an object to a key. More...
 
storageget_val (const char *key)
 Returns a storage associated to a key. More...
 
void erase (const char *key)
 Erases a storage from it's key. More...
 
storagenext ()
 Returns the next storage in the object. More...
 

Detailed Description

The global container for access to all the different game objects from within a script.

Definition at line 156 of file storage.h.

Constructor & Destructor Documentation

objects::objects ( )
inline

Default constructor.

Definition at line 163 of file storage.h.

Member Function Documentation

void objects::set_val ( const char *  key,
storage val 
)

Associates an object to a key.

Parameters
keykey.
valstorage associated to key.

Definition at line 88 of file storage.cc.

storage * objects::get_val ( const char *  key)

Returns a storage associated to a key.

Parameters
keykey to return.
Returns
storage associated to key.

Definition at line 114 of file storage.cc.

void objects::erase ( const char *  key)

Erases a storage from it's key.

Parameters
keykey to erase.

Definition at line 139 of file storage.cc.

storage * objects::next ( )

Returns the next storage in the object.

Returns
next storage in the object.

Definition at line 150 of file storage.cc.


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