moved getPlayerAvatars to AIRepository

This commit is contained in:
Dave Schuyler 2005-06-24 02:46:59 +00:00
parent 2cf8df05ce
commit 7e1a840167

View File

@ -1,9 +1,6 @@
#hack:
BAD_DO_ID = BAD_ZONE_ID = -1
if __debug__ and game.process != 'client':
from otp.avatar.DistributedPlayerAI import DistributedPlayerAI
class DoCollectionManager:
def __init__(self):
# Dict of {DistributedObject ids : DistributedObjects}
@ -80,11 +77,6 @@ class DoCollectionManager:
r = a
return r
if __debug__ and game.process != 'client':
def getPlayerAvatars(self):
return [i for i in simbase.air.doId2do.values()
if isinstance(i, DistributedPlayerAI)]
def countObjects(self, classType):
"""
Counts the number of objects of the given type in the