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

Go to the source code of this file.

Macros

#define EXISTCHECK(ob)
 
#define EXISTCHECK_INT(ob)
 
#define TYPEEXISTCHECK(ob)
 

Functions

static void add_object_assoc (object *key, PyObject *value)
 
 CF_PYTHON_NUMBER_METHODS (Object, Crossfire_Object_Long)
 
 CF_PYTHON_OBJECT (Object, Crossfire_Object_dealloc, &ObjectConvert, PyObject_HashNotImplemented, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, "Crossfire objects",(richcmpfunc) Crossfire_Object_RichCompare, ObjectMethods, Object_getseters, NULL, Crossfire_Object_new)
 
 CF_PYTHON_OBJECT (Player, Crossfire_Player_dealloc, NULL, NULL, Py_TPFLAGS_DEFAULT, "Crossfire player", NULL, PlayerMethods, Player_getseters, &Crossfire_ObjectType, Crossfire_Player_new)
 
static PyObject * Crossfire_Object_ActivateRune (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_AddExp (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Apply (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Arrest (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Cast (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_CastAbility (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_ChangeAbil (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_CheckArchInventory (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_CheckInventory (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_CheckTrigger (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Clone (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_CreateInside (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_CreateTimer (Crossfire_Object *who, PyObject *args)
 
static void Crossfire_Object_dealloc (PyObject *obj)
 
static PyObject * Crossfire_Object_Drop (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Event (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Fix (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_ForgetSpell (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_GetOutOfMap (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_GetResist (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_InsertInto (Crossfire_Object *who, PyObject *args)
 
static int Crossfire_Object_InternalCompare (Crossfire_Object *left, Crossfire_Object *right)
 
static PyObject * Crossfire_Object_KnowSpell (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_LearnSpell (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Long (PyObject *obj)
 
static PyObject * Crossfire_Object_Move (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_MoveTo (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_new (PyTypeObject *type, PyObject *args, PyObject *kwds)
 
static PyObject * Crossfire_Object_Pay (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_PayAmount (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_PermExp (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_QueryName (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_ReadKey (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Remove (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_RemoveDepletion (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Reposition (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_RichCompare (Crossfire_Object *left, Crossfire_Object *right, int op)
 
static PyObject * Crossfire_Object_Say (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_SetResist (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Split (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Take (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Object_Teleport (Crossfire_Object *who, PyObject *args)
 
PyObject * Crossfire_Object_wrap (object *what)
 
static PyObject * Crossfire_Object_WriteKey (Crossfire_Object *who, PyObject *args)
 
static PyObject * Crossfire_Player_CanPay (Crossfire_Player *who, PyObject *args)
 
static void Crossfire_Player_dealloc (PyObject *obj)
 
static PyObject * Crossfire_Player_Message (Crossfire_Player *who, PyObject *args)
 
static PyObject * Crossfire_Player_new (PyTypeObject *type, PyObject *args, PyObject *kwds)
 
static PyObject * find_assoc_pyobject (object *key)
 
static void free_object_assoc (object *key)
 
void init_object_assoc_table (void)
 
static PyObject * Object_GetArchetype (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetExists (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetExp (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetExpMul (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetFlagProperty (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetFloatProperty (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetIntProperty (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetMap (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetMaterial (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetMoney (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetMoveAllow (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetMoveBlock (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetMoveOff (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetMoveOn (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetMoveSlow (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetMoveType (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetName (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetNamePl (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetObjectProperty (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetOtherArchetype (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetPickable (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetSStringProperty (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetTotalExp (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Object_GetValue (Crossfire_Object *whoptr, void *closure)
 
static int Object_SetAnim (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetEnemy (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetExp (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetFace (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetFlagProperty (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetFloatProperty (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetIntProperty (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetMap (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetMoveAllow (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetMoveBlock (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetMoveOff (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetMoveOn (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetMoveSlow (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetMoveType (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetName (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetNamePl (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetOwner (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetPickable (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetQuantity (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetStringProperty (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static int Object_SetValue (Crossfire_Object *whoptr, PyObject *value, void *closure)
 
static PyObject * Player_GetBedMap (Crossfire_Player *whoptr, void *closure)
 
static PyObject * Player_GetBedX (Crossfire_Player *whoptr, void *closure)
 
static PyObject * Player_GetBedY (Crossfire_Player *whoptr, void *closure)
 
static PyObject * Player_GetIP (Crossfire_Player *whoptr, void *closure)
 
static PyObject * Player_GetMarkedItem (Crossfire_Player *whoptr, void *closure)
 
static PyObject * Player_GetObjectProperty (Crossfire_Player *whoptr, void *closure)
 
static PyObject * Player_GetParty (Crossfire_Player *whoptr, void *closure)
 
static PyObject * Player_GetTitle (Crossfire_Object *whoptr, void *closure)
 
static PyObject * Player_GiveKnowledge (Crossfire_Player *who, PyObject *args)
 
static PyObject * Player_KnowledgeKnown (Crossfire_Player *who, PyObject *args)
 
static PyObject * Player_QuestGetState (Crossfire_Player *whoptr, PyObject *args)
 
static PyObject * Player_QuestSetState (Crossfire_Player *whoptr, PyObject *args)
 
static PyObject * Player_QuestStart (Crossfire_Player *whoptr, PyObject *args)
 
static PyObject * Player_QuestWasCompleted (Crossfire_Player *whoptr, PyObject *args)
 
static int Player_SetBedMap (Crossfire_Player *whoptr, PyObject *value, void *closure)
 
static int Player_SetBedX (Crossfire_Player *whoptr, PyObject *value, void *closure)
 
static int Player_SetBedY (Crossfire_Player *whoptr, PyObject *value, void *closure)
 
static int Player_SetMarkedItem (Crossfire_Player *whoptr, PyObject *value, void *closure)
 
static int Player_SetParty (Crossfire_Player *whoptr, PyObject *value, void *closure)
 
static int Player_SetTitle (Crossfire_Object *whoptr, PyObject *value, void *closure)
 

Variables

static ptr_assoc_table object_assoc_table
 
static PyGetSetDef Object_getseters []
 
static PyMethodDef ObjectMethods []
 
static PyGetSetDef Player_getseters []
 
static PyMethodDef PlayerMethods []
 

Macro Definition Documentation

◆ EXISTCHECK

#define EXISTCHECK (   ob)
Value:
{ \
if (!ob || !ob->obj || (object_was_destroyed(ob->obj, ob->obj->count))) { \
PyErr_SetString(PyExc_ReferenceError, "Crossfire object no longer exists"); \
return NULL; \
} }

Definition at line 33 of file cfpython_object.c.

◆ EXISTCHECK_INT

#define EXISTCHECK_INT (   ob)
Value:
{ \
if (!ob || !ob->obj || (object_was_destroyed(ob->obj, ob->obj->count))) { \
PyErr_SetString(PyExc_ReferenceError, "Crossfire object no longer exists"); \
return -1; \
} }

Definition at line 50 of file cfpython_object.c.

◆ TYPEEXISTCHECK

#define TYPEEXISTCHECK (   ob)
Value:
{ \
if (!ob || !PyObject_TypeCheck((PyObject*)ob, &Crossfire_ObjectType) || !ob->obj || (object_was_destroyed(ob->obj, ob->obj->count))) { \
PyErr_SetString(PyExc_ReferenceError, "Not a Crossfire object or Crossfire object no longer exists"); \
return NULL; \
} }

This is meant to be used for parameters where you don't know if the type of the object is correct. It should NOT be used for the self pointer, since that will always be a compatible type.

Definition at line 44 of file cfpython_object.c.

Function Documentation

◆ add_object_assoc()

static void add_object_assoc ( object key,
PyObject *  value 
)
static

Definition at line 64 of file cfpython_object.c.

References add_ptr_assoc(), castle_read::key, object_assoc_table, and autojail::value.

Referenced by Crossfire_Object_wrap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CF_PYTHON_NUMBER_METHODS()

CF_PYTHON_NUMBER_METHODS ( Object  ,
Crossfire_Object_Long   
)

◆ CF_PYTHON_OBJECT() [1/2]

CF_PYTHON_OBJECT ( Object  ,
Crossfire_Object_dealloc  ,
ObjectConvert,
PyObject_HashNotImplemented  ,
Py_TPFLAGS_DEFAULT|  Py_TPFLAGS_BASETYPE,
"Crossfire objects ,
(richcmpfunc)  Crossfire_Object_RichCompare,
ObjectMethods  ,
Object_getseters  ,
NULL  ,
Crossfire_Object_new   
)

◆ CF_PYTHON_OBJECT() [2/2]

CF_PYTHON_OBJECT ( Player  ,
Crossfire_Player_dealloc  ,
NULL  ,
NULL  ,
Py_TPFLAGS_DEFAULT  ,
"Crossfire player ,
NULL  ,
PlayerMethods  ,
Player_getseters  ,
Crossfire_ObjectType,
Crossfire_Player_new   
)

◆ Crossfire_Object_ActivateRune()

static PyObject* Crossfire_Object_ActivateRune ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 863 of file cfpython_object.c.

References make_face_from_files::args, cf_spring_trap(), EXISTCHECK, Crossfire_Object::obj, TYPEEXISTCHECK, reputation::victim, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_AddExp()

static PyObject* Crossfire_Object_AddExp ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1192 of file cfpython_object.c.

References make_face_from_files::args, cf_object_change_exp(), EXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_Apply()

static PyObject* Crossfire_Object_Apply ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 761 of file cfpython_object.c.

References make_face_from_files::args, cf_object_apply(), Crossfire_ObjectType, EXISTCHECK, flags, Crossfire_Object::obj, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_Arrest()

static PyObject* Crossfire_Object_Arrest ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1259 of file cfpython_object.c.

References make_face_from_files::args, cf_player_arrest(), EXISTCHECK, nlohmann::detail::void(), and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_Cast()

static PyObject* Crossfire_Object_Cast ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 970 of file cfpython_object.c.

References make_face_from_files::args, cf_object_cast_spell(), Crossfire_ObjectType, EXISTCHECK, Crossfire_Object::obj, give::op, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_CastAbility()

static PyObject* Crossfire_Object_CastAbility ( Crossfire_Object who,
PyObject *  args 
)
static

◆ Crossfire_Object_ChangeAbil()

static PyObject* Crossfire_Object_ChangeAbil ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1182 of file cfpython_object.c.

References make_face_from_files::args, cf_object_change_abil(), EXISTCHECK, give::op, TYPEEXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_CheckArchInventory()

static PyObject* Crossfire_Object_CheckArchInventory ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1126 of file cfpython_object.c.

References make_face_from_files::args, cf_object_find_by_arch_name(), Crossfire_Object_wrap(), EXISTCHECK, Ice::tmp, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_CheckInventory()

static PyObject* Crossfire_Object_CheckInventory ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1103 of file cfpython_object.c.

References make_face_from_files::args, cf_object_present_archname_inside(), Crossfire_Object_wrap(), EXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_CheckTrigger()

static PyObject* Crossfire_Object_CheckTrigger ( Crossfire_Object who,
PyObject *  args 
)
static

◆ Crossfire_Object_Clone()

static PyObject* Crossfire_Object_Clone ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 785 of file cfpython_object.c.

References make_face_from_files::args, cf_object_clone(), Crossfire_Object_wrap(), and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_CreateInside()

static PyObject* Crossfire_Object_CreateInside ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1148 of file cfpython_object.c.

References make_face_from_files::args, cf_create_object_by_name(), cf_object_insert_object(), Crossfire_Object_wrap(), EXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_CreateTimer()

static PyObject* Crossfire_Object_CreateTimer ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1092 of file cfpython_object.c.

References make_face_from_files::args, cf_timer_create(), EXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_dealloc()

static void Crossfire_Object_dealloc ( PyObject *  obj)
static

Definition at line 1508 of file cfpython_object.c.

References free_object_assoc().

+ Here is the call graph for this function:

◆ Crossfire_Object_Drop()

static PyObject* Crossfire_Object_Drop ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 773 of file cfpython_object.c.

References make_face_from_files::args, cf_object_drop(), EXISTCHECK, Crossfire_Object::obj, TYPEEXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_Event()

static PyObject* Crossfire_Object_Event ( Crossfire_Object who,
PyObject *  args 
)
static

◆ Crossfire_Object_Fix()

static PyObject* Crossfire_Object_Fix ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 830 of file cfpython_object.c.

References make_face_from_files::args, cf_fix_object(), nlohmann::detail::void(), and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_ForgetSpell()

static PyObject* Crossfire_Object_ForgetSpell ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 999 of file cfpython_object.c.

References make_face_from_files::args, cf_object_forget_spell(), EXISTCHECK, Crossfire_Object::obj, TYPEEXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_GetOutOfMap()

static PyObject* Crossfire_Object_GetOutOfMap ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1138 of file cfpython_object.c.

References make_face_from_files::args, cf_object_out_of_map(), EXISTCHECK, autojail::who, diamondslots::x, and diamondslots::y.

+ Here is the call graph for this function:

◆ Crossfire_Object_GetResist()

static PyObject* Crossfire_Object_GetResist ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 946 of file cfpython_object.c.

References make_face_from_files::args, cf_object_get_resistance(), EXISTCHECK, NROFATTACKS, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_InsertInto()

static PyObject* Crossfire_Object_InsertInto ( Crossfire_Object who,
PyObject *  args 
)
static

◆ Crossfire_Object_InternalCompare()

static int Crossfire_Object_InternalCompare ( Crossfire_Object left,
Crossfire_Object right 
)
static

Definition at line 1265 of file cfpython_object.c.

References EXISTCHECK_INT, and Crossfire_Object::obj.

Referenced by Crossfire_Object_RichCompare().

+ Here is the caller graph for this function:

◆ Crossfire_Object_KnowSpell()

static PyObject* Crossfire_Object_KnowSpell ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1011 of file cfpython_object.c.

References make_face_from_files::args, cf_object_check_for_spell(), Crossfire_Object_wrap(), EXISTCHECK, give::op, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_LearnSpell()

static PyObject* Crossfire_Object_LearnSpell ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 986 of file cfpython_object.c.

References make_face_from_files::args, cf_object_learn_spell(), EXISTCHECK, Crossfire_Object::obj, TYPEEXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_Long()

static PyObject* Crossfire_Object_Long ( PyObject *  obj)
static

Definition at line 1309 of file cfpython_object.c.

◆ Crossfire_Object_Move()

static PyObject* Crossfire_Object_Move ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1211 of file cfpython_object.c.

References make_face_from_files::args, cf_object_move(), EXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_MoveTo()

static PyObject* Crossfire_Object_MoveTo ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1220 of file cfpython_object.c.

References make_face_from_files::args, cf_object_move_to(), EXISTCHECK, autojail::who, diamondslots::x, and diamondslots::y.

+ Here is the call graph for this function:

◆ Crossfire_Object_new()

static PyObject* Crossfire_Object_new ( PyTypeObject *  type,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 1494 of file cfpython_object.c.

References make_face_from_files::args, is_valid_types_gen::type, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Crossfire_Object_Pay()

static PyObject* Crossfire_Object_Pay ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1054 of file cfpython_object.c.

References make_face_from_files::args, cf_object_pay_item(), EXISTCHECK, give::op, TYPEEXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_PayAmount()

static PyObject* Crossfire_Object_PayAmount ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1041 of file cfpython_object.c.

References make_face_from_files::args, cf_object_pay_amount(), EXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_PermExp()

static PyObject* Crossfire_Object_PermExp ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1205 of file cfpython_object.c.

References make_face_from_files::args, cf_object_perm_exp(), EXISTCHECK, nlohmann::detail::void(), and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_QueryName()

static PyObject* Crossfire_Object_QueryName ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 938 of file cfpython_object.c.

References make_face_from_files::args, cf_query_name(), EXISTCHECK, give::name, nlohmann::detail::void(), and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_ReadKey()

static PyObject* Crossfire_Object_ReadKey ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1067 of file cfpython_object.c.

References make_face_from_files::args, cf_object_get_key(), EXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_Remove()

static PyObject* Crossfire_Object_Remove ( Crossfire_Object who,
PyObject *  args 
)
static

◆ Crossfire_Object_RemoveDepletion()

static PyObject* Crossfire_Object_RemoveDepletion ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1249 of file cfpython_object.c.

References make_face_from_files::args, cf_object_remove_depletion(), EXISTCHECK, level, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_Reposition()

static PyObject* Crossfire_Object_Reposition ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 926 of file cfpython_object.c.

References make_face_from_files::args, cf_object_transfer(), EXISTCHECK, autojail::who, diamondslots::x, and diamondslots::y.

+ Here is the call graph for this function:

◆ Crossfire_Object_RichCompare()

static PyObject* Crossfire_Object_RichCompare ( Crossfire_Object left,
Crossfire_Object right,
int  op 
)
static

Definition at line 1271 of file cfpython_object.c.

References Crossfire_Object_InternalCompare(), Crossfire_ObjectType, and give::op.

+ Here is the call graph for this function:

◆ Crossfire_Object_Say()

static PyObject* Crossfire_Object_Say ( Crossfire_Object who,
PyObject *  args 
)
static
Todo:
fix by wrapping monster_format_say() (or the whole talk structure methods)

Definition at line 894 of file cfpython_object.c.

References make_face_from_files::args, buf, cf_add_string(), cf_log(), cf_object_say(), current_context, EXISTCHECK, llevError, MAX_NPC, diamondslots::message, talk_info::npc_msg_count, talk_info::npc_msgs, _cfpcontext::talk, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_SetResist()

static PyObject* Crossfire_Object_SetResist ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 958 of file cfpython_object.c.

References make_face_from_files::args, cf_object_set_resistance(), EXISTCHECK, NROFATTACKS, autojail::value, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_Split()

static PyObject* Crossfire_Object_Split ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 809 of file cfpython_object.c.

References make_face_from_files::args, cf_object_split(), disinfect::count, Crossfire_Object_wrap(), inja::string_view::split(), and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_Take()

static PyObject* Crossfire_Object_Take ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 837 of file cfpython_object.c.

References make_face_from_files::args, cf_object_pickup(), EXISTCHECK, Crossfire_Object::obj, TYPEEXISTCHECK, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Object_Teleport()

static PyObject* Crossfire_Object_Teleport ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 849 of file cfpython_object.c.

References make_face_from_files::args, cf_object_teleport(), Crossfire_MapType, EXISTCHECK, python_pickup::where, autojail::who, diamondslots::x, and diamondslots::y.

+ Here is the call graph for this function:

◆ Crossfire_Object_wrap()

◆ Crossfire_Object_WriteKey()

static PyObject* Crossfire_Object_WriteKey ( Crossfire_Object who,
PyObject *  args 
)
static

Definition at line 1080 of file cfpython_object.c.

References make_face_from_files::args, cf_object_set_key(), EXISTCHECK, autojail::value, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Player_CanPay()

static PyObject* Crossfire_Player_CanPay ( Crossfire_Player who,
PyObject *  args 
)
static

Definition at line 182 of file cfpython_object.c.

References make_face_from_files::args, cf_player_can_pay(), EXISTCHECK, nlohmann::detail::void(), and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Player_dealloc()

static void Crossfire_Player_dealloc ( PyObject *  obj)
static

Definition at line 1534 of file cfpython_object.c.

References free_object_assoc().

+ Here is the call graph for this function:

◆ Crossfire_Player_Message()

static PyObject* Crossfire_Player_Message ( Crossfire_Player who,
PyObject *  args 
)
static

Definition at line 129 of file cfpython_object.c.

References make_face_from_files::args, cf_player_message(), smoking_pipe::color, EXISTCHECK, diamondslots::message, NDI_ORANGE, NDI_UNIQUE, and autojail::who.

+ Here is the call graph for this function:

◆ Crossfire_Player_new()

static PyObject* Crossfire_Player_new ( PyTypeObject *  type,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 1520 of file cfpython_object.c.

References make_face_from_files::args, is_valid_types_gen::type, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ find_assoc_pyobject()

static PyObject* find_assoc_pyobject ( object key)
static

Definition at line 68 of file cfpython_object.c.

References find_assoc_value(), castle_read::key, and object_assoc_table.

Referenced by Crossfire_Object_wrap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_object_assoc()

static void free_object_assoc ( object key)
static

Definition at line 72 of file cfpython_object.c.

References free_ptr_assoc(), castle_read::key, and object_assoc_table.

Referenced by Crossfire_Object_dealloc(), and Crossfire_Player_dealloc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init_object_assoc_table()

void init_object_assoc_table ( void  )

Definition at line 60 of file cfpython_object.c.

References init_ptr_assoc_table(), and object_assoc_table.

Referenced by initPlugin().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Object_GetArchetype()

static PyObject* Object_GetArchetype ( Crossfire_Object whoptr,
void *  closure 
)
static

◆ Object_GetExists()

static PyObject* Object_GetExists ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 412 of file cfpython_object.c.

References obj::count, Crossfire_Object::obj, object_was_destroyed, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetExp()

static PyObject* Object_GetExp ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 364 of file cfpython_object.c.

References cf_object_get_int64_property(), CFAPI_OBJECT_PROP_EXP, EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetExpMul()

static PyObject* Object_GetExpMul ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 376 of file cfpython_object.c.

References cf_object_get_double_property(), CFAPI_OBJECT_PROP_EXP_MULTIPLIER, EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetFlagProperty()

static PyObject* Object_GetFlagProperty ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 326 of file cfpython_object.c.

References cf_object_get_flag(), EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetFloatProperty()

static PyObject* Object_GetFloatProperty ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 320 of file cfpython_object.c.

References cf_object_get_float_property(), EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetIntProperty()

static PyObject* Object_GetIntProperty ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 314 of file cfpython_object.c.

References cf_object_get_int_property(), EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetMap()

static PyObject* Object_GetMap ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 355 of file cfpython_object.c.

References cf_object_get_map_property(), CFAPI_OBJECT_PROP_MAP, Crossfire_Map_wrap(), EXISTCHECK, m, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetMaterial()

static PyObject* Object_GetMaterial ( Crossfire_Object whoptr,
void *  closure 
)
static

◆ Object_GetMoney()

static PyObject* Object_GetMoney ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 388 of file cfpython_object.c.

References cf_object_query_money(), EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetMoveAllow()

static PyObject* Object_GetMoveAllow ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 435 of file cfpython_object.c.

References cf_object_get_movetype_property(), CFAPI_OBJECT_PROP_MOVE_ALLOW, EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetMoveBlock()

static PyObject* Object_GetMoveBlock ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 429 of file cfpython_object.c.

References cf_object_get_movetype_property(), CFAPI_OBJECT_PROP_MOVE_BLOCK, EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetMoveOff()

static PyObject* Object_GetMoveOff ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 447 of file cfpython_object.c.

References cf_object_get_movetype_property(), CFAPI_OBJECT_PROP_MOVE_OFF, EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetMoveOn()

static PyObject* Object_GetMoveOn ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 441 of file cfpython_object.c.

References cf_object_get_movetype_property(), CFAPI_OBJECT_PROP_MOVE_ON, EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetMoveSlow()

static PyObject* Object_GetMoveSlow ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 453 of file cfpython_object.c.

References cf_object_get_movetype_property(), CFAPI_OBJECT_PROP_MOVE_SLOW, EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetMoveType()

static PyObject* Object_GetMoveType ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 423 of file cfpython_object.c.

References cf_object_get_movetype_property(), CFAPI_OBJECT_PROP_MOVE_TYPE, EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetName()

static PyObject* Object_GetName ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 341 of file cfpython_object.c.

References cf_query_name(), EXISTCHECK, give::name, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetNamePl()

static PyObject* Object_GetNamePl ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 349 of file cfpython_object.c.

References cf_query_name_pl(), EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetObjectProperty()

static PyObject* Object_GetObjectProperty ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 332 of file cfpython_object.c.

References cf_object_get_object_property(), Crossfire_Object_wrap(), EXISTCHECK, Crossfire_Object::obj, give::op, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetOtherArchetype()

static PyObject* Object_GetOtherArchetype ( Crossfire_Object whoptr,
void *  closure 
)
static

◆ Object_GetPickable()

static PyObject* Object_GetPickable ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 382 of file cfpython_object.c.

References cf_object_get_flag(), EXISTCHECK, FLAG_NO_PICK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetSStringProperty()

static PyObject* Object_GetSStringProperty ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 308 of file cfpython_object.c.

References cf_object_get_sstring_property(), EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetTotalExp()

static PyObject* Object_GetTotalExp ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 370 of file cfpython_object.c.

References cf_object_get_int64_property(), CFAPI_OBJECT_PROP_TOTAL_EXP, EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_GetValue()

static PyObject* Object_GetValue ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 394 of file cfpython_object.c.

References cf_object_get_long_property(), CFAPI_OBJECT_PROP_VALUE, EXISTCHECK, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_SetAnim()

static int Object_SetAnim ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 615 of file cfpython_object.c.

References animate::anim, cf_object_set_animation(), EXISTCHECK_INT, Crossfire_Object::obj, autojail::value, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_SetEnemy()

static int Object_SetEnemy ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Object_SetExp()

static int Object_SetExp ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 665 of file cfpython_object.c.

References cf_object_set_int64_property(), CFAPI_OBJECT_PROP_EXP, EXISTCHECK_INT, Crossfire_Object::obj, autojail::value, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_SetFace()

static int Object_SetFace ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 600 of file cfpython_object.c.

References cf_object_set_face(), EXISTCHECK_INT, Crossfire_Object::obj, autojail::value, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_SetFlagProperty()

static int Object_SetFlagProperty ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 507 of file cfpython_object.c.

References cf_object_set_flag(), EXISTCHECK_INT, Crossfire_Object::obj, and autojail::value.

+ Here is the call graph for this function:

◆ Object_SetFloatProperty()

static int Object_SetFloatProperty ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 496 of file cfpython_object.c.

References cf_object_set_float_property(), EXISTCHECK_INT, Crossfire_Object::obj, and autojail::value.

+ Here is the call graph for this function:

◆ Object_SetIntProperty()

static int Object_SetIntProperty ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 485 of file cfpython_object.c.

References cf_object_set_int_property(), EXISTCHECK_INT, Crossfire_Object::obj, and autojail::value.

+ Here is the call graph for this function:

◆ Object_SetMap()

static int Object_SetMap ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 571 of file cfpython_object.c.

References cf_object_change_map(), Crossfire_MapType, EXISTCHECK_INT, Crossfire_Map::map, Crossfire_Object::obj, autojail::value, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_SetMoveAllow()

static int Object_SetMoveAllow ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Object_SetMoveBlock()

static int Object_SetMoveBlock ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Object_SetMoveOff()

static int Object_SetMoveOff ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Object_SetMoveOn()

static int Object_SetMoveOn ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Object_SetMoveSlow()

static int Object_SetMoveSlow ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Object_SetMoveType()

static int Object_SetMoveType ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Object_SetName()

static int Object_SetName ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Object_SetNamePl()

static int Object_SetNamePl ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Object_SetOwner()

static int Object_SetOwner ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Object_SetPickable()

static int Object_SetPickable ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 559 of file cfpython_object.c.

References cf_object_set_flag(), EXISTCHECK_INT, FLAG_NO_PICK, Crossfire_Object::obj, autojail::value, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_SetQuantity()

static int Object_SetQuantity ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 583 of file cfpython_object.c.

References cf_object_set_nrof(), EXISTCHECK_INT, Crossfire_Object::obj, autojail::value, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Object_SetStringProperty()

static int Object_SetStringProperty ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Setters

Definition at line 466 of file cfpython_object.c.

References CF_IS_PYSTR, cf_object_set_string_property(), EXISTCHECK_INT, Crossfire_Object::obj, and autojail::value.

+ Here is the call graph for this function:

◆ Object_SetValue()

static int Object_SetValue ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 631 of file cfpython_object.c.

References cf_object_set_long_property(), CFAPI_OBJECT_PROP_VALUE, EXISTCHECK_INT, Crossfire_Object::obj, autojail::value, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Player_GetBedMap()

static PyObject* Player_GetBedMap ( Crossfire_Player whoptr,
void *  closure 
)
static

Definition at line 188 of file cfpython_object.c.

References cf_object_get_string_property(), CFAPI_PLAYER_PROP_BED_MAP, EXISTCHECK, Crossfire_Player::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Player_GetBedX()

static PyObject* Player_GetBedX ( Crossfire_Player whoptr,
void *  closure 
)
static

Definition at line 207 of file cfpython_object.c.

References cf_object_get_int_property(), CFAPI_PLAYER_PROP_BED_X, EXISTCHECK, Crossfire_Player::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Player_GetBedY()

static PyObject* Player_GetBedY ( Crossfire_Player whoptr,
void *  closure 
)
static

Definition at line 224 of file cfpython_object.c.

References cf_object_get_int_property(), CFAPI_PLAYER_PROP_BED_Y, EXISTCHECK, Crossfire_Player::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Player_GetIP()

static PyObject* Player_GetIP ( Crossfire_Player whoptr,
void *  closure 
)
static

Definition at line 103 of file cfpython_object.c.

References cf_player_get_ip(), EXISTCHECK, Crossfire_Player::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Player_GetMarkedItem()

static PyObject* Player_GetMarkedItem ( Crossfire_Player whoptr,
void *  closure 
)
static

Definition at line 109 of file cfpython_object.c.

References cf_player_get_marked_item(), Crossfire_Object_wrap(), EXISTCHECK, Crossfire_Player::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Player_GetObjectProperty()

static PyObject* Player_GetObjectProperty ( Crossfire_Player whoptr,
void *  closure 
)
static

Definition at line 1546 of file cfpython_object.c.

References cf_object_get_object_property(), Crossfire_Object_wrap(), EXISTCHECK, guildjoin::ob, and Crossfire_Player::obj.

+ Here is the call graph for this function:

◆ Player_GetParty()

static PyObject* Player_GetParty ( Crossfire_Player whoptr,
void *  closure 
)
static

Definition at line 165 of file cfpython_object.c.

References cf_player_get_party(), Crossfire_Party_wrap(), EXISTCHECK, Crossfire_Player::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Player_GetTitle()

static PyObject* Player_GetTitle ( Crossfire_Object whoptr,
void *  closure 
)
static

Definition at line 76 of file cfpython_object.c.

References cf_player_get_title(), EXISTCHECK, MAX_NAME, Crossfire_Object::obj, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Player_GiveKnowledge()

static PyObject* Player_GiveKnowledge ( Crossfire_Player who,
PyObject *  args 
)
static

Definition at line 152 of file cfpython_object.c.

References make_face_from_files::args, cf_player_knowledge_give(), EXISTCHECK, giveknowledge::knowledge, and autojail::who.

+ Here is the call graph for this function:

◆ Player_KnowledgeKnown()

static PyObject* Player_KnowledgeKnown ( Crossfire_Player who,
PyObject *  args 
)
static

Definition at line 142 of file cfpython_object.c.

References make_face_from_files::args, cf_player_knowledge_has(), EXISTCHECK, giveknowledge::knowledge, and autojail::who.

+ Here is the call graph for this function:

◆ Player_QuestGetState()

static PyObject* Player_QuestGetState ( Crossfire_Player whoptr,
PyObject *  args 
)
static

Definition at line 258 of file cfpython_object.c.

References make_face_from_files::args, cf_add_string(), cf_free_string(), cf_quest_get_player_state(), EXISTCHECK, Crossfire_Player::obj, sstring, and quest::state.

+ Here is the call graph for this function:

◆ Player_QuestSetState()

static PyObject* Player_QuestSetState ( Crossfire_Player whoptr,
PyObject *  args 
)
static

Definition at line 274 of file cfpython_object.c.

References make_face_from_files::args, cf_add_string(), cf_free_string(), cf_quest_set_player_state(), EXISTCHECK, Crossfire_Player::obj, sstring, and quest::state.

+ Here is the call graph for this function:

◆ Player_QuestStart()

static PyObject* Player_QuestStart ( Crossfire_Player whoptr,
PyObject *  args 
)
static

Definition at line 241 of file cfpython_object.c.

References make_face_from_files::args, cf_add_string(), cf_free_string(), cf_quest_start(), EXISTCHECK, Crossfire_Player::obj, sstring, and quest::state.

+ Here is the call graph for this function:

◆ Player_QuestWasCompleted()

static PyObject* Player_QuestWasCompleted ( Crossfire_Player whoptr,
PyObject *  args 
)
static

Definition at line 291 of file cfpython_object.c.

References make_face_from_files::args, cf_add_string(), cf_free_string(), cf_quest_was_completed(), EXISTCHECK, Crossfire_Player::obj, and sstring.

+ Here is the call graph for this function:

◆ Player_SetBedMap()

static int Player_SetBedMap ( Crossfire_Player whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Player_SetBedX()

static int Player_SetBedX ( Crossfire_Player whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Player_SetBedY()

static int Player_SetBedY ( Crossfire_Player whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Player_SetMarkedItem()

static int Player_SetMarkedItem ( Crossfire_Player whoptr,
PyObject *  value,
void *  closure 
)
static

◆ Player_SetParty()

static int Player_SetParty ( Crossfire_Player whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 171 of file cfpython_object.c.

References cf_player_set_party(), Crossfire_PartyType, EXISTCHECK_INT, guildjoin::ob, Crossfire_Player::obj, autojail::value, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ Player_SetTitle()

static int Player_SetTitle ( Crossfire_Object whoptr,
PyObject *  value,
void *  closure 
)
static

Definition at line 83 of file cfpython_object.c.

References CF_IS_PYSTR, cf_player_set_title(), EXISTCHECK_INT, Crossfire_Object::obj, autojail::value, and nlohmann::detail::void().

+ Here is the call graph for this function:

Variable Documentation

◆ object_assoc_table

ptr_assoc_table object_assoc_table
static

◆ Object_getseters

PyGetSetDef Object_getseters[]
static

Definition at line 1314 of file cfpython_object.c.

◆ ObjectMethods

PyMethodDef ObjectMethods[]
static

Definition at line 1449 of file cfpython_object.c.

◆ Player_getseters

PyGetSetDef Player_getseters[]
static
Initial value:
= {
{ "Title", (getter)Player_GetTitle, (setter)Player_SetTitle, NULL, NULL },
{ "IP", (getter)Player_GetIP, NULL, NULL, NULL },
{ "MarkedItem", (getter)Player_GetMarkedItem, (setter)Player_SetMarkedItem, NULL, NULL },
{ "Party", (getter)Player_GetParty, (setter)Player_SetParty, NULL, NULL },
{ "BedMap", (getter)Player_GetBedMap, (setter)Player_SetBedMap, NULL, NULL },
{ "BedX", (getter)Player_GetBedX, (setter)Player_SetBedX, NULL, NULL },
{ "BedY", (getter)Player_GetBedY, (setter)Player_SetBedY, NULL, NULL },
{ "Transport", (getter)Player_GetObjectProperty,NULL, NULL, (void*)CFAPI_PLAYER_PROP_TRANSPORT},
{ NULL, NULL, NULL, NULL, NULL }
}

Definition at line 1566 of file cfpython_object.c.

◆ PlayerMethods

PyMethodDef PlayerMethods[]
static
Initial value:
= {
{ "Message", (PyCFunction)Crossfire_Player_Message, METH_VARARGS, NULL },
{ "Write", (PyCFunction)Crossfire_Player_Message, METH_VARARGS, NULL },
{ "CanPay", (PyCFunction)Crossfire_Player_CanPay, METH_NOARGS, NULL },
{ "QuestStart", (PyCFunction)Player_QuestStart, METH_VARARGS, NULL },
{ "QuestGetState", (PyCFunction)Player_QuestGetState, METH_VARARGS, NULL },
{ "QuestSetState", (PyCFunction)Player_QuestSetState, METH_VARARGS, NULL },
{ "QuestWasCompleted", (PyCFunction)Player_QuestWasCompleted, METH_VARARGS, NULL },
{ "KnowledgeKnown", (PyCFunction)Player_KnowledgeKnown, METH_VARARGS, NULL },
{ "GiveKnowledge", (PyCFunction)Player_GiveKnowledge, METH_VARARGS, NULL },
{ NULL, NULL, 0, NULL }
}

Definition at line 1578 of file cfpython_object.c.

object_was_destroyed
#define object_was_destroyed(op, old_tag)
Definition: object.h:68
Player_SetParty
static int Player_SetParty(Crossfire_Player *whoptr, PyObject *value, void *closure)
Definition: cfpython_object.c:171
Player_GetBedMap
static PyObject * Player_GetBedMap(Crossfire_Player *whoptr, void *closure)
Definition: cfpython_object.c:188
Player_SetTitle
static int Player_SetTitle(Crossfire_Object *whoptr, PyObject *value, void *closure)
Definition: cfpython_object.c:83
Player_SetBedX
static int Player_SetBedX(Crossfire_Player *whoptr, PyObject *value, void *closure)
Definition: cfpython_object.c:213
Player_QuestSetState
static PyObject * Player_QuestSetState(Crossfire_Player *whoptr, PyObject *args)
Definition: cfpython_object.c:274
guildjoin.ob
ob
Definition: guildjoin.py:42
Player_GetParty
static PyObject * Player_GetParty(Crossfire_Player *whoptr, void *closure)
Definition: cfpython_object.c:165
Crossfire_Player_Message
static PyObject * Crossfire_Player_Message(Crossfire_Player *who, PyObject *args)
Definition: cfpython_object.c:129
Crossfire_Player_CanPay
static PyObject * Crossfire_Player_CanPay(Crossfire_Player *who, PyObject *args)
Definition: cfpython_object.c:182
Player_QuestGetState
static PyObject * Player_QuestGetState(Crossfire_Player *whoptr, PyObject *args)
Definition: cfpython_object.c:258
Player_GetTitle
static PyObject * Player_GetTitle(Crossfire_Object *whoptr, void *closure)
Definition: cfpython_object.c:76
Player_GetObjectProperty
static PyObject * Player_GetObjectProperty(Crossfire_Player *whoptr, void *closure)
Definition: cfpython_object.c:1546
Player_GiveKnowledge
static PyObject * Player_GiveKnowledge(Crossfire_Player *who, PyObject *args)
Definition: cfpython_object.c:152
Player_GetMarkedItem
static PyObject * Player_GetMarkedItem(Crossfire_Player *whoptr, void *closure)
Definition: cfpython_object.c:109
Player_SetMarkedItem
static int Player_SetMarkedItem(Crossfire_Player *whoptr, PyObject *value, void *closure)
Definition: cfpython_object.c:115
CFAPI_PLAYER_PROP_TRANSPORT
#define CFAPI_PLAYER_PROP_TRANSPORT
Definition: plugin.h:242
Player_QuestWasCompleted
static PyObject * Player_QuestWasCompleted(Crossfire_Player *whoptr, PyObject *args)
Definition: cfpython_object.c:291
Player_GetBedY
static PyObject * Player_GetBedY(Crossfire_Player *whoptr, void *closure)
Definition: cfpython_object.c:224
Player_SetBedMap
static int Player_SetBedMap(Crossfire_Player *whoptr, PyObject *value, void *closure)
Definition: cfpython_object.c:196
Player_SetBedY
static int Player_SetBedY(Crossfire_Player *whoptr, PyObject *value, void *closure)
Definition: cfpython_object.c:230
Player_GetBedX
static PyObject * Player_GetBedX(Crossfire_Player *whoptr, void *closure)
Definition: cfpython_object.c:207
Player_GetIP
static PyObject * Player_GetIP(Crossfire_Player *whoptr, void *closure)
Definition: cfpython_object.c:103
Crossfire_ObjectType
PyTypeObject Crossfire_ObjectType
Player_KnowledgeKnown
static PyObject * Player_KnowledgeKnown(Crossfire_Player *who, PyObject *args)
Definition: cfpython_object.c:142
Player_QuestStart
static PyObject * Player_QuestStart(Crossfire_Player *whoptr, PyObject *args)
Definition: cfpython_object.c:241