Exemplo n.º 1
0
        public static void SetStatus(EGrammarPoliceStatusType statusType, bool displayNotification, bool playSound)
        {
            switch (statusType)
            {
            case EGrammarPoliceStatusType.Available:
                Func.Available(playSound, displayNotification);
                break;

            case EGrammarPoliceStatusType.StartPatrol:
                Func.StartPatrol(playSound, displayNotification);
                break;

            case EGrammarPoliceStatusType.Busy:
                Func.Busy(playSound, displayNotification);
                break;

            case EGrammarPoliceStatusType.EnRoute:
                Callout.Accept();
                break;

            case EGrammarPoliceStatusType.OnScene:
                Func.Scene(playSound, displayNotification);
                break;

            case EGrammarPoliceStatusType.Investigation:
                Func.Investigating(playSound, displayNotification);
                break;

            case EGrammarPoliceStatusType.Emergency:
            case EGrammarPoliceStatusType.Panic:
                Func.SetPanicStatus(playSound, displayNotification);
                break;

            case EGrammarPoliceStatusType.InPursuit:
                Func.InPursit(playSound, displayNotification);
                break;

            case EGrammarPoliceStatusType.TrafficStop:
                Func.TrafficStop(playSound, displayNotification);
                break;

            case EGrammarPoliceStatusType.ReturnToStation:
                Func.ReturnToStation(playSound, displayNotification);
                break;

            default:
                Func.Busy(playSound, displayNotification);
                break;
            }
        }