Poodletooth-iLand/otp/level/ZoneEntityAI.py

13 lines
404 B
Python
Raw Normal View History

2015-11-14 13:28:53 -06:00
import ZoneEntityBase
class ZoneEntityAI(ZoneEntityBase.ZoneEntityBase):
def __init__(self, level, entId):
ZoneEntityBase.ZoneEntityBase.__init__(self, level, entId)
self.setZoneId(self.level.air.allocateZone())
def destroy(self):
if not self.isUberZone():
self.level.air.deallocateZone(self.getZoneId())
ZoneEntityBase.ZoneEntityBase.destroy(self)