summaryrefslogtreecommitdiffstats
path: root/src/game.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.lisp')
-rw-r--r--src/game.lisp9
1 files changed, 8 insertions, 1 deletions
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))))