示例#1
0
    def __init__(self):
        KBEngine.Proxy.__init__(self)
        BaseEntity.__init__(self)

        self.logger = LoggerManager()
        self.logger.set_user_info({"entity_id": self.id, "account_id": self.accountName,
                                   "avatar_uuid": self.uuid, "avatar_name": self.name, "avatar_user_id": self.userId})

        GameObject.__init__(self)
        iBase.__init__(self)
        iRoomOperation.__init__(self)
        iRecordOperation.__init__(self)
        iAchievement.__init__(self)
        iGroup.__init__(self)
        iRanking.__init__(self)
        iSportOperation.__init__(self)

        self.accountEntity = None
        self._destroyTimer = 0
        self.is_reconnect = False
        self.ip = '0.0.0.0'
        self.location = ""
        self.lat = ""
        self.lng = ""
        self.isBot = 1 if 'bot_' == self.accountName[:4] else 0
        self.uuid != 0 and KBEngine.globalData["GameWorld"].addPlayer2Pid(self.userId, self.uuid, self.name, self.id)
示例#2
0
	def __init__(self):
		KBEngine.Proxy.__init__(self)

		self.logger = LoggerManager()
		self.logger.set_user_info({"entity_id" : self.id, "account_id": self.accountName, 
			"avatar_uuid" : self.uuid, "avatar_name" : self.name, "avatar_user_id" : self.userId})

		GameObject.__init__(self)
		iBase.__init__(self)
		iRoomOperation.__init__(self)
		iAchievement.__init__(self)

		self.accountEntity = None
		self._destroyTimer = 0
		self.is_reconnect = False
		self.ip = '0.0.0.0'
示例#3
0
    def __init__(self):
        KBEngine.Entity.__init__(self)
        GameObject.__init__(self)
        iBase.__init__(self)
        iRoomOperation.__init__(self)
        iRecordOperation.__init__(self)
        iAchievement.__init__(self)
        iGroup.__init__(self)
        iRanking.__init__(self)
        iSportOperation.__init__(self)

        self.accountEntity = None
        self._destroyTimer = 0
        self.is_reconnect = False
        self.ip = '0.0.0.0'
        self.location = ""
        self.lat = ""
        self.lng = ""
        # DEBUG_MSG("%s[%i] %s" % (self.__class__.__name__, self.id, sys._getframe().f_code.co_name))
        return