Example #1
0
 public Character(string _name, Class _class, int _level, int _expToNext, int _maxHealth, int _currentHealth, 
                     int _maxMana, int _currentMana, int _money, int _strength, int _agility, int _intelligence,
                         int _speed, IDictionary<string, Ability> _abilities, ICollection<ItemStack> _inventory, Weapon _weapon,
                         Armour _chest, Armour _helm, Armour _gloves, Armour _boots, Armour _legs)
 {
     name = _name;
     charClass = _class;
     level = _level;
     expToNext = _expToNext;
     maxHealth = _maxHealth;
     currentHealth = _currentHealth;
     maxMana = _maxMana;
     currentMana = _currentMana;
     money = _money;
     strength = _strength;
     agility = _agility;
     intelligence = _intelligence;
     speed = _speed;
     type = _class.type;
     abilities = new Dictionary<string, Ability>(_abilities);
     inventory = new List<ItemStack>(_inventory);
     weapon = _weapon;
     chest = _chest;
     helm = _helm;
     gloves = _gloves;
     boots = _boots;
     legs = _legs;
     dice = new D20();
     buffs = new Effect();
 }
Example #2
0
 public Creep(string _name, int _strength, int _agility, int _intelligence, int _speed, int _maxHealth, int _currentHealth,
                 int _maxMana, int _currentMana, IDictionary<string, Ability> _abilities, ICollection<Item> _lootTable,
                 int _moneyDrop, Uri _icon)
 {
     name = _name;
     strength = _strength;
     agility = _agility;
     intelligence = _intelligence;
     speed = _speed;
     maxHealth = _maxHealth;
     currentHealth = _currentHealth;
     maxMana = _maxMana;
     currentMana = _currentMana;
     icon = _icon;
     buffs = new Effect();
     abilities = new Dictionary<string, Ability>(_abilities);
     lootTable = new List<Item>(_lootTable);
     moneyDrop = _moneyDrop;
     dice = new D20();
 }