Module pacai.ui.null
Classes
class AbstractNullView (**kwargs)
-
A view that does not output anything.
Expand source code
class AbstractNullView(AbstractView): """ A view that does not output anything. """ def __init__(self, **kwargs): super().__init__(**kwargs) # Override def _createFrame(self, state): # Only create frames if we are creating a gif and this is not a skip frame. if (self._saveFrames and (self._frameCount % self._skipFrames == 0)): return super()._createFrame(state) return None # Override def _drawFrame(self, state, frame, forceDraw = False): pass
Ancestors
- AbstractView
- abc.ABC
Subclasses
Methods
def finish(self)
-
Inherited from:
AbstractView
.finish
Signal that the game is over and the UI should cleanup.
def getKeyboard(self)
-
Inherited from:
AbstractView
.getKeyboard
For views that support keyboards, get an instance of a pacai.ui.keyboard.Keyboard.
def initialize(self, state)
-
Inherited from:
AbstractView
.initialize
Perform an initial drawing of the view.
def update(self, state, forceDraw=False)
-
Inherited from:
AbstractView
.update
Materialize the view, given a state.