MCPcopy Create free account
hub / github.com/SimHacker/micropolis / __init__

Method __init__

MicropolisCore/src/CellEngine/python/test.py:96–219  ·  view source on GitHub ↗
(
        self,
        drawTiles=True,
        drawTilesAlpha=1.0,
        drawPixels=False,
        drawPixelsAlpha=0.5,
        pixelTileScaleCrossfade=True,
        pixelTileScaleThresholdMin=8.0,
        pixelTileScaleThresholdMax=32.0,
        cmapFileName='cmap.png',
        cmapCount=256,
        tilesFileName='vonNeumann29Tiles.png',
        sourceTileSize=32,
        cellCols=256,
        cellRows=256,
        running=True,
        renderCol=0,
        renderRow=0,
        renderCols=256,
        renderRows=256,
        timeDelay=50,
        panX=0,
        panY=0,
        scale=32,
        cursorCol=0,
        cursorRow=0,
        config=DefaultConfiguration,
        outsideBackgroundColor=(0.5, 0.5, 0.5),
        insideBackgroundColor=(0.0, 0.0, 0.0),
        debugInset=0,
        **args)

Source from the content-addressed store, hash-verified

94
95
96 def __init__(
97 self,
98 drawTiles=True,
99 drawTilesAlpha=1.0,
100 drawPixels=False,
101 drawPixelsAlpha=0.5,
102 pixelTileScaleCrossfade=True,
103 pixelTileScaleThresholdMin=8.0,
104 pixelTileScaleThresholdMax=32.0,
105 cmapFileName='cmap.png',
106 cmapCount=256,
107 tilesFileName='vonNeumann29Tiles.png',
108 sourceTileSize=32,
109 cellCols=256,
110 cellRows=256,
111 running=True,
112 renderCol=0,
113 renderRow=0,
114 renderCols=256,
115 renderRows=256,
116 timeDelay=50,
117 panX=0,
118 panY=0,
119 scale=32,
120 cursorCol=0,
121 cursorRow=0,
122 config=DefaultConfiguration,
123 outsideBackgroundColor=(0.5, 0.5, 0.5),
124 insideBackgroundColor=(0.0, 0.0, 0.0),
125 debugInset=0,
126 **args):
127
128 gtk.DrawingArea.__init__(self, **args)
129
130 self.drawTiles = drawTiles
131 self.drawTilesAlpha = drawTilesAlpha
132 self.drawPixels = drawPixels
133 self.drawPixelsAlpha = drawPixelsAlpha
134 self.pixelTileScaleCrossfade = pixelTileScaleCrossfade
135 self.pixelTileScaleThresholdMin = pixelTileScaleThresholdMin
136 self.pixelTileScaleThresholdMax = pixelTileScaleThresholdMax
137 self.cmapFileName = cmapFileName
138 self.cmapCount = cmapCount
139 self.tilesFileName = tilesFileName
140 self.sourceTileSize = sourceTileSize
141 self.cellCols = cellCols
142 self.cellRows = cellRows
143 self.running = running
144 self.renderCol = renderCol
145 self.renderRow = renderRow
146 self.renderCols = renderCols
147 self.renderRows = renderRows
148 self.timeDelay = timeDelay
149 self.panX = panX
150 self.panY = panY
151 self.scale = scale
152 self.cursorCol = cursorCol
153 self.cursorRow = cursorRow

Callers

nothing calls this directly

Calls 3

createEngineMethod · 0.95
startTimerMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected