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

Go to the source code of this file.

Functions

static PyObject * Crossfire_Party_GetName (Crossfire_Party *partyptr, void *closure)
 
static PyObject * Crossfire_Party_GetNext (Crossfire_Party *party, void *closure)
 
static PyObject * Crossfire_Party_GetPassword (Crossfire_Party *partyptr, void *closure)
 
static PyObject * Crossfire_Party_GetPlayers (Crossfire_Party *party, PyObject *args)
 
static int Crossfire_Party_InternalCompare (Crossfire_Party *left, Crossfire_Party *right)
 
static PyObject * Crossfire_Party_RichCompare (Crossfire_Party *left, Crossfire_Party *right, int op)
 
PyObject * Crossfire_Party_wrap (partylist *what)
 

Variables

PyTypeObject Crossfire_PartyType
 
static PyGetSetDef Party_getseters []
 
static PyMethodDef PartyMethods []
 

Function Documentation

static PyObject* Crossfire_Party_GetName ( Crossfire_Party partyptr,
void *  closure 
)
static

Definition at line 32 of file cfpython_party.c.

References cf_party_get_name(), and Crossfire_Party::party.

Here is the call graph for this function:

static PyObject* Crossfire_Party_GetNext ( Crossfire_Party party,
void *  closure 
)
static

Definition at line 40 of file cfpython_party.c.

References cf_party_get_next(), Crossfire_Party_wrap(), and Crossfire_Party::party.

Here is the call graph for this function:

static PyObject* Crossfire_Party_GetPassword ( Crossfire_Party partyptr,
void *  closure 
)
static

Definition at line 36 of file cfpython_party.c.

References cf_party_get_password(), and Crossfire_Party::party.

Here is the call graph for this function:

static PyObject* Crossfire_Party_GetPlayers ( Crossfire_Party party,
PyObject *  args 
)
static

Definition at line 44 of file cfpython_party.c.

References cf_party_get_first_player(), cf_party_get_next_player(), Crossfire_Object_wrap(), pl::ob, and Crossfire_Party::party.

Here is the call graph for this function:

static int Crossfire_Party_InternalCompare ( Crossfire_Party left,
Crossfire_Party right 
)
static

Definition at line 72 of file cfpython_party.c.

References Crossfire_Party::party.

Referenced by Crossfire_Party_RichCompare().

Here is the caller graph for this function:

static PyObject* Crossfire_Party_RichCompare ( Crossfire_Party left,
Crossfire_Party right,
int  op 
)
static

Definition at line 76 of file cfpython_party.c.

References Crossfire_Party_InternalCompare(), and Crossfire_PartyType.

Here is the call graph for this function:

PyObject* Crossfire_Party_wrap ( partylist what)

Definition at line 57 of file cfpython_party.c.

References Crossfire_PartyType, and Crossfire_Party::party.

Referenced by Crossfire_Party_GetNext(), getParties(), and Player_GetParty().

Here is the caller graph for this function:

Variable Documentation

PyTypeObject Crossfire_PartyType
PyGetSetDef Party_getseters[]
static
Initial value:
= {
{ "Name", (getter)Crossfire_Party_GetName, NULL, NULL, NULL },
{ "Password", (getter)Crossfire_Party_GetPassword, NULL, NULL, NULL },
{ "Next", (getter)Crossfire_Party_GetNext, NULL, NULL, NULL },
{ NULL, NULL, NULL, NULL, NULL }
}
static PyObject * Crossfire_Party_GetNext(Crossfire_Party *party, void *closure)
static PyObject * Crossfire_Party_GetPassword(Crossfire_Party *partyptr, void *closure)
static PyObject * Crossfire_Party_GetName(Crossfire_Party *partyptr, void *closure)

Definition at line 110 of file cfpython_party.c.

PyMethodDef PartyMethods[]
static
Initial value:
= {
{ "GetPlayers", (PyCFunction)Crossfire_Party_GetPlayers, METH_NOARGS, NULL },
{ NULL, NULL, 0, NULL }
}
static PyObject * Crossfire_Party_GetPlayers(Crossfire_Party *party, PyObject *args)

Definition at line 117 of file cfpython_party.c.