level: edits for python 3 support
This commit is contained in:
parent
b2d956d1a4
commit
a47d4ccd0e
4 changed files with 30 additions and 30 deletions
|
@ -19,8 +19,8 @@ def nothing(*args):
|
|||
return 'nothing'
|
||||
|
||||
|
||||
def nonlocal(*args):
|
||||
return 'nonlocal'
|
||||
def nonlocalEnt(*args):
|
||||
return 'nonlocalEnt'
|
||||
|
||||
|
||||
class EntityCreator(EntityCreatorBase.EntityCreatorBase):
|
||||
|
|
|
@ -104,7 +104,7 @@ class Level:
|
|||
Level.notify.debug('creating %s %s' % (spec['type'], entId))
|
||||
entity = self.entityCreator.createEntity(entId)
|
||||
announce = False
|
||||
if entity is 'nonlocal':
|
||||
if entity is 'nonlocalEnt':
|
||||
self.nonlocalEntIds[entId] = None
|
||||
elif entity is 'nothing':
|
||||
self.nothingEntIds[entId] = None
|
||||
|
|
|
@ -9,7 +9,7 @@ class CogdoEntityCreator(EntityCreator.EntityCreator):
|
|||
def __init__(self, level):
|
||||
EntityCreator.EntityCreator.__init__(self, level)
|
||||
nothing = EntityCreator.nothing
|
||||
nonlocal = EntityCreator.nonlocal
|
||||
nonlocalEnt = EntityCreator.nonlocalEnt
|
||||
self.privRegisterTypes({'levelMgr': CogdoLevelMgr,
|
||||
'cogdoBoardroomGameSettings': Functor(self._createCogdoSettings, CogdoBoardroomGameConsts.Settings),
|
||||
'cogdoCraneGameSettings': Functor(self._createCogdoSettings, CogdoCraneGameConsts.Settings),
|
||||
|
|
|
@ -16,40 +16,40 @@ class FactoryEntityCreator(EntityCreator.EntityCreator):
|
|||
def __init__(self, level):
|
||||
EntityCreator.EntityCreator.__init__(self, level)
|
||||
nothing = EntityCreator.nothing
|
||||
nonlocal = EntityCreator.nonlocal
|
||||
self.privRegisterTypes({'activeCell': nonlocal,
|
||||
'crusherCell': nonlocal,
|
||||
'battleBlocker': nonlocal,
|
||||
'beanBarrel': nonlocal,
|
||||
'button': nonlocal,
|
||||
nonlocalEnt = EntityCreator.nonlocalEnt
|
||||
self.privRegisterTypes({'activeCell': nonlocalEnt,
|
||||
'crusherCell': nonlocalEnt,
|
||||
'battleBlocker': nonlocalEnt,
|
||||
'beanBarrel': nonlocalEnt,
|
||||
'button': nonlocalEnt,
|
||||
'conveyorBelt': ConveyorBelt.ConveyorBelt,
|
||||
'crate': nonlocal,
|
||||
'door': nonlocal,
|
||||
'directionalCell': nonlocal,
|
||||
'gagBarrel': nonlocal,
|
||||
'crate': nonlocalEnt,
|
||||
'door': nonlocalEnt,
|
||||
'directionalCell': nonlocalEnt,
|
||||
'gagBarrel': nonlocalEnt,
|
||||
'gear': GearEntity.GearEntity,
|
||||
'goon': nonlocal,
|
||||
'gridGoon': nonlocal,
|
||||
'golfGreenGame': nonlocal,
|
||||
'goon': nonlocalEnt,
|
||||
'gridGoon': nonlocalEnt,
|
||||
'golfGreenGame': nonlocalEnt,
|
||||
'goonClipPlane': GoonClipPlane.GoonClipPlane,
|
||||
'grid': nonlocal,
|
||||
'healBarrel': nonlocal,
|
||||
'grid': nonlocalEnt,
|
||||
'healBarrel': nonlocalEnt,
|
||||
'levelMgr': FactoryLevelMgr.FactoryLevelMgr,
|
||||
'lift': nonlocal,
|
||||
'lift': nonlocalEnt,
|
||||
'mintProduct': MintProduct.MintProduct,
|
||||
'mintProductPallet': MintProductPallet.MintProductPallet,
|
||||
'mintShelf': MintShelf.MintShelf,
|
||||
'mover': nonlocal,
|
||||
'mover': nonlocalEnt,
|
||||
'paintMixer': PaintMixer.PaintMixer,
|
||||
'pathMaster': PathMasterEntity.PathMasterEntity,
|
||||
'rendering': RenderingEntity.RenderingEntity,
|
||||
'platform': PlatformEntity.PlatformEntity,
|
||||
'sinkingPlatform': nonlocal,
|
||||
'stomper': nonlocal,
|
||||
'stomperPair': nonlocal,
|
||||
'laserField': nonlocal,
|
||||
'securityCamera': nonlocal,
|
||||
'elevatorMarker': nonlocal,
|
||||
'trigger': nonlocal,
|
||||
'moleField': nonlocal,
|
||||
'maze': nonlocal})
|
||||
'sinkingPlatform': nonlocalEnt,
|
||||
'stomper': nonlocalEnt,
|
||||
'stomperPair': nonlocalEnt,
|
||||
'laserField': nonlocalEnt,
|
||||
'securityCamera': nonlocalEnt,
|
||||
'elevatorMarker': nonlocalEnt,
|
||||
'trigger': nonlocalEnt,
|
||||
'moleField': nonlocalEnt,
|
||||
'maze': nonlocalEnt})
|
||||
|
|
Loading…
Reference in a new issue