Ejemplo n.º 1
0
 public Weapon(int id, WeaponType type, string name, Rectangle sprite)
 {
     Id = id;
     Type = type;
     Name = name;
     Sprite = sprite;
 }
Ejemplo n.º 2
0
        public WeaponPackage()
        {
            // Types
            Types = new WeaponType[10];
            Types[0] = new WeaponType("Sword", true);
            Types[1] = new WeaponType("Axe", true);
            Types[2] = new WeaponType("Bow", true);
            Types[3] = new WeaponType("Arrow", false);
            Types[4] = new WeaponType("Fireball", false);

            // Weapons
            Weapons = new Weapon[10];

            // Live Weapons
            LiveWeapons = new List<dynamic>();
        }