2021-04-25 22:48:55 +02:00
|
|
|
class AgentState:
|
2021-04-28 03:02:59 +02:00
|
|
|
def __init__(self, x, y, direction):
|
2021-04-25 22:48:55 +02:00
|
|
|
self.__x = x
|
|
|
|
self.__y = y
|
|
|
|
self.__direction = direction
|
|
|
|
|
|
|
|
def get_x(self):
|
|
|
|
return self.__x
|
|
|
|
|
|
|
|
def increment_x(self, value):
|
|
|
|
self.__x += value
|
|
|
|
|
|
|
|
def set_x(self, x):
|
|
|
|
self.__x = x
|
|
|
|
|
|
|
|
def get_y(self):
|
|
|
|
return self.__y
|
|
|
|
|
|
|
|
def increment_y(self, value):
|
|
|
|
self.__y += value
|
|
|
|
|
|
|
|
def set_y(self, y):
|
|
|
|
self.__y = y
|
|
|
|
|
|
|
|
def get_direction(self):
|
|
|
|
return self.__direction
|
|
|
|
|
|
|
|
def set_direction(self, direction):
|
|
|
|
self.__direction = direction
|