basic display wrapper

This commit is contained in:
Nicolas Margulies
2020-11-06 15:34:24 +01:00
parent bfce9487c5
commit 31ae39ab15
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,11 @@
import curses
from .mapdisplay import MapDisplay
class Display:
def __init__(self, game, screen):
self.screen = screen
self.game = game
self.mapDisplay = MapDisplay(game.m, curses.LINES, curses.COLS * 4/5)
def refresh(self):
self.mapDisplay.refresh()