2019-12-30 00:07:56 -06:00
|
|
|
from .MazeBase import MazeBase
|
|
|
|
from . import MazeData
|
2019-11-02 17:27:54 -05:00
|
|
|
|
|
|
|
class Maze(MazeBase):
|
|
|
|
|
|
|
|
def __init__(self, mapName, mazeData = MazeData.mazeData, cellWidth = MazeData.CELL_WIDTH):
|
|
|
|
model = loader.loadModel(mapName)
|
|
|
|
mData = mazeData[mapName]
|
|
|
|
self.treasurePosList = mData['treasurePosList']
|
|
|
|
self.numTreasures = len(self.treasurePosList)
|
|
|
|
MazeBase.__init__(self, model, mData, cellWidth)
|