-
Notifications
You must be signed in to change notification settings - Fork 1
/
mission_data.py
36 lines (34 loc) · 976 Bytes
/
mission_data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'''
Module with class that holds all variables and data for the mission
'''
class MissionStationData:
'''Class to handle global varaibles easily'''
def __init__(self, station_xb):
self.dock_num = 0
self.map_data = {
'height': 0,
'width': 0,
'obstacles': [], #tuple array
'boat_x': 0,
'boat_y': 0,
'can_x': 0,
'can_y': 0,
},
self.received_dock_img = False
self.station_xb = station_xb
class MissionBoatData:
'''Class to handle global varaibles easily'''
def __init__(self, boat_xb):
self.dock_num = 0
self.map_data = {
'height': 0,
'width': 0,
'obstacles': [], #tuple array
'boat_x': 0,
'boat_y': 0,
'can_x': 0,
'can_y': 0,
},
self.received_dock_img = False
self.boat_xb = boat_xb
self.exit_nav = False