1
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
17
18 @staticmethod
19 - def addMouseListener(listener):
21
22 @staticmethod
25
26 @staticmethod
27 - def useBackground(filename):
29
30 @staticmethod
33
34 @staticmethod
35 - def setStartDirection(direction):
37
38 @staticmethod
39 - def setLocation(x, y):
41
42 @staticmethod
43 - def useObstacle(*args):
45
46 @staticmethod
47 - def useTarget(*args):
49
50 @staticmethod
51 - def useTorch(*args):
53
54 @staticmethod
55 - def useShadow(*args):
57
58 @staticmethod
61
62 @staticmethod
63 - def showStatusBar(height):
65
66 @staticmethod
67 - def setStatusText(text):
69