More generic display update
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
import curses
|
||||
|
||||
from ..entities.player import Player
|
||||
from ..game import Game
|
||||
from ..translations import gettext as _
|
||||
from .display import Display
|
||||
|
||||
@ -15,8 +16,8 @@ class StatsDisplay(Display):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.pad = self.newpad(self.rows, self.cols)
|
||||
|
||||
def update_player(self, p: Player) -> None:
|
||||
self.player = p
|
||||
def update(self, game: Game) -> None:
|
||||
self.player = game.player
|
||||
|
||||
def update_pad(self) -> None:
|
||||
string2 = "Player -- LVL {}\nEXP {}/{}\nHP {}/{}"\
|
||||
|
Reference in New Issue
Block a user