2022-04-16 14:55:25 +02:00
|
|
|
from AgentBase import AgentBase
|
2022-03-07 22:27:34 +01:00
|
|
|
from PatchType import PatchType
|
2022-05-22 16:27:36 +02:00
|
|
|
from util.PathDefinitions import GridLocation
|
2022-03-07 22:27:34 +01:00
|
|
|
|
|
|
|
|
2022-04-16 14:55:25 +02:00
|
|
|
class PatchAgent(AgentBase):
|
2022-03-07 22:27:34 +01:00
|
|
|
|
2022-05-22 16:27:36 +02:00
|
|
|
def __init__(self, model, location: GridLocation, patch_type: PatchType):
|
|
|
|
self.location = location
|
2022-04-16 14:55:25 +02:00
|
|
|
self.patch_type = patch_type
|
|
|
|
super().__init__(model)
|
|
|
|
|
|
|
|
def creation_log(self):
|
|
|
|
print("Created Patch Agent [id: {} ,type: {}]".format(self.unique_id, self.patch_type))
|