Exemplo n.º 1
0
    public List <SpellCreationSegment> CreateSpellSegs(ISpellGrid grid, float damageMod)
    {
        SpellCreationSegment seg = new SpellCreationSegment();

        seg.AddEvent(new Wait(.15f, seg));
        seg.AddEvent(new SpellEnd());

        SpellCreationSegment seg1 = new SpellCreationSegment();

        seg1.AddEvent(new Wait(.15f, seg));
        seg1.AddEvent(new SpellEnd());
        seg1.SetStartingRotation(-12);

        SpellCreationSegment seg2 = new SpellCreationSegment();

        seg2.AddEvent(new Wait(.15f, seg));
        seg2.AddEvent(new SpellEnd());
        seg2.SetStartingRotation(12);

        List <SpellCreationSegment> segs = new List <SpellCreationSegment>();

        segs.Add(seg);
        segs.Add(seg1);
        segs.Add(seg2);

        return(segs);
    }
Exemplo n.º 2
0
    public List <SpellCreationSegment> CreateSpellSegs(ISpellGrid grid, float damageMod)
    {
        List <SpellCreationSegment> segs = new List <SpellCreationSegment> ();

        for (int i = 0; i < 8; i++)
        {
            SpellCreationSegment seg = new SpellCreationSegment();
            seg.SetSpeedMod(.5f);
            seg.SetStartingRotation(i * 45);
            seg.AddEvent(new Wait(7, seg));
            seg.AddEvent(new SpellEnd());
            segs.Add(seg);
        }
        return(segs);
    }
Exemplo n.º 3
0
    public List <SpellCreationSegment> CreateSpellSegs(ISpellGrid grid, float damageMod)
    {
        List <SpellCreationSegment> segs = new List <SpellCreationSegment>();

        for (int i = 0; i < 4; i++)
        {
            SpellCreationSegment seg = new SpellCreationSegment();
            seg.SetStartingRotation((5 * i) - Random.Range(10, 40));
            seg.AddEvent(new SpellMove(Random.Range(0, 2), seg));
            seg.AddEvent(new Wait(12, seg));
            seg.AddEvent(new SpellEnd());
            segs.Add(seg);
        }
        return(segs);
    }
Exemplo n.º 4
0
    public List <SpellCreationSegment> CreateSpellSegs(ISpellGrid grid, float damageMod)
    {
        SpellCreationSegment seg = new SpellCreationSegment();

        seg.SetStartingRotation(0);
        seg.SetTurnSpeed(200);

        seg.AddEvent(new Wait(8f, seg));
        seg.AddEvent(new Turn(-160, seg));
        seg.AddEvent(new Wait(9f, seg));
        seg.AddEvent(new SpellEnd());
        List <SpellCreationSegment> segs = new List <SpellCreationSegment>();

        segs.Add(seg);
        return(segs);
    }
Exemplo n.º 5
0
    public List <SpellCreationSegment> CreateSpellSegs(ISpellGrid grid, float damageMod)
    {
        List <SpellCreationSegment> segs = new List <SpellCreationSegment> ();

        for (int i = 0; i < 8; i++)
        {
            SpellCreationSegment seg = new SpellCreationSegment();
            seg.SetStartingRotation(i * 360 / 8);
            seg.SetTurnSpeed(100);

            //seg.AddEvent(new SpellMove(1, seg));
            seg.AddEvent(new Wait(2, seg));
            seg.AddEvent(new SpeedChange(.01f, seg));
            seg.AddEvent(new Turn(90, seg));
            seg.AddEvent(new Wait(5, seg));
            seg.AddEvent(new SpeedChange(1, seg));
            seg.AddEvent(new Wait(20, seg));
            seg.AddEvent(new SpellEnd());
            segs.Add(seg);
        }
        return(segs);
    }
Exemplo n.º 6
0
    public List <SpellCreationSegment> CreateSpellSegs(ISpellGrid grid, float damageMod)
    {
        List <SpellCreationSegment> segs = new List <SpellCreationSegment>();

        for (int i = 0; i < 7; i++)
        {
            SpellCreationSegment seg = new SpellCreationSegment();

            float sign = -1;
            if (51 * i > 180)
            {
                sign = 1;
            }

            seg.SetStartingRotation(51 * i);
            seg.AddEvent(new Turn(51 * i * sign, seg));
            seg.AddEvent(new Wait(20, seg));
            seg.AddEvent(new SpellEnd());
            seg.SetTurnSpeed(300);
            segs.Add(seg);
        }
        return(segs);
    }