128 if (!PyArg_Parse(value,
"s", &val))
145 if (!PyArg_ParseTuple(args,
"s|i", &message, &color))
160 if (!PyArg_ParseTuple(args,
"ii", &x, &y))
174 if (!PyArg_ParseTuple(args,
"sii", &txt, &x, &y))
193 if (!PyArg_ParseTuple(args,
"s(ii)", &what, &x, &y))
232 if (!PyArg_ParseTuple(args,
"i", &change))
271 if (olp->
value == connected) {
290 return left->
map < right->
map ? -1 : (left->
map == right->
map ? 0 : 1);
316 return (PyObject *)
self;
324 if (self->map && self->valid) {
348 if (wrapper != NULL) {
357 return (PyObject *)wrapper;
static PyObject * Crossfire_Map_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
void cf_map_message(mapstruct *m, const char *msg, int color)
PyObject_HEAD object * obj
#define CFAPI_MAP_PROP_NAME
static PyObject * Map_Message(Crossfire_Map *map, PyObject *args)
static int Map_SetPath(Crossfire_Map *whoptr, PyObject *value, void *closure)
PyObject * Crossfire_Region_wrap(region *what)
PyObject * Crossfire_Map_wrap(mapstruct *what)
static PyObject * Map_GetTempName(Crossfire_Map *whoptr, void *closure)
PyTypeObject Crossfire_MapType
static PyObject * Map_GetUnique(Crossfire_Map *whoptr, void *closure)
#define MAPEXISTCHECK_INT(map)
ptr_assoc * ptr_assoc_table[PTR_ASSOC_TABLESIZE]
#define MAPEXISTCHECK(map)
int cf_map_change_light(mapstruct *m, int change)
static PyObject * Map_GetName(Crossfire_Map *whoptr, void *closure)
region * cf_map_get_region_property(mapstruct *map, int propcode)
static PyObject * Map_GetResetTime(Crossfire_Map *whoptr, void *closure)
int cf_map_get_height(mapstruct *map)
int cf_map_get_difficulty(mapstruct *map)
mapstruct * cf_map_get_map_property(mapstruct *map, int propcode)
void init_map_assoc_table(void)
static int Map_InternalCompare(Crossfire_Map *left, Crossfire_Map *right)
static PyObject * Crossfire_Map_Int(PyObject *obj)
static void add_map_assoc(mapstruct *key, Crossfire_Map *value)
static PyObject * Map_GetWidth(Crossfire_Map *whoptr, void *closure)
#define CFAPI_MAP_PROP_NEXT
static ptr_assoc_table map_assoc_table
static PyObject * Map_GetDifficulty(Crossfire_Map *whoptr, void *closure)
void cf_log(LogLevel logLevel, const char *format,...)
static PyObject * Map_GetPlayers(Crossfire_Map *whoptr, void *closure)
int cf_map_get_players(mapstruct *map)
#define CFAPI_MAP_PROP_UNIQUE
static PyObject * find_assoc_pymap(mapstruct *key)
static PyObject * Crossfire_Map_Long(PyObject *obj)
static PyObject * Map_GetEnterY(Crossfire_Map *whoptr, void *closure)
void Handle_Map_Unload_Hook(Crossfire_Map *map)
static PyObject * Map_CreateObject(Crossfire_Map *map, PyObject *args)
object * cf_map_present_arch_by_name(const char *str, mapstruct *map, int nx, int ny)
static void free_map_assoc(mapstruct *key)
object * cf_map_insert_object(mapstruct *where, object *op, int x, int y)
PyObject * Crossfire_Object_wrap(object *what)
int cf_map_get_reset_time(mapstruct *map)
static PyObject * Map_GetHeight(Crossfire_Map *whoptr, void *closure)
PyObject_HEAD mapstruct * map
#define CFAPI_MAP_PROP_MESSAGE
void * find_assoc_value(ptr_assoc **hash_table, void *key)
void cf_map_set_string_property(mapstruct *map, int propcode, const char *value)
#define CFAPI_MAP_PROP_TMPNAME
static PyObject * Map_GetDarkness(Crossfire_Map *whoptr, void *closure)
static PyObject * Map_GetPath(Crossfire_Map *whoptr, void *closure)
int cf_map_get_reset_timeout(mapstruct *map)
int cf_map_get_darkness(mapstruct *map)
void cf_map_trigger_connected(objectlink *ol, object *cause, int state)
static PyObject * Map_GetRegion(Crossfire_Map *whoptr, void *closure)
void add_ptr_assoc(ptr_assoc **hash_table, void *key, void *value)
object * cf_map_get_object_at(mapstruct *m, int x, int y)
void init_ptr_assoc_table(ptr_assoc **hash_table)
static PyObject * Map_GetMessage(Crossfire_Map *whoptr, void *closure)
static PyObject * Map_Insert(Crossfire_Map *map, PyObject *args)
static PyObject * Map_GetEnterX(Crossfire_Map *whoptr, void *closure)
static PyObject * Map_GetFirstObjectAt(Crossfire_Map *map, PyObject *args)
static PyObject * Map_TriggerConnected(Crossfire_Map *map, PyObject *args)
#define CFAPI_MAP_PROP_PATH
static PyObject * Map_ChangeLight(Crossfire_Map *map, PyObject *args)
#define CFAPI_MAP_PROP_REGION
sstring cf_map_get_sstring_property(mapstruct *map, int propcode)
void free_ptr_assoc(ptr_assoc **hash_table, void *key)
PyTypeObject Crossfire_ObjectType
static PyObject * Map_GetResetTimeout(Crossfire_Map *whoptr, void *closure)
static PyObject * Map_Check(Crossfire_Map *map, PyObject *args)
static void Crossfire_Map_dealloc(PyObject *obj)
int cf_map_get_int_property(mapstruct *map, int property)
#define CFAPI_MAP_PROP_ENTER_X
object * cf_create_object_by_name(const char *name)
static PyObject * Map_Next(Crossfire_Map *map, PyObject *args)
int cf_map_get_width(mapstruct *map)
int cf_map_get_enter_x(mapstruct *map)
int cf_map_get_flags(mapstruct *oldmap, mapstruct **newmap, sint16 x, sint16 y, sint16 *nx, sint16 *ny)