Ejemplo n.º 1
0
    def __init__(self):
        self.id = XElement('id')
        self.deviceName = XElement('deviceName')
        self.MACAddress = XElement('MACAddress')
        self.name = XElement('name')

        self.character = XInstance('character', XMLCharacter, True)

        self.messages = XInstance('messages', XMLMessage)
Ejemplo n.º 2
0
    def __init__(self):
        self.id = XElement('id')
        self.name = XAttribElement('name', 'lang')
        self.description = XAttribElement('description', 'lang')

        self.viability = XElement('viability')
        self.offense = XAttribElement('offense', 'lang')
        self.defense = XElement('defense')
        self.endurance = XElement('endurance')
        self.rampancy = XElement('pugnacity')
        self.mobility = XElement('mobility')
        self.perseverance = XElement('perseverance')
        self.intelligence = XElement('intelligence')
        self.charisma = XElement('charisma')
        self.alignment = XElement('alignment', Alignment)
        self.experience = XElement('experience')
        self.hp = XElement('HP')

        self.monsterRace = XElement('race', MonsterRace)
        self.size = XElement('size', MonsterSize)

        self.spells = XInstance('spells', XMLSpell)
        self.abilities = XInstance('abilities', XMLAbility)

        self.items = XInstance('items', XMLItem)
        self.armors = XInstance('items', XMLArmor)
        self.containers = XInstance('items', XMLContainer)
        self.meleeWeapons = XInstance('items', XMLMeleeWeapon)
        self.rangedWeapons = XInstance('items', XMLRangeWeapon)
        self.moneyList = XInstance('items', XMLMoney)
        self.throwableWeapons = XInstance('items', XMLThrowableWeapon)
Ejemplo n.º 3
0
    def __init__(self):
        self.id = XElement('id')
        self.name = XAttribElement('name', 'lang')
        self.description = XAttribElement('description', 'lang')
        self.date = XElement('date')

        self.party = XInstance('party', XMLPartyCharacter)

        self.locations = XInstance('locations', XMLLocation)

        self.effects = XInstance('effects', XMLEffect)
        self.spells = XInstance('spells', XMLSpell)
        self.abilities = XInstance('abilities', XMLAbility)
Ejemplo n.º 4
0
    def __init__(self):
        # self.id = XElement('id')
        self.name = XElement('name')
        self.description = XElement('description')
        self.XMLMap = XElement('filePath')

        self.mapItems = XInstance('mapItems', XMLMapItem)
Ejemplo n.º 5
0
    def __init__(self):
        self.id = XElement('id')
        self.name = XAttribElement('name', 'lang')
        self.description = XAttribElement('description', 'lang')

        self.targetType = XElement('targetType', ModifierTargetTypes)
        self.active = XElement('active')

        self.modifiers = XInstance('modifiers', XMLModifier)
Ejemplo n.º 6
0
    def __init__(self):
        self.id = XElement('id')
        self.name = XAttribElement('name', 'lang')
        self.description = XAttribElement('description', 'lang')
        self.copper = XElement('copper')
        self.silver = XElement('silver')
        self.gold = XElement('gold')
        # self.amount = XElement('amount')

        self.effects = XInstance('effects', XMLEffect)
Ejemplo n.º 7
0
    def __init__(self):
        self.id = XElement('id')
        self.name = XAttribElement('name', 'lang')
        self.description = XAttribElement('description', 'lang')
        self.chance = XAttribElement('chance', 'lang')
        self.drd_race = XElement('race', Races)
        self.drd_class = XElement('class', Classes)
        self.level = XElement('level')

        self.contexts = XInstance('contexts', XMLAbilityContext)
Ejemplo n.º 8
0
    def __init__(self):
        self.id = XElement('id')
        self.name = XAttribElement('name', 'lang')
        self.description = XAttribElement('description', 'lang')

        self.agility = XElement('agility')
        self.charisma = XElement('charisma')
        self.intelligence = XElement('intelligence')
        self.mobility = XElement('mobility')
        self.strength = XElement('strength')
        self.toughness = XElement('toughness')

        self.age = XElement('age')
        self.height = XElement('height')
        self.weight = XElement('weight')
        self.level = XElement('level')
        self.xp = XElement('xp')
        self.maxHealth = XElement('maxHealth')
        self.maxMana = XElement('maxMana')
        self.currentHealth = XElement('currentHealth')
        self.currentMana = XElement('currentMana')

        self.drdClass = XElement('class', Classes)
        self.drdRace = XElement('race', Races)
        self.alignment = XElement('alignment', Alignment)

        self.spells = XInstance('spells', XMLSpell)
        self.abilities = XInstance('abilities', XMLAbility)
        self.effects = XInstance('effects', XMLEffect)

        # self.items = XInstance('items', XMLItem)
        # self.armors = XInstance('armors', XMLArmor)
        # self.containers = XInstance('containers', XMLContainer)
        # self.meleeWeapons = XInstance('meleeWeapons', XMLMeleeWeapon)
        # self.rangedWeapons = XInstance('rangedWeapons', XMLRangeWeapon)
        # self.moneyList = XInstance('moneyList', XMLMoney)
        # self.throwableWeapons = XInstance('throwableWeapons', XMLThrowableWeapon)

        self.inventory = XInstance('inventory', XMLContainer, True, 'inventory')
        self.ground = XInstance('ground', XMLContainer, True, 'ground')
Ejemplo n.º 9
0
    def __init__(self):
        self.id = XElement('id')
        self.parent_id = XElement('parentId')
        self.name = XAttribElement('name', 'lang')
        self.description = XAttribElement('description', 'lang')
        self.price = XElement('price')
        self.quality = XElement('quality')
        self.weightA = XElement('weightA')
        self.weightB = XElement('weightB')
        self.weightC = XElement('weightC')
        self.size = XElement('size', ArmorSize)
        self.amount = XElement('amount')

        self.effects = XInstance('effects', XMLEffect)
Ejemplo n.º 10
0
    def __init__(self):
        self.id = XElement('id')
        self.parent_id = XElement('parentId')
        self.name = XAttribElement('name', 'lang')
        self.description = XAttribElement('description', 'lang')
        self.price = XElement('price')
        self.quality = XElement('quality')
        self.weight = XElement('weight')
        self.capacity = XElement('capacity')
        self.amount = XElement('amount')

        self.effects = XInstance('effects', XMLEffect)

        self.items = XInstance('items', XMLItem)
        self.armors = XInstance('items', XMLArmor)
        self.containers = XInstance('items', XMLContainer)
        self.meleeWeapons = XInstance('items', XMLMeleeWeapon)
        self.rangedWeapons = XInstance('items', XMLRangeWeapon)
        self.moneyList = XInstance('items', XMLMoney)
        self.throwableWeapons = XInstance('items', XMLThrowableWeapon)
Ejemplo n.º 11
0
    def __init__(self):
        self.id = XElement('id')
        self.parent_id = XElement('parentId')
        self.name = XAttribElement('name', 'lang')
        self.description = XAttribElement('description', 'lang')
        self.price = XElement('price')
        self.weight = XElement('weight')
        self.strength = XElement('strength')
        self.rampancy = XElement('rampancy')
        self.defence = XElement('defence')
        self.length = XElement('length')
        self.amount = XElement('amount')
        self.initiative = XElement('initiative')

        self.weaponWeight = XElement('weaponWeight', WeaponWeight)
        self.handling = XElement('handling', Handling)
        self.racial = XElement('racial', Races)

        self.effects = XInstance('effects', XMLEffect)
Ejemplo n.º 12
0
    def __init__(self):
        self.id = XElement('id')
        self.name = XAttribElement('name', 'lang')
        self.description = XAttribElement('description', 'lang')

        self.monsters = XInstance('monsters', XMLMonster)
        self.locations = XInstance('locations', XMLLocation)
        self.maps = XInstance('maps', XMLMap)

        self.characters = XInstance('scenarioCharacters', XMLCharacter)

        self.items = XInstance('items', XMLItem)
        self.armors = XInstance('items', XMLArmor)
        self.containers = XInstance('items', XMLContainer)
        self.meleeWeapons = XInstance('items', XMLMeleeWeapon)
        self.rangedWeapons = XInstance('items', XMLRangeWeapon)
        self.moneyList = XInstance('items', XMLMoney)
        self.throwableWeapons = XInstance('items', XMLThrowableWeapon)