 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
72 wrapper->
party = what;
73 return (PyObject *)wrapper;
86 Py_INCREF(Py_NotImplemented);
87 return Py_NotImplemented;
93 result = (result == 0);
96 result = (result != 0);
99 result = (result <= 0);
102 result = (result >= 0);
105 result = (result == -1);
108 result = (result == 1);
111 return PyBool_FromLong(result);
118 { NULL, NULL, NULL, NULL, NULL }
123 { NULL, NULL, 0, NULL }
130 PyObject_HashNotImplemented,
131 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
const char * cf_party_get_name(partylist *party)
PyObject_HEAD partylist * party
object * ob
The object representing the player.
player * cf_party_get_first_player(partylist *party)
Get first player in party.
PyObject * Crossfire_Party_wrap(partylist *what)
static PyObject * Crossfire_Party_GetPassword(Crossfire_Party *partyptr, void *closure)
partylist * cf_party_get_next(partylist *party)
Get next party in party list.
static PyObject * Crossfire_Party_GetPlayers(Crossfire_Party *party, PyObject *args)
PyObject * Crossfire_Object_wrap(object *what)
Python initialized.
static PyObject * Crossfire_Party_GetName(Crossfire_Party *partyptr, void *closure)
static int Crossfire_Party_InternalCompare(Crossfire_Party *left, Crossfire_Party *right)
CF_PYTHON_OBJECT(Party, NULL, NULL, PyObject_HashNotImplemented, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, "Crossfire parties",(richcmpfunc) Crossfire_Party_RichCompare, PartyMethods, Party_getseters, NULL, NULL)
static PyGetSetDef Party_getseters[]
static PyObject * Crossfire_Party_RichCompare(Crossfire_Party *left, Crossfire_Party *right, int op)
PyTypeObject Crossfire_PartyType
const char * cf_party_get_password(partylist *party)
Get party's password.
player * cf_party_get_next_player(partylist *party, player *op)
Get next player in party.
How to Install a Crossfire Server on you must install a python script engine on your computer Python is the default script engine of Crossfire You can find the python engine you have only to install them The VisualC Crossfire settings are for but you habe then to change the pathes in the VC settings Go in Settings C and Settings Link and change the optional include and libs path to the new python installation path o except the maps ! You must download a map package and install them the share folder Its must look like doubleclick on crossfire32 dsw There are projects in your libcross lib and plugin_python You need to compile all Easiest way is to select the plugin_python ReleaseLog as active this will compile all others too Then in Visual C press< F7 > to compile If you don t have an appropriate compiler you can try to get the the VC copies the crossfire32 exe in the crossfire folder and the plugin_python dll in the crossfire share plugins folder we will remove it when we get time for it o Last showing lots of weird write to the Crossfire mailing list
static PyObject * Crossfire_Party_GetNext(Crossfire_Party *party, void *closure)
static PyMethodDef PartyMethods[]