2019-12-30 00:00:16 -06:00
|
|
|
from . import ZoneEntityBase
|
2019-11-02 17:27:54 -05:00
|
|
|
|
|
|
|
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)
|