Beispiel #1
0
 def __init__(self, msgBus):
     System.__init__(self, msgBus)
     self.subscriptions.extend([
         MsgType.eMsgType_SubscribeAI, MsgType.eMsgType_AddEntity,
         MsgType.eMsgType_RemoveEntity
     ])
     self.agents = []
     self.entities = []
Beispiel #2
0
 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()
Beispiel #3
0
 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)
Beispiel #5
0
    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)
Beispiel #6
0
 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
Beispiel #8
0
 def __init__(self, msgBus):
     System.__init__(self, msgBus)
Beispiel #9
0
 def __init__(self, msgBus):
     System.__init__(self, msgBus)
     self.subscriptions.extend([MsgType.eMsgType_RemoveEntity])
Beispiel #10
0
 def __init__(self, msgBus):
     System.__init__(self, msgBus)
     self.subscriptions = [MsgType.eMsgType_Debug]