Página principal   Lista de componentes   Lista de archivos   Miembros de las clases   Archivos de los miembros   Páginas relacionadas  

Referencia del Archivo object.h

#include <list.h>
#include <SDL.h>
#include <action.h>

Clases

struct  object_operations
 All the permited operations an object can do. Más...

struct  object
 A generic object. Más...


Funciones

object object_init (void *priv, struct object_operations *object_ops)
 It initializes an object. Más...

void object_destroy (object)
 It destroys an object. Más...


Descripción detallada

Object interface.


Documentación de las funciones

object object_init void *    priv,
struct object_operations   object_ops
 

It initializes an object.

You must call this function before using the object.

Bug:
There isn't any error check in it (out of memory)
Parámetros:
priv  The private data of the actual object implementation.
object_ops  The object operations overloaded for this kind of object.
Devuelve:
An object

void object_destroy object    obj
 

It destroys an object.

It frees the resources of the object. You must call it when are not going to use the object anymore (ex. player dead)

Parámetros:
obj  An initialized object
Devuelve:
Nothing


Generado el Tue Oct 14 12:05:06 2003 para Repune por doxygen1.2.15