def removePlayerFriend(self, id):
     PlayerFriendsManager.removePlayerFriend(self, id)
     self.playerId2ShipState.pop(id, None)
     shipId = self.playerId2ShipId.get(id, 0)
     if shipId:
         self.shipId2ShipState.pop(id, None)
     
     self.playerId2ShipId.pop(id, None)
Exemplo n.º 2
0
    def removePlayerFriend(self, id):
        PlayerFriendsManager.removePlayerFriend(self, id)
        self.playerId2ShipState.pop(id, None)
        shipId = self.playerId2ShipId.get(id, 0)
        if shipId:
            self.shipId2ShipState.pop(id, None)

        self.playerId2ShipId.pop(id, None)
 def __init__(self, cr):
     PlayerFriendsManager.__init__(self, cr)
 def updatePlayerFriend(self, id, info, isNewFriend):
     pcinfo = PCFriendPlayerInfo.makeFromFriendInfo(info)
     PlayerFriendsManager.updatePlayerFriend(self, id, pcinfo, isNewFriend)
 def __init__(self, cr):
     PlayerFriendsManager.__init__(self, cr)
     self.playerId2ShipState = { }
     self.playerId2ShipId = { }
     self.shipId2ShipState = { }
Exemplo n.º 6
0
 def __init__(self, cr):
     PlayerFriendsManager.__init__(self, cr)
Exemplo n.º 7
0
 def __init__(self, cr):
     assert self.notify.debugCall()
     PlayerFriendsManager.__init__(self,cr)
Exemplo n.º 8
0
 def updatePlayerFriend(self, id, info, isNewFriend):
     pcinfo = PCFriendPlayerInfo.makeFromFriendInfo(info)
     PlayerFriendsManager.updatePlayerFriend(self, id, pcinfo, isNewFriend)
Exemplo n.º 9
0
 def __init__(self, cr):
     PlayerFriendsManager.__init__(self, cr)
     self.playerId2ShipState = {}
     self.playerId2ShipId = {}
     self.shipId2ShipState = {}