PyDict_SetItemString( dict, "name", PyString_FromString( tile.name ) ); PyDict_SetItemString( dict, "unknown1", PyInt_FromLong( tile.unknown1 ) ); PyDict_SetItemString( dict, "unknown2", PyInt_FromLong( tile.unknown2 ) ); PyDict_SetItemString( dict, "flag1", PyInt_FromLong( tile.flag1 ) ); PyDict_SetItemString( dict, "flag2", PyInt_FromLong( tile.flag2 ) ); PyDict_SetItemString( dict, "flag3", PyInt_FromLong( tile.flag3 ) ); PyDict_SetItemString( dict, "flag4", PyInt_FromLong( tile.flag4 ) ); PyDict_SetItemString( dict, "wet", PyInt_FromLong( tile.isWet() ) ); PyDict_SetItemString( dict, "blocking", PyInt_FromLong( tile.isBlocking() ) ); PyDict_SetItemString( dict, "floor", PyInt_FromLong( tile.isRoofOrFloorTile() ) );
PyDict_SetStolenItem( dict, "name", PyString_FromString( tile.name ) ); PyDict_SetStolenItem( dict, "unknown1", PyInt_FromLong( tile.unknown1 ) ); PyDict_SetStolenItem( dict, "unknown2", PyInt_FromLong( tile.unknown2 ) ); PyDict_SetStolenItem( dict, "flag1", PyInt_FromLong( tile.flag1 ) ); PyDict_SetStolenItem( dict, "flag2", PyInt_FromLong( tile.flag2 ) ); PyDict_SetStolenItem( dict, "flag3", PyInt_FromLong( tile.flag3 ) ); PyDict_SetStolenItem( dict, "flag4", PyInt_FromLong( tile.flag4 ) ); PyDict_SetStolenItem( dict, "wet", PyInt_FromLong( tile.isWet() ) ); PyDict_SetStolenItem( dict, "blocking", PyInt_FromLong( tile.isBlocking() ) ); PyDict_SetStolenItem( dict, "floor", PyInt_FromLong( tile.isRoofOrFloorTile() ) );
static PyObject* wpLanddata( PyObject* self, PyObject* args ){	Q_UNUSED( self );	unsigned int tileid;	if ( !PyArg_ParseTuple( args, "i:wolfpack.landdata(id)", &tileid ) )	{		return 0;	}	land_st tile = TileCache::instance()->getLand( tileid );	PyObject* dict = PyDict_New();	PyDict_SetItemString( dict, "name", PyString_FromString( tile.name ) );	PyDict_SetItemString( dict, "unknown1", PyInt_FromLong( tile.unknown1 ) );	PyDict_SetItemString( dict, "unknown2", PyInt_FromLong( tile.unknown2 ) );	PyDict_SetItemString( dict, "flag1", PyInt_FromLong( tile.flag1 ) );	PyDict_SetItemString( dict, "flag2", PyInt_FromLong( tile.flag2 ) );	PyDict_SetItemString( dict, "flag3", PyInt_FromLong( tile.flag3 ) );	PyDict_SetItemString( dict, "flag4", PyInt_FromLong( tile.flag4 ) );	PyDict_SetItemString( dict, "wet", PyInt_FromLong( tile.isWet() ) );	PyDict_SetItemString( dict, "blocking", PyInt_FromLong( tile.isBlocking() ) );	PyDict_SetItemString( dict, "floor", PyInt_FromLong( tile.isRoofOrFloorTile() ) );	QString flags = getFlagNames( tile.flag1, tile.flag2, tile.flag3, tile.flag4 ).join( "," );	if ( flags.isNull() )	{		PyDict_SetItemString( dict, "flagnames", PyString_FromString( "" ) );	}	else	{		PyDict_SetItemString( dict, "flagnames", PyString_FromString( flags.latin1() ) );	}	return dict;}