Crossfire Server, Trunk
cfpython_region.c File Reference
#include <cfpython.h>
+ Include dependency graph for cfpython_region.c:

Go to the source code of this file.

Functions

 CF_PYTHON_OBJECT (Region, NULL, NULL, PyObject_HashNotImplemented, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, "Crossfire regions",(richcmpfunc) Crossfire_Region_RichCompare, RegionMethods, Region_getseters, NULL, NULL)
 
static PyObject * Crossfire_Region_GetJailPath (Crossfire_Region *regionptr, void *closure)
 
static PyObject * Crossfire_Region_GetJailX (Crossfire_Region *regionptr, void *closure)
 
static PyObject * Crossfire_Region_GetJailY (Crossfire_Region *regionptr, void *closure)
 
static PyObject * Crossfire_Region_GetLongname (Crossfire_Region *regionptr, void *closure)
 
static PyObject * Crossfire_Region_GetMessage (Crossfire_Region *regionptr, void *closure)
 
static PyObject * Crossfire_Region_GetName (Crossfire_Region *regionptr, void *closure)
 
static PyObject * Crossfire_Region_GetNext (Crossfire_Region *party, void *closure)
 
static PyObject * Crossfire_Region_GetParent (Crossfire_Region *party, PyObject *args)
 
static int Crossfire_Region_InternalCompare (Crossfire_Region *left, Crossfire_Region *right)
 
static PyObject * Crossfire_Region_RichCompare (Crossfire_Region *left, Crossfire_Region *right, int op)
 
PyObject * Crossfire_Region_wrap (region *what)
 

Variables

static PyGetSetDef Region_getseters []
 
static PyMethodDef RegionMethods []
 

Function Documentation

◆ CF_PYTHON_OBJECT()

CF_PYTHON_OBJECT ( Region  ,
NULL  ,
NULL  ,
PyObject_HashNotImplemented  ,
Py_TPFLAGS_DEFAULT|  Py_TPFLAGS_BASETYPE,
"Crossfire regions ,
(richcmpfunc)  Crossfire_Region_RichCompare,
RegionMethods  ,
Region_getseters  ,
NULL  ,
NULL   
)

◆ Crossfire_Region_GetJailPath()

static PyObject* Crossfire_Region_GetJailPath ( Crossfire_Region regionptr,
void *  closure 
)
static

Definition at line 67 of file cfpython_region.c.

References cf_region_get_jail_path(), Crossfire_Region::reg, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Crossfire_Region_GetJailX()

static PyObject* Crossfire_Region_GetJailX ( Crossfire_Region regionptr,
void *  closure 
)
static

Definition at line 57 of file cfpython_region.c.

References cf_region_get_jail_x(), Crossfire_Region::reg, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Crossfire_Region_GetJailY()

static PyObject* Crossfire_Region_GetJailY ( Crossfire_Region regionptr,
void *  closure 
)
static

Definition at line 62 of file cfpython_region.c.

References cf_region_get_jail_y(), Crossfire_Region::reg, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Crossfire_Region_GetLongname()

static PyObject* Crossfire_Region_GetLongname ( Crossfire_Region regionptr,
void *  closure 
)
static

Definition at line 37 of file cfpython_region.c.

References cf_region_get_longname(), Crossfire_Region::reg, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Crossfire_Region_GetMessage()

static PyObject* Crossfire_Region_GetMessage ( Crossfire_Region regionptr,
void *  closure 
)
static

Definition at line 42 of file cfpython_region.c.

References cf_region_get_message(), Crossfire_Region::reg, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Crossfire_Region_GetName()

static PyObject* Crossfire_Region_GetName ( Crossfire_Region regionptr,
void *  closure 
)
static

Definition at line 32 of file cfpython_region.c.

References cf_region_get_name(), Crossfire_Region::reg, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Crossfire_Region_GetNext()

static PyObject* Crossfire_Region_GetNext ( Crossfire_Region party,
void *  closure 
)
static

Definition at line 47 of file cfpython_region.c.

References cf_region_get_next(), Crossfire_Region_wrap(), Crossfire_Region::reg, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Crossfire_Region_GetParent()

static PyObject* Crossfire_Region_GetParent ( Crossfire_Region party,
PyObject *  args 
)
static

Definition at line 52 of file cfpython_region.c.

References make_face_from_files::args, cf_region_get_parent(), Crossfire_Region_wrap(), Crossfire_Region::reg, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Crossfire_Region_InternalCompare()

static int Crossfire_Region_InternalCompare ( Crossfire_Region left,
Crossfire_Region right 
)
static

Definition at line 87 of file cfpython_region.c.

References Crossfire_Region::reg.

Referenced by Crossfire_Region_RichCompare().

+ Here is the caller graph for this function:

◆ Crossfire_Region_RichCompare()

static PyObject* Crossfire_Region_RichCompare ( Crossfire_Region left,
Crossfire_Region right,
int  op 
)
static

Definition at line 91 of file cfpython_region.c.

References Crossfire_Region_InternalCompare(), Crossfire_RegionType, give::op, and rotate-tower::result.

+ Here is the call graph for this function:

◆ Crossfire_Region_wrap()

PyObject* Crossfire_Region_wrap ( region what)

Definition at line 72 of file cfpython_region.c.

References Crossfire_RegionType, and Crossfire_Region::reg.

Referenced by Crossfire_Region_GetNext(), Crossfire_Region_GetParent(), getRegions(), and Map_GetRegion().

+ Here is the caller graph for this function:

Variable Documentation

◆ Region_getseters

PyGetSetDef Region_getseters[]
static
Initial value:
= {
{ "Name", (getter)Crossfire_Region_GetName, NULL, NULL, NULL },
{ "Longname", (getter)Crossfire_Region_GetLongname, NULL, NULL, NULL },
{ "Message", (getter)Crossfire_Region_GetMessage, NULL, NULL, NULL },
{ "Next", (getter)Crossfire_Region_GetNext, NULL, NULL, NULL },
{ "JailX", (getter)Crossfire_Region_GetJailX, NULL, NULL, NULL },
{ "JailY", (getter)Crossfire_Region_GetJailY, NULL, NULL, NULL },
{ "JailPath", (getter)Crossfire_Region_GetJailPath, NULL, NULL, NULL },
{ NULL, NULL, NULL, NULL, NULL }
}

Definition at line 125 of file cfpython_region.c.

◆ RegionMethods

PyMethodDef RegionMethods[]
static
Initial value:
= {
{ "GetParent", (PyCFunction)Crossfire_Region_GetParent, METH_NOARGS, NULL },
{ NULL, NULL, 0, NULL }
}

Definition at line 136 of file cfpython_region.c.

Crossfire_Region_GetJailY
static PyObject * Crossfire_Region_GetJailY(Crossfire_Region *regionptr, void *closure)
Definition: cfpython_region.c:62
Crossfire_Region_GetJailPath
static PyObject * Crossfire_Region_GetJailPath(Crossfire_Region *regionptr, void *closure)
Definition: cfpython_region.c:67
Crossfire_Region_GetName
static PyObject * Crossfire_Region_GetName(Crossfire_Region *regionptr, void *closure)
Definition: cfpython_region.c:32
Crossfire_Region_GetNext
static PyObject * Crossfire_Region_GetNext(Crossfire_Region *party, void *closure)
Definition: cfpython_region.c:47
Crossfire_Region_GetParent
static PyObject * Crossfire_Region_GetParent(Crossfire_Region *party, PyObject *args)
Definition: cfpython_region.c:52
Crossfire_Region_GetMessage
static PyObject * Crossfire_Region_GetMessage(Crossfire_Region *regionptr, void *closure)
Definition: cfpython_region.c:42
Crossfire_Region_GetLongname
static PyObject * Crossfire_Region_GetLongname(Crossfire_Region *regionptr, void *closure)
Definition: cfpython_region.c:37
Crossfire_Region_GetJailX
static PyObject * Crossfire_Region_GetJailX(Crossfire_Region *regionptr, void *closure)
Definition: cfpython_region.c:57