<s> from constants import * <EOL> class Stats ( ) : <EOL> strength , defense , speed , magic , stat_count = range ( <NUM_LIT:5> ) <EOL> class Vitals ( ) : <EOL> hp , mp , sp , vital_count = range ( <NUM_LIT:4> ) <EOL> class Equipment ( ) : <EOL> weapon , armor , helmet , shield , equipment_count = range ( <NUM_LIT:5> ) <EOL> class PlayerInvClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . num = None <EOL> self . value = <NUM_LIT:0> <EOL> self . dur = <NUM_LIT:0> <EOL> class PlayerClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . name = "<STR_LIT>" <EOL> self . sex = <NUM_LIT:0> <EOL> self . Class = <NUM_LIT:1> <EOL> self . sprite = <NUM_LIT:0> <EOL> self . level = <NUM_LIT:1> <EOL> self . exp = <NUM_LIT:0> <EOL> self . access = <NUM_LIT:0> <EOL> self . pk = <NUM_LIT:0> <EOL> self . stats = [ None for i in range ( Stats . stat_count ) ] <EOL> self . stats [ Stats . strength ] = <NUM_LIT:0> <EOL> self . stats [ Stats . defense ] = <NUM_LIT:0> <EOL> self . stats [ Stats . speed ] = <NUM_LIT:0> <EOL> self . stats [ Stats . magic ] = <NUM_LIT:0> <EOL> self . statsPoints = <NUM_LIT:0> <EOL> self . vitals = [ None for i in range ( Vitals . vital_count ) ] <EOL> self . vitals [ Vitals . hp ] = <NUM_LIT:0> <EOL> self . vitals [ Vitals . mp ] = <NUM_LIT:0> <EOL> self . vitals [ Vitals . sp ] = <NUM_LIT:0> <EOL> self . equipment = [ None for i in range ( Equipment . equipment_count ) ] <EOL> self . inv = [ PlayerInvClass ( ) for i in range ( MAX_INV ) ] <EOL> self . spell = [ None for i in range ( MAX_PLAYER_SPELLS ) ] <EOL> self . Map = <NUM_LIT:1> <EOL> self . x = <NUM_LIT:5> <EOL> self . y = <NUM_LIT:5> <EOL> self . Dir = <NUM_LIT:1> <EOL> class AccountClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . Login = "<STR_LIT>" <EOL> self . Password = None <EOL> self . char = [ PlayerClass ( ) for i in range ( <NUM_LIT:10> ) ] <EOL> class ClassClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . name = "<STR_LIT>" <EOL> self . sprite = <NUM_LIT:1> <EOL> self . stat = [ None for i in range ( Stats . stat_count ) ] <EOL> class TempPlayerClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . Buffer = None <EOL> self . charNum = <NUM_LIT:0> <EOL> self . inGame = False <EOL> self . attackTimer = <NUM_LIT:0> <EOL> self . target = <NUM_LIT:0> <EOL> self . castedSpell = False <EOL> self . partyPlayer = None <EOL> self . inParty = False <EOL> self . dataTimer = None <EOL> self . dataBytes = None <EOL> self . dataPackets = None <EOL> self . gettingMap = False <EOL> class TileClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . layer1 = None <EOL> self . layer2 = None <EOL> self . layer3 = None <EOL> self . mask = <NUM_LIT:0> <EOL> self . anim = <NUM_LIT:0> <EOL> self . fringe = None <EOL> self . type = <NUM_LIT:0> <EOL> self . data1 = <NUM_LIT:0> <EOL> self . data2 = <NUM_LIT:0> <EOL> self . data3 = <NUM_LIT:0> <EOL> class MapClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . name = '<STR_LIT>' <EOL> self . revision = <NUM_LIT:0> <EOL> self . moral = None <EOL> self . tileSet = <NUM_LIT:1> <EOL> self . up = <NUM_LIT:0> <EOL> self . down = <NUM_LIT:0> <EOL> self . left = <NUM_LIT:0> <EOL> self . right = <NUM_LIT:0> <EOL> self . bootMap = <NUM_LIT:0> <EOL> self . bootX = <NUM_LIT:0> <EOL> self . bootY = <NUM_LIT:0> <EOL> self . tile = [ [ TileClass ( ) for i in range ( MAX_MAPY ) ] for i in range ( MAX_MAPX ) ] <EOL> self . npc = [ None for i in range ( MAX_MAP_NPCS ) ] <EOL> class TempTileClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . doorOpen = <NUM_LIT:0> <EOL> self . doorTime = <NUM_LIT:0> <EOL> class MapItemClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . num = None <EOL> self . value = None <EOL> self . dur = None <EOL> self . x = None <EOL> self . y = None <EOL> class ItemClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . name = "<STR_LIT>" <EOL> self . pic = <NUM_LIT:1> <EOL> self . type = <NUM_LIT:0> <EOL> self . data1 = <NUM_LIT:0> <EOL> self . data2 = <NUM_LIT:0> <EOL> self . data3 = <NUM_LIT:0> <EOL> class SpellClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . name = '<STR_LIT>' <EOL> self . pic = None <EOL> self . reqMp = <NUM_LIT:0> <EOL> self . reqClass = None <EOL> self . reqLevel = <NUM_LIT:0> <EOL> self . type = None <EOL> self . data1 = <NUM_LIT:0> <EOL> self . data2 = <NUM_LIT:0> <EOL> self . data3 = <NUM_LIT:0> <EOL> class NPCClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . name = '<STR_LIT>' <EOL> self . attackSay = '<STR_LIT>' <EOL> self . sprite = None <EOL> self . spawnSecs = <NUM_LIT:20> <EOL> self . behaviour = <NUM_LIT:0> <EOL> self . range = <NUM_LIT:0> <EOL> self . dropChance = <NUM_LIT:0> <EOL> self . dropItem = <NUM_LIT:0> <EOL> self . dropItemValue = <NUM_LIT:0> <EOL> self . stat = [ None for i in range ( Stats . stat_count ) ] <EOL> class MapNPCClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . num = None <EOL> self . target = None <EOL> self . vital = [ None for i in range ( Vitals . vital_count ) ] <EOL> self . map = None <EOL> self . x = None <EOL> self . y = None <EOL> self . dir = None <EOL> self . spawnWait = <NUM_LIT:0> <EOL> self . attackTimer = <NUM_LIT:0> <EOL> class TradeItemClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . giveItem = None <EOL> self . giveValue = None <EOL> self . getItem = None <EOL> self . getValue = None <EOL> class ShopClass ( ) : <EOL> def __init__ ( self ) : <EOL> self . name = '<STR_LIT>' <EOL> self . joinSay = '<STR_LIT>' <EOL> self . leaveSay = '<STR_LIT>' <EOL> self . fixesItems = False <EOL> self . tradeItem = [ TradeItemClass ( ) for i in range ( MAX_TRADES ) ] <EOL> Map = [ MapClass ( ) for i in range ( MAX_MAPS ) ] <EOL> MapCache = [ None ] * MAX_MAPS <EOL> TempTile = [ TempTileClass ( ) for i in range ( MAX_MAPS ) ] <EOL> playersOnMap = [ None ] * MAX_MAPS <EOL> Player = [ AccountClass ( ) for i in range ( MAX_PLAYERS ) ] <EOL> TempPlayer = [ TempPlayerClass ( ) for i in range ( MAX_PLAYERS ) ] <EOL> Class = [ ClassClass ( ) for i in range ( <NUM_LIT> ) ] <EOL> Item = [ ItemClass ( ) for i in range ( MAX_ITEMS ) ] <EOL> Spell = [ SpellClass ( ) for i in range ( MAX_SPELLS ) ] <EOL> NPC = [ NPCClass ( ) for i in range ( MAX_NPCS ) ] <EOL> mapItem = [ [ MapItemClass ( ) for i in range ( MAX_MAP_ITEMS ) ] for j in range ( MAX_MAPS ) ] <EOL> mapNPC = [ [ MapNPCClass ( ) for i in range ( MAX_MAP_NPCS ) ] for j in range ( MAX_MAPS ) ] <EOL> Shop = [ ShopClass ( ) for i in range ( MAX_SHOPS ) ] </s>
