added three methods

This commit is contained in:
Dave Schuyler 2005-03-19 00:40:15 +00:00
parent c6880c0ff8
commit 70a94646f7

View File

@ -12,3 +12,15 @@ class AccountAI(DistributedObjectAI.DistributedObjectAI):
def setPirate(self, slot, avatarId):
self.pirateAvatars[slot] = avatarId
self.sendUpdate('pirateAvatars', self.pirateAvatars)
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