Beispiel #1
0
        protected override void InitializeSpells(ref SpellManager Spells)
        {
            Spell Q = new Spell(SpellSlot.Q, 1600f);

            Q.SetSkillshot(0.6f, 100f, float.MaxValue, false, SkillshotType.SkillshotLine);
            Q.SetCharged("XerathArcanopulseChargeUp", "XerathArcanopulseChargeUp", 750, 1550, 1.5f);

            Spell W = new Spell(SpellSlot.W, 1000f);

            W.SetSkillshot(0.7f, 200f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            Spell WCenter = new Spell(SpellSlot.W, 1000f);

            WCenter.SetSkillshot(0.7f, 50f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            Spell E = new Spell(SpellSlot.E, 1150f);

            E.SetSkillshot(0.2f, 60, 1400f, true, SkillshotType.SkillshotLine);

            Spell R = new Spell(SpellSlot.R, 2950);

            R.SetSkillshot(0.7f, 120f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            Spells.Add("Q", Q);
            Spells.Add("W", W);
            Spells.Add("WCenter", WCenter);
            Spells.Add("E", E);
            Spells.Add("R", R);
        }
Beispiel #2
0
        protected override void InitializeSpells(ref SpellManager Spells)
        {
            Spell Q = new Spell(SpellSlot.Q, 625);
            Spell W = new Spell(SpellSlot.W, 600);
            Spell E = new Spell(SpellSlot.E, 600);
            Spell R = new Spell(SpellSlot.R, 625);

            Spells.Add("Q", Q);
            Spells.Add("W", W);
            Spells.Add("E", E);
            Spells.Add("R", R);
        }
Beispiel #3
0
        protected override void InitializeSpells(ref SpellManager Spells)
        {
            Spell Q = new Spell(SpellSlot.Q, 625);
            Spell W = new Spell(SpellSlot.W, 600);
            Spell E = new Spell(SpellSlot.E, 600);
            Spell R = new Spell(SpellSlot.R, 625);

            Spells.Add("Q", Q);
            Spells.Add("W", W);
            Spells.Add("E", E);
            Spells.Add("R", R);
        }
Beispiel #4
0
 internal static void CastWait(string name, int ms, bool gotCastTime)
 {
     if (!SpellManager.SpellContains(name))
     {
         if (gotCastTime)
         {
             if (Calls.MovementIsOnly(0) || Calls.MovementIsOnly((uint)Offsets.movementFlags.Swimming))
             {
                 if (IsSpellReady(name))
                 {
                     Cast(name, gotCastTime);
                     SpellManager.Add(new Spell(name, ms));
                 }
             }
         }
         else
         {
             if (IsSpellReady(name))
             {
                 Cast(name, gotCastTime);
                 SpellManager.Add(new Spell(name, ms));
             }
         }
     }
 }
Beispiel #5
0
    public void Start(Map mapInfos)
    {
        PositionProvider pp;

        Loaded    = true;
        _mapInfos = mapInfos;
        _turn     = 0;
        Finished  = false;
        _lives    = mapInfos.Lives;
        _board.PassThroughVirus = mapInfos.passThroughtVirus;

        pp = new PositionProvider(new Vector2(0, 0), new Vector2Int(mapInfos.Rows, mapInfos.Cols), 1); // tmp

        _board.Init(pp);
        _environment.Init(pp);
        _actionQueue.Init(pp);

        _actionQueue.SetMaxAction(_lives);

        /*LINK GRAPHIC AND MAP*/

        _board.SetMap(mapInfos.Data);

        /*SPELL*/

        _spellManager = new SpellManager();
        _spellManager.Add(InputAction.Spell.ACCELERATION, new Spell(InputAction.Spell.ACCELERATION, Spell.ReloadType.COOLDOWN, mapInfos.AccelerationCD, false));
        _spellManager.Add(InputAction.Spell.DELETE_VIRUS, new Spell(InputAction.Spell.DELETE_VIRUS, Spell.ReloadType.USAGE, mapInfos.SprayUses, true));
        _spellManager.AttachDisplay(InputAction.Spell.ACCELERATION, "AccelerationSpell");
        _spellManager.AttachDisplay(InputAction.Spell.DELETE_VIRUS, "AntivirusSpraySpell");

        /*DRAW*/

        _board.Draw();
        _environment.Draw();
        _actionQueue.Draw();

        /*CAMERA*/

        PositionCamera(pp);

        /*DISPLAY*/

        _displayManager = new DisplayManager();
        _displayManager.AddText("LivesText", "Lives");
        _displayManager.Texts["Lives"].Update(_lives.ToString());
    }
Beispiel #6
0
        protected override void InitializeSpells(ref SpellManager Spells)
        {
            Spell Q = new Spell(SpellSlot.Q, 1200f);

            Q.SetSkillshot(0.25f, 40f, 1700f, false, SkillshotType.SkillshotLine);

            Spell W = new Spell(SpellSlot.W, 5500f);

            Spell E = new Spell(SpellSlot.E, 1000f);

            Spell R = new Spell(SpellSlot.R, 1200f);

            Spells.Add("Q", Q);
            Spells.Add("W", W);
            Spells.Add("E", E);
            Spells.Add("R", R);
        }
Beispiel #7
0
        protected override void InitializeSpells(ref SpellManager Spells)
        {
            Spell Q = new Spell(SpellSlot.Q, 1200);

            Q.SetSkillshot(0.25f, 60f, 2000f, true, SkillshotType.SkillshotLine);

            Spell W = new Spell(SpellSlot.W, 1050);

            W.SetSkillshot(0.25f, 80f, 1600f, false, SkillshotType.SkillshotLine);

            Spell R = new Spell(SpellSlot.R, float.MaxValue);

            R.SetSkillshot(1f, 160f, 2000f, false, SkillshotType.SkillshotLine);

            Spells.Add("Q", Q);
            Spells.Add("W", W);
            Spells.Add("R", R);
        }
Beispiel #8
0
        protected override void InitializeSpells(ref SpellManager Spells)
        {
            Spell Q = new Spell(SpellSlot.Q, 950);

            Q.SetSkillshot(0.25f, 70f, 1650f, true, SkillshotType.SkillshotLine);

            Spell W = new Spell(SpellSlot.W, 130);

            Spell E = new Spell(SpellSlot.E, 1200);

            E.SetSkillshot(0.25f, 120f, 1400f, false, SkillshotType.SkillshotLine);

            Spell R = new Spell(SpellSlot.R, 1100);

            R.SetSkillshot(1.2f, 150f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            Spells.Add("Q", Q);
            Spells.Add("W", W);
            Spells.Add("E", E);
            Spells.Add("R", R);
        }
Beispiel #9
0
        protected override void InitializeSpells(ref SpellManager Spells)
        {
            Spell Q = new Spell(SpellSlot.Q, 725);

            Spell W = new Spell(SpellSlot.W, 1500);

            W.SetSkillshot(0.6f, 60f, 3300f, true, SkillshotType.SkillshotLine);

            Spell E = new Spell(SpellSlot.E, 900f);

            E.SetSkillshot(0.85f, 40f, 1750f, false, SkillshotType.SkillshotCircle);

            Spell R = new Spell(SpellSlot.R, float.MaxValue);

            R.SetSkillshot(0.6f, 140f, 1700f, false, SkillshotType.SkillshotLine);

            Spells.Add("Q", Q);
            Spells.Add("W", W);
            Spells.Add("E", E);
            Spells.Add("R", R);
        }
Beispiel #10
0
        protected override void InitializeSpells(ref SpellManager Spells)
        {
            Spell Q = new Spell(SpellSlot.Q, 915f);

            Q.SetSkillshot(0.25f, 15f * 2 * (float)Math.PI / 180, 2000f, false, SkillshotType.SkillshotCone);

            Spell W = new Spell(SpellSlot.W, 950f);

            W.SetSkillshot(0.25f, 250f, 1650f, false, SkillshotType.SkillshotCircle);

            Spell E = new Spell(SpellSlot.E, 425f);

            Spell R = new Spell(SpellSlot.R, 1900);

            R.SetSkillshot(0.25f, 100f, 2100f, true, SkillshotType.SkillshotLine);

            Spells.Add("Q", Q);
            Spells.Add("W", W);
            Spells.Add("E", E);
            Spells.Add("R", R);
        }
Beispiel #11
0
        protected override void InitializeSpells(ref SpellManager Spells)
        {
            Spell Q = new Spell(SpellSlot.Q, 825f);

            Q.SetSkillshot(0.3f, 250f, 1125f, false, SkillshotType.SkillshotCircle);

            Spell E = new Spell(SpellSlot.E, 600f);

            E.SetSkillshot(0f, (float)Math.PI / 180f * 45f, float.MaxValue, false, SkillshotType.SkillshotCone);

            Spell R = new Spell(SpellSlot.R);

            R.SetSkillshot(0.2f, 40f, 2000f, true, SkillshotType.SkillshotLine);

            Spell RBig   = new Spell(SpellSlot.R, 1500f);
            Spell RSmall = new Spell(SpellSlot.R, 1300f);

            Spells.Add("Q", Q);
            Spells.Add("E", E);
            Spells.Add("R", R);
            Spells.Add("RBig", RBig);
            Spells.Add("RSmall", RSmall);
        }
Beispiel #12
0
        protected override void InitializeSpells(ref SpellManager Spells)
        {
            Spell Q = new Spell(SpellSlot.Q, 1200);
            Q.SetSkillshot(0.25f, 60f, 2000f, true, SkillshotType.SkillshotLine);

            Spell W = new Spell(SpellSlot.W, 1050);
            W.SetSkillshot(0.25f, 80f, 1600f, false, SkillshotType.SkillshotLine);

            Spell R = new Spell(SpellSlot.R, float.MaxValue);
            R.SetSkillshot(1f, 160f, 2000f, false, SkillshotType.SkillshotLine);

            Spells.Add("Q", Q);
            Spells.Add("W", W);
            Spells.Add("R", R);
        }
Beispiel #13
0
        protected override void InitializeSpells(ref SpellManager Spells)
        {
            Spell Q = new Spell(SpellSlot.Q, 725);

            Spell W = new Spell(SpellSlot.W, 1500);
            W.SetSkillshot(0.6f, 60f, 3300f, true, SkillshotType.SkillshotLine);

            Spell E = new Spell(SpellSlot.E, 900f);
            E.SetSkillshot(0.85f, 40f, 1750f, false, SkillshotType.SkillshotCircle);

            Spell R = new Spell(SpellSlot.R, float.MaxValue);
            R.SetSkillshot(0.6f, 140f, 1700f, false, SkillshotType.SkillshotLine);

            Spells.Add("Q", Q);
            Spells.Add("W", W);
            Spells.Add("E", E);
            Spells.Add("R", R);
        }