Example #1
0
        private FishingSteps RunOnce()
        {
            switch (m_step)
            {
            case FishingSteps.START:
                return(FishingBoat.StartFishing());

            case FishingSteps.START_LOOP:
                return(FishingBoat.StartLoop());

            case FishingSteps.STOP:
                return(FishingBoat.StopFishing());

            case FishingSteps.STOP_LOOP:
                return(FishingBoat.StopLoop());

            case FishingSteps.GUESS_WASD:
                return(FishingBoat.GuessWasd());

            case FishingSteps.INPUT_TEXT:
                return(FishingBoat.InputText());

            case FishingSteps.TAKE_DROP:
                return(FishingBoat.TakeDrop());

            case FishingSteps.RESTART:
                return(FishingBoat.RestartFishing());
            }

            return(FishingSteps.IDLE);
        }