File: cheat.py

package info (click to toggle)
gvrng 4.4-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,808 kB
  • ctags: 839
  • sloc: python: 3,107; sh: 13; makefile: 11
file content (10 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
class Cheat:
    def __call__(self, command, robot):
        if command == 'makebeeper':
            robot.world.robotBeepers += 1
        elif command == 'breakpoint':
            robot.gui.breakpoint()
        elif command in robot.gui.SleepDict.keys():
            robot.gui.setSpeed(command)
        else:
            print 'unrecognized cheat', command