Module pacai.ui.pacman.text

Expand source code
from pacai.ui.pacman.view import PacmanAbstractView
from pacai.ui.text import AbstractTextView

class PacmanTextView(PacmanAbstractView, AbstractTextView):
    """
    A text view for pacman.
    """

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

Classes

class PacmanTextView (**kwargs)

A text view for pacman.

Expand source code
class PacmanTextView(PacmanAbstractView, AbstractTextView):
    """
    A text 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.