Exemplo n.º 1
0
        //  Copy
        public Weapon(Weapon other)
            : base(other)
        {
            fCooldown = other.fCooldown;
            fDamage = other.fDamage;
            fReach = other.fReach;
            fSpeed = other.fSpeed;
            fWeight = other.fWeight;

            rHitBox = other.rHitBox;
            tHitBox = other.tHitBox;
        }
Exemplo n.º 2
0
        public static Weapon SwordBasic(ContentManager Content)
        {
            float damage = 5.0f;                                    //  How much damage the weapon does each swing
            float cooldown = 350.0f;                                //  How long between attacks (miliseconds)
            float reach = 40.0f;                                    //  How far away the weapon can hit enemies (pixels)    (32p MINIMUM!)
            int size = 40;                                           //  How big of an area the weapon will hit
            string path = "Objects/Weapons/Sword01_7Soul1";          //  Texture Path

            Weapon w = new Weapon(Content, cooldown, damage, reach, size, path);
            return w;
        }
Exemplo n.º 3
0
        public static Weapon DaggerAdv(ContentManager Content)
        {
            float damage = 3.0f;                                    //  How much damage the weapon does each swing
            float cooldown = 300.0f;                                //  How long between attacks (miliseconds)
            float reach = 40.0f;                                    //  How far away the weapon can hit enemies (pixels)
            int size = 15;                                          //  How big of an area the weapon will hit
            string path = "Objects/Weapons/Dagger02_7Soul1";        //  Texture Path

            Weapon w = new Weapon(Content, cooldown, damage, reach, size, path);
            return w;
        }