Crossfire Server, Branches 1.12
R18729
|
Go to the source code of this file.
Functions | |
CF_PLUGIN void * | cfpython_globalEventListener (int *type,...) |
CF_PLUGIN int | cfpython_runPluginCommand (object *op, char *params) |
CF_PLUGIN int | closePlugin (void) |
PyObject * | Crossfire_Archetype_wrap (archetype *what) |
PyObject * | Crossfire_Map_wrap (mapstruct *what) |
PyObject * | Crossfire_Object_wrap (object *what) |
PyObject * | Crossfire_Party_wrap (partylist *what) |
PyObject * | Crossfire_Region_wrap (region *what) |
CF_PLUGIN void * | eventListener (int *type,...) |
CF_PLUGIN void * | getPluginProperty (int *type,...) |
void | Handle_Map_Unload_Hook (Crossfire_Map *map) |
void | init_map_assoc_table (void) |
void | init_object_assoc_table (void) |
CF_PLUGIN int | initPlugin (const char *iversion, f_plug_api gethooksptr) |
CF_PLUGIN int | postInitPlugin (void) |
CF_PLUGIN void* cfpython_globalEventListener | ( | int * | type, |
... | |||
) |
Definition at line 1342 of file cfpython.c.
References _cfpcontext::activator, cf_get_maps_directory(), cf_log(), Crossfire_Map_wrap(), Crossfire_Object_wrap(), do_script(), _cfpcontext::event, EVENT_BORN, EVENT_CLOCK, _cfpcontext::event_code, EVENT_CRASH, EVENT_GKILL, EVENT_KICK, EVENT_LOGIN, EVENT_LOGOUT, EVENT_MAPENTER, EVENT_MAPLEAVE, EVENT_MAPLOAD, EVENT_MAPRESET, EVENT_MAPUNLOAD, EVENT_MUZZLE, EVENT_PLAYER_DEATH, EVENT_REMOVE, EVENT_SHOUT, EVENT_TELL, freeContext(), Handle_Map_Unload_Hook(), llevDebug, _cfpcontext::message, pl::ob, _cfpcontext::options, popContext(), _cfpcontext::returnvalue, _cfpcontext::script, snprintf(), _cfpcontext::third, and _cfpcontext::who.
Referenced by postInitPlugin(), and registerGEvent().
Definition at line 1269 of file cfpython.c.
References _cfpcontext::activator, cf_get_maps_directory(), cf_log(), Crossfire_Object_wrap(), current_command, do_script(), _cfpcontext::fix, freeContext(), llevError, _cfpcontext::message, _cfpcontext::options, popContext(), _cfpcontext::returnvalue, _cfpcontext::script, snprintf(), _cfpcontext::third, and _cfpcontext::who.
Referenced by getPluginProperty().
PyObject* Crossfire_Archetype_wrap | ( | archetype * | what | ) |
Definition at line 57 of file cfpython_archetype.c.
References Crossfire_Archetype::arch, and Crossfire_ArchetypeType.
Referenced by Crossfire_Archetype_GetHead(), Crossfire_Archetype_GetMore(), Crossfire_Archetype_GetNext(), getArchetypes(), and Object_GetArchetype().
PyObject* Crossfire_Map_wrap | ( | mapstruct * | what | ) |
Definition at line 336 of file cfpython_map.c.
References add_map_assoc(), Crossfire_MapType, find_assoc_pymap(), Crossfire_Map::map, and Crossfire_Map::valid.
Referenced by cfpython_globalEventListener(), createMap(), getMapHasBeenLoaded(), getMaps(), Map_Next(), Object_GetMap(), and readyMap().
PyObject* Crossfire_Object_wrap | ( | object * | what | ) |
Definition at line 2388 of file cfpython_object.c.
References add_object_assoc(), Crossfire_Object::count, Crossfire_Player::count, obj::count, Crossfire_ObjectType, Crossfire_PlayerType, find_assoc_pyobject(), Crossfire_Object::obj, Crossfire_Player::obj, PLAYER, obj::type, and was_destroyed.
Referenced by cfpython_globalEventListener(), cfpython_runPluginCommand(), createCFObject(), createCFObjectByName(), Crossfire_Archetype_GetClone(), Crossfire_Archetype_GetNewObject(), Crossfire_Object_CheckArchInventory(), Crossfire_Object_CheckInventory(), Crossfire_Object_CreateInside(), Crossfire_Object_InsertInto(), Crossfire_Object_KnowSpell(), Crossfire_Party_GetPlayers(), eventListener(), findPlayer(), getFriendlyList(), getPlayers(), Map_Check(), Map_CreateObject(), Map_GetFirstObjectAt(), Map_Insert(), Object_GetAbove(), Object_GetBelow(), Object_GetEnemy(), Object_GetEnv(), Object_GetInventory(), Object_GetOwner(), and Player_GetMarkedItem().
PyObject* Crossfire_Party_wrap | ( | partylist * | what | ) |
Definition at line 58 of file cfpython_party.c.
References Crossfire_PartyType, and Crossfire_Party::party.
Referenced by Crossfire_Party_GetNext(), getParties(), and Player_GetParty().
PyObject* Crossfire_Region_wrap | ( | region * | what | ) |
Definition at line 53 of file cfpython_region.c.
void Handle_Map_Unload_Hook | ( | Crossfire_Map * | map | ) |
Definition at line 331 of file cfpython_map.c.
References free_map_assoc(), Crossfire_Map::map, and Crossfire_Map::valid.
Referenced by cfpython_globalEventListener().
void init_map_assoc_table | ( | void | ) |
Definition at line 38 of file cfpython_map.c.
References init_ptr_assoc_table(), and map_assoc_table.
Referenced by initPlugin().
void init_object_assoc_table | ( | void | ) |
Definition at line 38 of file cfpython_object.c.
References init_ptr_assoc_table(), and object_assoc_table.
Referenced by initPlugin().