Skip to content

Renderers module

Provide classes for visual and state rendering.

This module allows the creation of UI rendering.

The module contains the following class: - Renderer

Renderer

Abstract class for the creation of visual and state rendering. Extends as metaclass, abc.ABCMeta.

Methods:

Name Description
def render

GameState) -> None: Render the current game state.

Source code in src\backend\game\renderers.py
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Renderer(metaclass=abc.ABCMeta):
    """Abstract class for the creation of visual and state rendering. Extends as
        metaclass, abc.ABCMeta.

    Methods:
        def render(self, game_state: GameState) -> None:
            Render the current game state.
    """
    @abc.abstractmethod
    def render(self, game_state: GameState) -> None:
        """Render the current game state."""

    def placerholder(self) -> None:
        """Render the current game state."""

placerholder()

Render the current game state.

Source code in src\backend\game\renderers.py
24
25
def placerholder(self) -> None:
    """Render the current game state."""

render(game_state) abstractmethod

Render the current game state.

Source code in src\backend\game\renderers.py
20
21
22
@abc.abstractmethod
def render(self, game_state: GameState) -> None:
    """Render the current game state."""