Example #1
0
    internal override bool GetInput(MoverCommand command)
    {
        switch (command)
        {
        case MoverCommand.DROP:
            return(justDropped);

        case MoverCommand.CW:
            return(justCWed);

        case MoverCommand.CCW:
            return(justCCWed);

        case MoverCommand.LEFT:
            return(isPressingLeft);

        case MoverCommand.RIGHT:
            return(isPressingRight);

        case MoverCommand.UP:
            return(isPressingUp);

        case MoverCommand.DOWN:
            return(isPressingDown);

        case MoverCommand.REBOOT:
            return(justRebooted);
        }
        return(false);
    }
Example #2
0
    internal override bool GetInput(MoverCommand command)
    {
        switch (command)
        {
        case MoverCommand.DROP:
            return(returnJustDropped);

        case MoverCommand.CW:
            return(returnJustCWed);

        case MoverCommand.CCW:
            return(returnJustCCWed);

        case MoverCommand.LEFT:
            return(returnJustLefted);

        case MoverCommand.RIGHT:
            return(returnJustRighted);

        case MoverCommand.UP:
            return(returnJustUpped);

        case MoverCommand.DOWN:
            return(returnJustDowned);

        case MoverCommand.REBOOT:
            return(returnJustRebooted);
        }
        return(false);
    }
 internal override bool GetInput(MoverCommand command)
 {
     return(base.GetInput(command));
 }
Example #4
0
 internal abstract bool GetInput(MoverCommand command);