Added a MainMenuDisplay class and fixed errors in display

This commit is contained in:
eichhornchen
2020-11-10 10:01:31 +01:00
parent 10bbb28471
commit 91a8919a01
6 changed files with 62 additions and 13 deletions

View File

@ -1,4 +1,5 @@
from typing import Any
import curses
from dungeonbattle.display.display import Display
from dungeonbattle.entities.player import Player
@ -7,15 +8,14 @@ from dungeonbattle.entities.player import Player
class StatsDisplay(Display):
self.player: Player
def __init__(self, screen: Any, height: int, width: int,
def __init__(self, height: int, width: int,
topleftx: int, toplefty: int):
super().__init__(screen)
self.width = width
self.height = height
self.topleftx = topleftx
self.toplefty = toplefty
self.pad = self.newpad(height, width)
self.pad = curses.newpad(height, width)
def update_pad(self) -> None:
string = ""