Move all the interface stuff to interface.Interface
Draw three windows with frames: - map window - info window (hit point bar; turn count) - message window Clean up the UI code in the Engine.
This commit is contained in:
parent
df4df06013
commit
6780b0495c
5 changed files with 114 additions and 21 deletions
|
@ -12,7 +12,7 @@ import numpy as np
|
|||
import numpy.typing as npt
|
||||
import tcod
|
||||
|
||||
from ..geometry import Point, Size
|
||||
from ..geometry import Point, Rect, Size
|
||||
from .generator import MapGenerator
|
||||
from .tile import Empty, Shroud
|
||||
|
||||
|
@ -57,7 +57,7 @@ class Map:
|
|||
for pt in points if points:
|
||||
self.highlighted[pt.x, pt.y] = True
|
||||
|
||||
def print_to_console(self, console: tcod.Console) -> None:
|
||||
def print_to_console(self, console: tcod.Console, bounds: Rect) -> None:
|
||||
'''Render the map to the console.'''
|
||||
size = self.size
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue