예제 #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 = []
예제 #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()
예제 #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
     ])
예제 #4
0
	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)
예제 #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)
예제 #6
0
 def init(self):
     System.init(self)
예제 #7
0
	def init(self, width, height, font='assets/arial_16x16.png', name='Renderer'):
		System.init(self)
		self.width = width
		self.height = height
예제 #8
0
 def __init__(self, msgBus):
     System.__init__(self, msgBus)
예제 #9
0
 def __init__(self, msgBus):
     System.__init__(self, msgBus)
     self.subscriptions.extend([MsgType.eMsgType_RemoveEntity])
예제 #10
0
 def __init__(self, msgBus):
     System.__init__(self, msgBus)
     self.subscriptions = [MsgType.eMsgType_Debug]