Module pacai.ui.pacman.gui

Expand source code
from pacai.ui.gui import AbstractGUIView
from pacai.ui.pacman.view import PacmanAbstractView

class PacmanGUIView(PacmanAbstractView, AbstractGUIView):
    """
    A GUI view for pacman.
    """

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

Classes

class PacmanGUIView (**kwargs)

A GUI view for pacman.

Expand source code
class PacmanGUIView(PacmanAbstractView, AbstractGUIView):
    """
    A GUI view for pacman.
    """

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

Ancestors

Methods

def finish(self)

Inherited from: PacmanAbstractView.finish

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

def getKeyboard(self)

Inherited from: PacmanAbstractView.getKeyboard

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

def initialize(self, state)

Inherited from: PacmanAbstractView.initialize

Perform an initial drawing of the view.

def update(self, state, forceDraw=False)

Inherited from: PacmanAbstractView.update

Materialize the view, given a state.