Kaynağa Gözat

moved Account*.py

Dave Schuyler 21 yıl önce
ebeveyn
işleme
398186266d

+ 0 - 12
direct/src/distributed/Account.py

@@ -1,12 +0,0 @@
-"""
-Account module: stub to fulfill the Account toon.dc Distributed Class
-This is a class Roger needs for the server to be able to display these values
-appropriately in the db web interface.
-"""
-
-import DistributedObject
-
-class Account(DistributedObject.DistributedObject):
-    def __init__(self, cr):
-        pass
-

+ 0 - 25
direct/src/distributed/AccountAI.py

@@ -1,25 +0,0 @@
-"""
-Account module: stub to fulfill the Account toon.dc Distributed Class
-This is a class Roger needs for the server to be able to display these values
-appropriately in the db web interface.
-"""
-
-import DistributedObjectAI
-
-class AccountAI(DistributedObjectAI.DistributedObjectAI):
-    pirateAvatars = [0,0,0,0,0,0]
-
-    def setPirate(self, slot, avatarId):
-        assert(0) # Ask AccountUD to setPirate
-
-    def getPirate(self, slot):
-        return self.pirateAvatars[slot]
-
-    def getSlotLimit(self):
-        return 6
-
-    def may(self, perm):
-        """
-        Ask whether the account has permission to <string>.
-        """
-        return 1

+ 0 - 39
direct/src/distributed/AccountUD.py

@@ -1,39 +0,0 @@
-"""
-Account module: stub to fulfill the Account toon.dc Distributed Class
-This is a class Roger needs for the server to be able to display these values
-appropriately in the db web interface.
-"""
-
-from direct.directnotify import DirectNotifyGlobal
-import DistributedObjectAI
-
-class AccountUD(DistributedObjectAI.DistributedObjectAI):
-    if __debug__:
-        notify = DirectNotifyGlobal.directNotify.newCategory('AccountUD')
-
-    pirateAvatars = [0,0,0,0,0,0]
-
-    def __init__(self, air):
-        assert air
-        DistributedObjectAI.DistributedObjectAI.__init__(self, air)
-
-    def setPirate(self, slot, avatarId):
-        assert self.notify.debugCall()
-        self.pirateAvatars[slot] = avatarId
-        assert self.air
-        self.sendUpdate('pirateAvatars', self.pirateAvatars)
-
-    def getPirate(self, slot):
-        assert self.notify.debugCall()
-        return self.pirateAvatars[slot]
-
-    def getSlotLimit(self):
-        assert self.notify.debugCall()
-        return 6
-
-    def may(self, perm):
-        """
-        Ask whether the account has permission to <string>.
-        """
-        assert self.notify.debugCall()
-        return 1