def __init__(self, request_id, agent_id): Message.__init__(self) self.request_id_comp = IntComp() self.agent_id_comp = EntityIDComp() self.add_component(self.request_id_comp) self.add_component(self.agent_id_comp) self.set_message(request_id, agent_id)
def __init__(self): Message.__init__(self) self.request_id_comp = IntComp() self.agent_id_comp = EntityIDComp() self.world_comp = EntityListComp() self.config_comp = ConfigComp() self.add_component(self.request_id_comp) self.add_component(self.agent_id_comp) self.add_component(self.world_comp) self.add_component(self.config_comp)
class AKAcknowledge(Message): urn = 'urn:rescuecore2:messages.control:ak_acknowledge' def __init__(self, request_id, agent_id): Message.__init__(self) self.request_id_comp = IntComp() self.agent_id_comp = EntityIDComp() self.add_component(self.request_id_comp) self.add_component(self.agent_id_comp) self.set_message(request_id, agent_id) def set_message(self, request_id, agent_id): self.request_id_comp.set_value(request_id) self.agent_id_comp.set_value(agent_id)
def __init__(self): Message.__init__(self) self.agent_id = EntityIDComp() self.time = IntComp() self.updates = ChangeSetComp() self.hear = CommandListComp() self.add_component(self.agent_id) self.add_component(self.time) self.add_component(self.updates) self.add_component(self.hear)
class KAConnectOK(Message): urn = 'urn:rescuecore2:messages.control:ka_connect_ok' def __init__(self): Message.__init__(self) self.request_id_comp = IntComp() self.agent_id_comp = EntityIDComp() self.world_comp = EntityListComp() self.config_comp = ConfigComp() self.add_component(self.request_id_comp) self.add_component(self.agent_id_comp) self.add_component(self.world_comp) self.add_component(self.config_comp) def set_message(self, request_id, agent_id, entities, config): self.request_id_comp.set_value(request_id) self.agent_id_comp.set_value(agent_id) self.world_comp.set_entities(entities) self.config_comp.set_config(config)
def __init__(self): Command.__init__(self) self.target = EntityIDComp() self.add_component(self.target)
def __init__(self): Message.__init__(self) self.agent_id = EntityIDComp() self.time = IntComp() self.add_component(self.agent_id) self.add_component(self.time)