Ejemplo n.º 1
0
Archivo: Burn.cs Proyecto: Czahyl/MOBA
 public Burn(Player affectedPlayer, Player Owner)
     : base(affectedPlayer, Owner)
 {
     liveTime = new Timer(5, false);
     dotDmg = 5;
     dotTime = new Timer(1, false);
 }
Ejemplo n.º 2
0
        public Nameplate(Player e)
        {
            entity = e;

            rect = Main.Assets.getTexture(0).Texture;
            nameplate = Main.Assets.getTexture(7).Texture;
            nameplateFont = Main.Assets.getFont(0);
        }
Ejemplo n.º 3
0
        public override void plugEntity(Player p)
        {
            base.plugEntity(p);
            player.setPosition(200, 200);
            player.light = new LightEmitter(Main.lightEngine, player.Position, 150, 0);

            if (player.isFriendly())
                Main.lightEngine.plugEmitter(player.light);
        }
Ejemplo n.º 4
0
        public override void plugEntity(Player e)
        {
            player = e;

            player.setPosition(300, 200);
            player.light = new LightEmitter(Main.lightEngine, player.Position, 150, 0);
            Main.lightEngine.plugEmitter(player.light);
            targetPos = player.Position;

            plrAbilities = player.ability;
        }
Ejemplo n.º 5
0
        public Autoattack(Vector2 startPos, Player player)
        {
            Start = startPos;
            plr = player;
            image = Main.Assets.getTexture(3);
            End = new Vector2((float)InputHandler.EventX, (float)InputHandler.EventY);

            timer = new Timer(Player.AttRange, false); // Create the live time of the projectile

            Direction = End - Start;

            angle = (float)System.Math.Atan2(Direction.Y, Direction.X);

            if (Direction != Vector2.Zero)
                Direction.Normalize();
        }
Ejemplo n.º 6
0
        public Fireball(Player player)
            : base(player)
        {
            pClass = player;

            Emitter = new LightEmitter();
            LightRadius = 35f;

            Cost = 20 * pClass.Level;

            image = Main.Assets.getTexture(3);

            Damage = pClass.SpellPower + (10 * pClass.Level);

            Speed = 10f;

            SpellRange = 1f;
            cooldown = new Timer(60, false);
        }
Ejemplo n.º 7
0
        public Ability(Player player)
        {
            pClass = player;

            projectileList = new List<Projectile>();
        }
Ejemplo n.º 8
0
Archivo: Buff.cs Proyecto: Czahyl/MOBA
 public Buff(Player affectedPlayer)
 {
     affectedPlr = affectedPlayer;
 }
Ejemplo n.º 9
0
 public Debuff(Player affectedPlayer, Player Owner)
 {
     affectedPlr = affectedPlayer;
     owner = Owner;
 }
Ejemplo n.º 10
0
 public virtual void plugEntity(Player p)
 {
     player = p;
 }