From 4198d1ae1d53b87ad0dfcc489b0e90b7f69c6b23 Mon Sep 17 00:00:00 2001 From: El-BG-1970 Date: Fri, 26 Aug 2022 09:21:14 +0200 Subject: added multipurpose panel (currently only displays player stats) --- src/game.lisp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/game.lisp') diff --git a/src/game.lisp b/src/game.lisp index 24f5581..40e201c 100644 --- a/src/game.lisp +++ b/src/game.lisp @@ -7,7 +7,8 @@ :get-profit :get-profit-in-zone :get-cur-zone - :commodities-panel)) + :commodities-panel + :player-stats)) (in-package :game) @@ -75,3 +76,9 @@ :qty quantity :profit profit))) (zone:get-commodities cur-zone)))) + +(defmethod player-stats ((g game)) + (with-slots (player) g + (list :cash (player:get-cash player) + :debt (player:get-debt player) + :inv (player:inventory-stats player)))) -- cgit v1.2.3