squirrel-battle/dungeonbattle/display/display.py

16 lines
376 B
Python
Raw Normal View History

2020-11-06 14:34:24 +00:00
import curses
2020-11-06 20:15:09 +00:00
from typing import Any
2020-11-06 14:34:24 +00:00
class Display:
2020-11-08 21:59:11 +00:00
def __init__(self, screen: Any):
2020-11-06 14:34:24 +00:00
self.screen = screen
2020-11-08 21:59:11 +00:00
self.rows = curses.LINES if screen else 4
self.cols = curses.COLS * 4 // 5 if screen else 4
2020-11-06 16:43:30 +00:00
2020-11-06 20:15:09 +00:00
def refresh(self) -> None:
2020-11-08 21:59:11 +00:00
raise NotImplementedError
2020-11-06 19:24:19 +00:00
2020-11-06 20:15:09 +00:00
def display(self, y: int, x: int) -> None:
2020-11-08 21:59:11 +00:00
raise NotImplementedError