def __init__(self, serialNum, model): CogdoMemo.__init__(self, serialNum, triggerRadius=Globals.Gameplay.MemoCollisionRadius, spinRate=Globals.Gameplay.MemoSpinRate, model=model) CogdoFlyingGatherableBase.__init__(self, Globals.Level.GatherableTypes.Memo) self.floatTimer = 0.0 self.floatSpeed = 1.0 self.floatDuration = 2.0
def __init__(self, serialNum, model): CogdoMemo.__init__( self, serialNum, triggerRadius=Globals.Gameplay.MemoCollisionRadius, spinRate=Globals.Gameplay.MemoSpinRate, model=model, ) CogdoFlyingGatherableBase.__init__(self, Globals.Level.GatherableTypes.Memo) self.floatTimer = 0.0 self.floatSpeed = 1.0 self.floatDuration = 2.0
def destroy(self): CogdoFlyingGatherableBase.destroy(self) CogdoMemo.destroy(self)
def hide(self): CogdoFlyingGatherableBase.hide(self) CogdoMemo.hide(self)
def show(self): CogdoFlyingGatherableBase.show(self) CogdoMemo.show(self)
def disable(self): CogdoFlyingGatherableBase.disable(self) CogdoMemo.disable(self)
def enable(self): CogdoFlyingGatherableBase.enable(self) CogdoMemo.enable(self)
def generatePickup(self, x, y): pickup = CogdoMemo(len(self.pickups), pitch=-90) self.pickups.append(pickup) pickup.reparentTo(self.maze.maze) pickup.setPos(x, y, 1) pickup.enable()