Module RobotContext
[hide private]
[frames] | no frames]

Source Code for Module RobotContext

 1  # RobotContext.py 
 2   
 3  from raspibrick.Obstacle import Obstacle 
 4  from raspibrick.Target import Target 
 5  from raspibrick.Torch import Torch 
6 7 -class RobotContext():
8 ''' 9 Dummy class to make RaspiBrick source compatible with RaspiSim. All methods are empty. 10 ''' 11 12 box = Obstacle("sprites/box.gif") 13 channel = Obstacle("sprites/channel.gif") 14
15 - def __init__(self):
16 pass
17 18 @staticmethod
19 - def addMouseListener(listener):
20 pass
21 22 @staticmethod
23 - def init():
24 pass
25 26 @staticmethod
27 - def useBackground(filename):
28 pass
29 30 @staticmethod
31 - def setStartPosition(x, y):
32 pass
33 34 @staticmethod
35 - def setStartDirection(direction):
36 pass
37 38 @staticmethod
39 - def setLocation(x, y):
40 pass
41 42 @staticmethod
43 - def useObstacle(*args):
44 pass
45 46 @staticmethod
47 - def useTarget(*args):
48 pass
49 50 @staticmethod
51 - def useTorch(*args):
52 pass
53 54 @staticmethod
55 - def useShadow(*args):
56 pass
57 58 @staticmethod
59 - def showNavigationBar(*args):
60 pass
61 62 @staticmethod
63 - def showStatusBar(height):
64 pass
65 66 @staticmethod
67 - def setStatusText(text):
68 pass
69