Example #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 = []
Example #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()
Example #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)
Example #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)
Example #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
Example #8
0
 def __init__(self, msgBus):
     System.__init__(self, msgBus)
Example #9
0
 def __init__(self, msgBus):
     System.__init__(self, msgBus)
     self.subscriptions.extend([MsgType.eMsgType_RemoveEntity])
Example #10
0
 def __init__(self, msgBus):
     System.__init__(self, msgBus)
     self.subscriptions = [MsgType.eMsgType_Debug]