Corrected bugs(some still remain)

This commit is contained in:
eichhornchen
2020-11-10 10:49:11 +01:00
parent 91a8919a01
commit 002de68a0a
5 changed files with 13 additions and 30 deletions

View File

@ -6,16 +6,16 @@ from dungeonbattle.display.mapdisplay import MapDisplay
from dungeonbattle.display.statsdisplay import StatsDisplay
from dungeonbattle.display.menudisplay import MenuDisplay
from dungeonbattle.interfaces import Map
from .entities.player import Player
from dungeonbattle.entities.player import Player
class Display:
map: Map
player: Player
def __init__(self, screen: Any, texture: Any):
def __init__(self, screen: Any, m: Map, texture: Any):
self.screen = screen
self.texture = texture
self.mapdisplay = MapDisplay(self.texture, curses.LINES * 4//5, curses.COLS)
self.map = m
self.mapdisplay = MapDisplay(self.map, self.texture, curses.LINES * 4//5, curses.COLS)
self.statsdisplay = StatsDisplay(curses.LINES//5, curses.COLS, curses.LINES * 4//5, 0)
def refresh(self, m : Map, p : Player) -> None: