예제 #1
0
파일: Burn.cs 프로젝트: Czahyl/MOBA
 public Burn(Player affectedPlayer, Player Owner)
     : base(affectedPlayer, Owner)
 {
     liveTime = new Timer(5, false);
     dotDmg = 5;
     dotTime = new Timer(1, false);
 }
예제 #2
0
파일: Nameplate.cs 프로젝트: Czahyl/MOBA
        public Nameplate(Player e)
        {
            entity = e;

            rect = Main.Assets.getTexture(0).Texture;
            nameplate = Main.Assets.getTexture(7).Texture;
            nameplateFont = Main.Assets.getFont(0);
        }
예제 #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);
        }
예제 #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;
        }
예제 #5
0
파일: Autoattack.cs 프로젝트: Czahyl/MOBA
        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();
        }
예제 #6
0
파일: Fireball.cs 프로젝트: Czahyl/MOBA
        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);
        }
예제 #7
0
파일: Ability.cs 프로젝트: Czahyl/MOBA
        public Ability(Player player)
        {
            pClass = player;

            projectileList = new List<Projectile>();
        }
예제 #8
0
파일: Buff.cs 프로젝트: Czahyl/MOBA
 public Buff(Player affectedPlayer)
 {
     affectedPlr = affectedPlayer;
 }
예제 #9
0
파일: Debuff.cs 프로젝트: Czahyl/MOBA
 public Debuff(Player affectedPlayer, Player Owner)
 {
     affectedPlr = affectedPlayer;
     owner = Owner;
 }
예제 #10
0
파일: Controller.cs 프로젝트: Czahyl/MOBA
 public virtual void plugEntity(Player p)
 {
     player = p;
 }