1   
 2   
 3  ''' 
 4  Dummy class to make RaspiBrick source compatible with RaspiSim. All methods are empty. 
 5  ''' 
 6   
 7   
 8  from Obstacle import Obstacle 
 9  from Target import Target 
10  from Torch import Torch 
11   
12 -class RobotContext(): 
 13      ''' 
14      Dummy class to make RaspiBrick source compatible with RaspiSim. All methods are empty. 
15      ''' 
16   
17      box = Obstacle("sprites/box.gif") 
18      channel = Obstacle("sprites/channel.gif") 
19   
22   
23      @staticmethod 
24 -    def addMouseListener(listener): 
 26   
27      @staticmethod 
30   
31      @staticmethod 
32 -    def useBackground(filename): 
 34   
35      @staticmethod 
38   
39      @staticmethod 
40 -    def setStartDirection(direction): 
 42   
43      @staticmethod 
44 -    def setLocation(x, y): 
 46   
47      @staticmethod 
48 -    def useObstacle(*args): 
 50   
51      @staticmethod 
52 -    def useTarget(*args): 
 54   
55      @staticmethod 
56 -    def useTorch(*args): 
 58   
59      @staticmethod 
60 -    def useShadow(*args): 
 62   
63      @staticmethod 
66   
67      @staticmethod 
68 -    def showStatusBar(height): 
 70   
71      @staticmethod 
72 -    def setStatusText(text): 
  74