Exemple #1
0
    private void execute(Command command)
    {
        switch (Command.DictActions[command.getAction()].typeAction)
        {
        case TypeAction.Interaction:
            atCommand = command;
            aI.sendCommand(command);
            break;

        case TypeAction.Movementation:
            atCommand = command;
            aM.sendCommand(command);
            break;

        case TypeAction.HeadFocusing:
            atCommand = command;
            hM.sendCommand(command);
            break;

        case TypeAction.Communication:
            atCommand = command;
            sp.sendCommand(command);
            break;

        case TypeAction.Operational:
            //This Script will take care of this
            doTask(command);
            break;

        default:
            break;
        }
    }
Exemple #2
0
    private void execute(Command command)
    {
        atCommand = command;
        switch (Command.DictActions[command.getAction()].typeAction)
        {
        case TypeAction.Interaction:
            aI.sendCommand(command);
            break;

        case TypeAction.Communication:
            speech.sendCommand(command);
            break;

        default:
            break;
        }
    }