Crossfire Server, Trunk  R20513
Functions | Variables
cfpython_archetype.c File Reference
#include <cfpython.h>
Include dependency graph for cfpython_archetype.c:

Go to the source code of this file.

Functions

static PyObject * Crossfire_Archetype_GetClone (Crossfire_Archetype *who, void *closure)
 
static PyObject * Crossfire_Archetype_GetHead (Crossfire_Archetype *who, void *closure)
 
static PyObject * Crossfire_Archetype_GetMore (Crossfire_Archetype *who, void *closure)
 
static PyObject * Crossfire_Archetype_GetName (Crossfire_Archetype *whoptr, void *closure)
 
static PyObject * Crossfire_Archetype_GetNewObject (Crossfire_Archetype *who, PyObject *args)
 
static PyObject * Crossfire_Archetype_GetNext (Crossfire_Archetype *who, void *closure)
 
static int Crossfire_Archetype_InternalCompare (Crossfire_Archetype *left, Crossfire_Archetype *right)
 
static PyObject * Crossfire_Archetype_RichCompare (Crossfire_Archetype *left, Crossfire_Archetype *right, int op)
 
PyObject * Crossfire_Archetype_wrap (archetype *what)
 

Variables

static PyGetSetDef Archetype_getseters []
 
static PyMethodDef ArchetypeMethods []
 
PyTypeObject Crossfire_ArchetypeType
 

Function Documentation

static PyObject* Crossfire_Archetype_GetClone ( Crossfire_Archetype who,
void *  closure 
)
static

Definition at line 48 of file cfpython_archetype.c.

References Crossfire_Archetype::arch, cf_archetype_get_clone(), and Crossfire_Object_wrap().

Here is the call graph for this function:

static PyObject* Crossfire_Archetype_GetHead ( Crossfire_Archetype who,
void *  closure 
)
static

Definition at line 44 of file cfpython_archetype.c.

References Crossfire_Archetype::arch, cf_archetype_get_head(), and Crossfire_Archetype_wrap().

Here is the call graph for this function:

static PyObject* Crossfire_Archetype_GetMore ( Crossfire_Archetype who,
void *  closure 
)
static

Definition at line 40 of file cfpython_archetype.c.

References Crossfire_Archetype::arch, cf_archetype_get_more(), and Crossfire_Archetype_wrap().

Here is the call graph for this function:

static PyObject* Crossfire_Archetype_GetName ( Crossfire_Archetype whoptr,
void *  closure 
)
static

Definition at line 32 of file cfpython_archetype.c.

References Crossfire_Archetype::arch, and cf_archetype_get_name().

Here is the call graph for this function:

static PyObject* Crossfire_Archetype_GetNewObject ( Crossfire_Archetype who,
PyObject *  args 
)
static

Definition at line 52 of file cfpython_archetype.c.

References Crossfire_Archetype::arch, cf_archetype_get_name(), cf_create_object_by_name(), and Crossfire_Object_wrap().

Here is the call graph for this function:

static PyObject* Crossfire_Archetype_GetNext ( Crossfire_Archetype who,
void *  closure 
)
static

Definition at line 36 of file cfpython_archetype.c.

References Crossfire_Archetype::arch, cf_archetype_get_next(), and Crossfire_Archetype_wrap().

Here is the call graph for this function:

static int Crossfire_Archetype_InternalCompare ( Crossfire_Archetype left,
Crossfire_Archetype right 
)
static

Definition at line 71 of file cfpython_archetype.c.

References Crossfire_Archetype::arch.

Referenced by Crossfire_Archetype_RichCompare().

Here is the caller graph for this function:

static PyObject* Crossfire_Archetype_RichCompare ( Crossfire_Archetype left,
Crossfire_Archetype right,
int  op 
)
static

Definition at line 75 of file cfpython_archetype.c.

References Crossfire_Archetype_InternalCompare(), and Crossfire_ArchetypeType.

Here is the call graph for this function:

PyObject* Crossfire_Archetype_wrap ( archetype what)

Variable Documentation

PyGetSetDef Archetype_getseters[]
static
Initial value:
= {
{ "Name", (getter)Crossfire_Archetype_GetName, NULL, NULL, NULL },
{ "Next", (getter)Crossfire_Archetype_GetNext, NULL, NULL, NULL },
{ "More", (getter)Crossfire_Archetype_GetMore, NULL, NULL, NULL },
{ "Head", (getter)Crossfire_Archetype_GetHead, NULL, NULL, NULL },
{ "Clone", (getter)Crossfire_Archetype_GetClone, NULL, NULL, NULL },
{ NULL, NULL, NULL, NULL, NULL }
}
static PyObject * Crossfire_Archetype_GetClone(Crossfire_Archetype *who, void *closure)
static PyObject * Crossfire_Archetype_GetMore(Crossfire_Archetype *who, void *closure)
static PyObject * Crossfire_Archetype_GetName(Crossfire_Archetype *whoptr, void *closure)
static PyObject * Crossfire_Archetype_GetNext(Crossfire_Archetype *who, void *closure)
static PyObject * Crossfire_Archetype_GetHead(Crossfire_Archetype *who, void *closure)

Definition at line 109 of file cfpython_archetype.c.

PyMethodDef ArchetypeMethods[]
static
Initial value:
= {
{ "NewObject", (PyCFunction)Crossfire_Archetype_GetNewObject, METH_NOARGS, NULL },
{ NULL, NULL, 0, NULL }
}
static PyObject * Crossfire_Archetype_GetNewObject(Crossfire_Archetype *who, PyObject *args)

Definition at line 118 of file cfpython_archetype.c.

PyTypeObject Crossfire_ArchetypeType