public Ultima1CharacterData() { m_name = ""; Class = U1Class.Fighter; Race = U1Race.Human; m_hitPoints = new BoundedInt(0, 9999); m_experience = new BoundedInt(0, 9999); m_strength = new BoundedInt(0, 99); m_agility = new BoundedInt(0, 99); m_stamina = new BoundedInt(0, 99); m_charisma = new BoundedInt(0, 99); m_wisdom = new BoundedInt(0, 99); m_intelligence = new BoundedInt(0, 99); Spells = new BoundedIntArray(10, 0, 99); Armor = new BoundedIntArray(5, 0, 99); Weapons = new BoundedIntArray(15, 0, 99); m_food = new BoundedInt(0, 9999); m_coins = new BoundedInt(0, 9999); Gems = new BoundedIntArray(4, 0, 99); m_transportation = new int[7]; m_enemyShips = new BoundedInt(0, 99); Location = new U1Location(); }
public Ultima3CharacterData() { Name = ""; m_torches = new BoundedInt(0, 99); Sex = U3Sex.Male; Class = U3Class.Fighter; Health = U3Health.Good; Race = U3Race.Human; m_hitPoints = new BoundedInt(0, 9999); HitPoints = 150; m_maxHitPoints = new BoundedInt(0, 9999); MaxHitPoints = 150; m_magicPoints = new BoundedInt(0, 99); m_experience = new BoundedInt(0, 9999); m_strength = new BoundedInt(0, 99); m_agility = new BoundedInt(0, 99); m_intelligence = new BoundedInt(0, 99); m_wisdom = new BoundedInt(0, 99); m_food = new BoundedInt(0, 9999); m_gems = new BoundedInt(0, 99); m_powder = new BoundedInt(0, 99); m_keys = new BoundedInt(0, 99); m_torches = new BoundedInt(0, 99); m_gold = new BoundedInt(0, 9999); EquippedArmor = U3Armor.Skin; EquippedWeapon = U3Weapons.Hands; Weapons = new BoundedIntArray(15, 0, 99); Armor = new BoundedIntArray(7, 0, 99); }
public Ultima4CharacterData(string name, U4Sex sex, U4Class job, U4Health health, int hitPoints, int maxHitPoints, int experience, int strength, int dexterity, int intelligence, int magicPoints, U4Weapons weapon, U4Armor armor) { Name = name; Sex = sex; m_magicPoints = new BoundedInt(0, 99); Class = job; Health = health; m_maxHitPoints = new BoundedInt(100, 800); m_hitPoints = new BoundedInt(0, 800); MaxHitPoints = maxHitPoints; HitPoints = hitPoints; m_experience = new BoundedInt(0, 9999); Experience = experience; m_strength = new BoundedInt(0, 50); Strength = strength; m_dexterity = new BoundedInt(0, 50); Dexterity = dexterity; m_intelligence = new BoundedInt(0, 50); Intelligence = intelligence; MagicPoints = magicPoints; Weapon = weapon; Armor = armor; }
public U2Location() { Map = U2Map.TimeOfLegends; m_X = new BoundedInt(0, 255); X = 0; m_Y = new BoundedInt(0, 255); Y = 0; }
public Ultima2Data(IFile file = null) { m_name = ""; Sex = U2Sex.Female; Class = U2Class.Fighter; Race = U2Race.Human; m_hitPoints = new BoundedInt(0, 9999); HitPoints = 0; m_experience = new BoundedInt(0, 9999); Experience = 0; m_strength = new BoundedInt(0, 99); Strength = 0; m_agility = new BoundedInt(0, 99); Agility = 0; m_stamina = new BoundedInt(0, 99); Stamina = 0; m_charisma = new BoundedInt(0, 99); Charisma = 0; m_wisdom = new BoundedInt(0, 99); Wisdom = 0; m_intelligence = new BoundedInt(0, 99); Intelligence = 0; Spells = new BoundedIntArray(9, 0, 99); Armor = new BoundedIntArray(6, 0, 99); Weapons = new BoundedIntArray(9, 0, 99); m_food = new BoundedInt(0, 9999); Food = 0; m_gold = new BoundedInt(0, 9999); Gold = 0; m_torches = new BoundedInt(0, 99); Torches = 0; m_keys = new BoundedInt(0, 99); Keys = 0; m_tools = new BoundedInt(0, 99); Tools = 0; Items = new BoundedIntArray(16, 0, 99); Location = new U2Location(); RawFile = null; if (file == null) { File = new File(); } else { File = file; } }
public Ultima3CharacterData(int offset, string name, int torches, U3Health health, int strength, int agility, int intelligence, int wisdom, U3Race race, U3Class u3class, int hitPoints, int maxHitPoints, int magicPoints, int experience, int food, int gems, int powder, int keys, U3Armor equippedArmor, U3Weapons equippedWeapon, int[] armor, int[] weapons, int gold) { Offset = offset; Name = name; Sex = U3Sex.Male; Class = u3class; Race = race; Health = health; m_hitPoints = new BoundedInt(0, 9999); HitPoints = hitPoints; m_maxHitPoints = new BoundedInt(0, 9999); MaxHitPoints = maxHitPoints; m_magicPoints = new BoundedInt(0, 99); MagicPoints = magicPoints; m_experience = new BoundedInt(0, 9999); Experience = experience; m_strength = new BoundedInt(0, 99); Strength = strength; m_agility = new BoundedInt(0, 99); Agility = agility; m_intelligence = new BoundedInt(0, 99); Intelligence = intelligence; m_wisdom = new BoundedInt(0, 99); Wisdom = wisdom; m_food = new BoundedInt(0, 9999); Food = food; m_gems = new BoundedInt(0, 99); Gems = gems; m_powder = new BoundedInt(0, 99); Powder = powder; m_keys = new BoundedInt(0, 99); Keys = keys; m_torches = new BoundedInt(0, 99); Torches = torches; m_gold = new BoundedInt(0, 9999); Gold = gold; EquippedArmor = equippedArmor; EquippedWeapon = equippedWeapon; Weapons = new BoundedIntArray(15, 0, 99); for (int i = 0; i < weapons.Length; ++i) { Weapons[i] = weapons[i]; } Armor = new BoundedIntArray(7, 0, 99); for (int i = 0; i < armor.Length; ++i) { Armor[i] = armor[i]; } }
public Ultima4Data(IFile file = null) { Characters = new Ultima4CharacterData[8]; Characters[0] = new Ultima4CharacterData(); m_numberOfCharactersInParty = 0; Spells = new BoundedIntArray(26, 0, 99); Reagents = new BoundedIntArray(8, 0, 99); Armor = new BoundedIntArray(8, 0, 99); Weapons = new BoundedIntArray(16, 0, 99); m_food = new BoundedInt(0, 9999); m_gold = new BoundedInt(0, 9999); m_torches = new BoundedInt(0, 99); m_gems = new BoundedInt(0, 99); m_keys = new BoundedInt(0, 99); m_sextants = new BoundedInt(0, 99); Skull = false; Horn = false; Wheel = false; Candle = false; Book = false; Bell = false; KeyOfLove = false; KeyOfTruth = false; KeyOfCourage = false; m_moves = new BoundedInt(0, 99999999); Location = new U4Location(); Stones = new bool[8]; Runes = new bool[8]; Virtues = new BoundedIntArray(8, 0, 99); CurrentTransportation = U4Transportation.Foot; RawFile = null; if (file == null) { File = new File(); } else { File = file; } }
public Ultima4CharacterData() { Name = ""; Sex = U4Sex.Female; Class = U4Class.Mage; Health = U4Health.Good; m_hitPoints = new BoundedInt(0, 800); m_maxHitPoints = new BoundedInt(100, 800); m_experience = new BoundedInt(0, 9999); m_strength = new BoundedInt(0, 50); m_dexterity = new BoundedInt(0, 50); m_intelligence = new BoundedInt(0, 50); m_magicPoints = new BoundedInt(0, 99); Weapon = U4Weapons.Hands; Armor = U4Armor.Skin; }
public Ultima3Data(IFile file = null) { m_X = new BoundedInt(0, 63); m_Y = new BoundedInt(0, 63); m_moves = new BoundedInt(0, 99999999); Characters = new Ultima3CharacterData[20]; Characters[0] = new Ultima3CharacterData(); m_numberOfCharactersInRoster = 0; RawFile = null; if (file == null) { File = new File(); } else { File = file; } }
public U1Location() { m_X = new BoundedInt(0, 255); m_Y = new BoundedInt(0, 255); }