Module pacai.ui.pacman.null

Expand source code
from pacai.ui.null import AbstractNullView
from pacai.ui.pacman.view import PacmanAbstractView

class PacmanNullView(AbstractNullView, PacmanAbstractView):
    """
    A null view for pacman.
    """

    def __init__(self, **kwargs):
        super().__init__(**kwargs)

Classes

class PacmanNullView (**kwargs)

A null view for pacman.

Expand source code
class PacmanNullView(AbstractNullView, PacmanAbstractView):
    """
    A null view for pacman.
    """

    def __init__(self, **kwargs):
        super().__init__(**kwargs)

Ancestors

Methods

def finish(self)

Inherited from: AbstractNullView.finish

Signal that the game is over and the UI should cleanup.

def getKeyboard(self)

Inherited from: AbstractNullView.getKeyboard

For views that support keyboards, get an instance of a pacai.ui.keyboard.Keyboard.

def initialize(self, state)

Inherited from: AbstractNullView.initialize

Perform an initial drawing of the view.

def update(self, state, forceDraw=False)

Inherited from: AbstractNullView.update

Materialize the view, given a state.