Crossfire Server, Branches 1.12  R18729
cfpython_region_private.h
Go to the documentation of this file.
1 static PyObject *Crossfire_Region_GetName(Crossfire_Region *whoptr, void *closure);
2 static PyObject *Crossfire_Region_GetLongname(Crossfire_Region *whoptr, void *closure);
3 static PyObject *Crossfire_Region_GetMessage(Crossfire_Region *whoptr, void *closure);
4 static PyObject *Crossfire_Region_GetNext(Crossfire_Region *who, void *closure);
5 static PyObject *Crossfire_Region_GetParent(Crossfire_Region *who, PyObject *args);
6 
8 
9 static PyGetSetDef Region_getseters[] = {
10  { "Name", (getter)Crossfire_Region_GetName, NULL, NULL, NULL },
11  { "Longname", (getter)Crossfire_Region_GetLongname, NULL, NULL, NULL },
12  { "Message", (getter)Crossfire_Region_GetMessage, NULL, NULL, NULL },
13  { "Next", (getter)Crossfire_Region_GetNext, NULL, NULL, NULL },
14  { NULL, NULL, NULL, NULL, NULL }
15 };
16 
17 static PyMethodDef RegionMethods[] = {
18  { "GetParent", (PyCFunction)Crossfire_Region_GetParent, METH_NOARGS, NULL },
19  { NULL, NULL, 0, NULL }
20 };
21 
22 /* Our actual Python ArchetypeType */
23 PyTypeObject Crossfire_RegionType = {
24  PyObject_HEAD_INIT(NULL)
25 #ifndef IS_PY3K
26  0, /* ob_size*/
27 #endif
28  "Crossfire.Party", /* tp_name*/
29  sizeof(Crossfire_Region), /* tp_basicsize*/
30  0, /* tp_itemsize*/
31  NULL, /* tp_dealloc*/
32  NULL, /* tp_print*/
33  NULL, /* tp_getattr*/
34  NULL, /* tp_setattr*/
35  (cmpfunc)Crossfire_Region_InternalCompare, /* tp_compare*/
36  NULL, /* tp_repr*/
37  NULL, /* tp_as_number*/
38  NULL, /* tp_as_sequence*/
39  NULL, /* tp_as_mapping*/
40  PyObject_HashNotImplemented, /* tp_hash */
41  NULL, /* tp_call*/
42  NULL, /* tp_str*/
43  PyObject_GenericGetAttr, /* tp_getattro*/
44  PyObject_GenericSetAttr, /* tp_setattro*/
45  NULL, /* tp_as_buffer*/
46  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags*/
47  "Crossfire regions", /* tp_doc */
48  NULL, /* tp_traverse */
49  NULL, /* tp_clear */
50  NULL, /* tp_richcompare */
51  0, /* tp_weaklistoffset */
52  NULL, /* tp_iter */
53  NULL, /* tp_iternext */
54  RegionMethods, /* tp_methods */
55  NULL, /* tp_members */
56  Region_getseters, /* tp_getset */
57  NULL, /* tp_base */
58  NULL, /* tp_dict */
59  NULL, /* tp_descr_get */
60  NULL, /* tp_descr_set */
61  0, /* tp_dictoffset */
62  NULL, /* tp_init */
63  NULL, /* tp_alloc */
64  NULL, /* tp_new */
65  NULL, /* tp_free */
66  NULL, /* tp_is_gc */
67  NULL, /* tp_bases */
68  NULL, /* tp_mro */
69  NULL, /* tp_cache */
70  NULL, /* tp_subclasses */
71  NULL, /* tp_weaklist */
72  NULL, /* tp_del */
73 };
static int Crossfire_Region_InternalCompare(Crossfire_Region *left, Crossfire_Region *right)
static PyObject * Crossfire_Region_GetParent(Crossfire_Region *who, PyObject *args)
static PyObject * Crossfire_Region_GetNext(Crossfire_Region *who, void *closure)
#define PyObject_HashNotImplemented
Definition: cfpython.h:73
static PyObject * Crossfire_Region_GetName(Crossfire_Region *whoptr, void *closure)
static PyObject * Crossfire_Region_GetLongname(Crossfire_Region *whoptr, void *closure)
static PyGetSetDef Region_getseters[]
static PyMethodDef RegionMethods[]
PyTypeObject Crossfire_RegionType
static PyObject * Crossfire_Region_GetMessage(Crossfire_Region *whoptr, void *closure)