Ejemplo n.º 1
0
 public override void Action(SF4Control sf4control, bool sendInputs)
 {
     sf4control.WaitFrames(frames);
     if (PlaySound)
     {
         roadie.PlaySound(Roadie.WAIT_SOUND);
     }
 }
Ejemplo n.º 2
0
        public override void Action(SF4Control sf4control, bool sendInputs)
        {
            if (sendInputs)
            {
                sf4control.Release(inputs);
            }

            if (PlaySound)
            {
                if (inputs.Intersect(Directions).Count() > 0)
                {
                    roadie.PlaySound(Roadie.RELEASE_DIRECTION_SOUND);
                }
                if (inputs.Intersect(Buttons).Count() > 0)
                {
                    roadie.PlaySound(Roadie.RELEASE_BUTTON_SOUND);
                }
            }
        }
Ejemplo n.º 3
0
        public override void Action(SF4Control sf4control, bool sendInputs)
        {
            if (sendInputs)
            {
                sf4control.Hold(inputs);
            }

            if (PlaySound)
            {
                if (inputs.Intersect(Directions).Count() > 0)
                {
                    roadie.PlaySound(Roadie.HOLD_DIRECTION_SOUND);
                }
                if (inputs.Intersect(Buttons).Count() > 0)
                {
                    roadie.PlaySound(Roadie.HOLD_BUTTON_SOUND);
                }
            }
        }
Ejemplo n.º 4
0
        public override void Action(SF4Control sf4control, bool sendInputs)
        {
            if (sendInputs)
            {
                sf4control.Press(inputs);
            }
            else
            {
                //press event waits 1 frame, if send inputs is disabled wait frame is maintained
                sf4control.WaitFrames(1);
            }

            if (PlaySound)
            {
                if (inputs.Intersect(Directions).Count() > 0)
                {
                    roadie.PlaySound(Roadie.PRESS_DIRECTION_SOUND);
                }
                if (inputs.Intersect(Buttons).Count() > 0)
                {
                    roadie.PlaySound(Roadie.PRESS_BUTTON_SOUND);
                }
            }
        }
Ejemplo n.º 5
0
 //core method of the timeline items, gets called when timeline is played
 public abstract void Action(SF4Control sf4control, bool sendInputs);
Ejemplo n.º 6
0
 public override void Action(SF4Control sf4control, bool sendInputs)
 {
     sf4control.WaitFrames(frames);
     if (PlaySound) { roadie.PlaySound(Roadie.WAIT_SOUND); }
 }
Ejemplo n.º 7
0
 //core method of the timeline items, gets called when timeline is played
 public abstract void Action(SF4Control sf4control, bool sendInputs);
Ejemplo n.º 8
0
        public override void Action(SF4Control sf4control, bool sendInputs)
        {
            if (sendInputs)
            {
                sf4control.Press(inputs);
            }
            else
            {
                //press event waits 1 frame, if send inputs is disabled wait frame is maintained
                sf4control.WaitFrames(1);
            }

            if (PlaySound)
            {
                if (inputs.Intersect(Directions).Count() > 0)
                {
                    roadie.PlaySound(Roadie.PRESS_DIRECTION_SOUND);
                }
                if (inputs.Intersect(Buttons).Count() > 0)
                {
                    roadie.PlaySound(Roadie.PRESS_BUTTON_SOUND);
                }
            }
        }