Ejemplo n.º 1
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);
    }
Ejemplo 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.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);
    }
Ejemplo n.º 3
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);
    }