 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
74 return (PyObject *)wrapper;
78 return (left->
arch < right->
arch ? -1 : (left->
arch == right->
arch ? 0 : 1));
87 Py_INCREF(Py_NotImplemented);
88 return Py_NotImplemented;
94 result = (result == 0);
97 result = (result != 0);
100 result = (result <= 0);
103 result = (result >= 0);
106 result = (result == -1);
109 result = (result == 1);
112 return PyBool_FromLong(result);
121 { NULL, NULL, NULL, NULL, NULL }
126 { NULL, NULL, 0, NULL }
133 PyObject_HashNotImplemented,
134 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
135 "Crossfire archetypes",
sstring cf_archetype_get_name(archetype *arch)
Get archetype's name.
object * cf_create_object_by_name(const char *name)
Wrapper for create_archetype() and create_archetype_by_object_name().
static PyObject * Crossfire_Archetype_GetName(Crossfire_Archetype *whoptr, void *closure)
static PyObject * Crossfire_Archetype_GetClone(Crossfire_Archetype *who, void *closure)
CF_PYTHON_OBJECT(Archetype, NULL, NULL, PyObject_HashNotImplemented, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, "Crossfire archetypes",(richcmpfunc) Crossfire_Archetype_RichCompare, ArchetypeMethods, Archetype_getseters, NULL, NULL)
static PyObject * Crossfire_Archetype_RichCompare(Crossfire_Archetype *left, Crossfire_Archetype *right, int op)
object * cf_archetype_get_clone(archetype *arch)
Get clone of archetype.
PyObject * Crossfire_Object_wrap(object *what)
Python initialized.
archetype * cf_archetype_get_more(archetype *arch)
Get next part of archetype.
PyObject_HEAD archetype * arch
static PyObject * Crossfire_Archetype_GetNewObject(Crossfire_Archetype *who, PyObject *args)
static PyObject * Crossfire_Archetype_GetHead(Crossfire_Archetype *who, void *closure)
static PyObject * Crossfire_Archetype_GetMore(Crossfire_Archetype *who, void *closure)
PyObject * Crossfire_Archetype_wrap(archetype *what)
The archetype structure is a set of rules on how to generate and manipulate objects which point to ar...
archetype * cf_archetype_get_next(archetype *arch)
Get next archetype in linked list.
static PyObject * Crossfire_Archetype_GetNext(Crossfire_Archetype *who, void *closure)
static PyGetSetDef Archetype_getseters[]
PyTypeObject Crossfire_ArchetypeType
static int Crossfire_Archetype_InternalCompare(Crossfire_Archetype *left, Crossfire_Archetype *right)
static PyMethodDef ArchetypeMethods[]
archetype * cf_archetype_get_head(archetype *arch)
Get head of archetype.