def __init__(self, msgBus): System.__init__(self, msgBus) self.subscriptions.extend([ MsgType.eMsgType_SubscribeAI, MsgType.eMsgType_AddEntity, MsgType.eMsgType_RemoveEntity ]) self.agents = [] self.entities = []
def __init__(self, msgBus): System.__init__(self, msgBus) self.subscriptions.extend([ MsgType.eMsgType_MoveEntity, MsgType.eMsgType_AddEntity, MsgType.eMsgType_RemoveEntity ]) self.entities = [] self.lastUpdated = time.time()
def __init__(self, msgBus): System.__init__(self, msgBus) self.entities = [] self.following = None self.offsetX = 0 self.offsetY = 0 self.subscriptions.extend([ MsgType.eMsgType_AddEntity, MsgType.eMsgType_RemoveEntity, MsgType.eMsgType_CameraFollowEntity ])
def __init__(self, msgBus, ip, port): System.__init__(self, msgBus) self.entities = [] self.following = None self.offsetX = 0 self.offsetY = 0 self.subscriptions.extend([MsgType.eMsgType_AddEntity, MsgType.eMsgType_RemoveEntity, MsgType.eMsgType_CameraFollowEntity]) self.ip = ip self.port = port self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
def init(self, width, height, font='assets/arial_16x16.png', name='Renderer'): System.init(self) self.width = width self.height = height # Set rendered font tdl.setFont(font) # Create console window self.window = tdl.init(self.width, self.height, name)
def init(self): System.init(self)
def init(self, width, height, font='assets/arial_16x16.png', name='Renderer'): System.init(self) self.width = width self.height = height
def __init__(self, msgBus): System.__init__(self, msgBus)
def __init__(self, msgBus): System.__init__(self, msgBus) self.subscriptions.extend([MsgType.eMsgType_RemoveEntity])
def __init__(self, msgBus): System.__init__(self, msgBus) self.subscriptions = [MsgType.eMsgType_Debug]