diff options
| author | El-BG-1970 <elouan.gros.fr@gmail.com> | 2022-07-27 17:50:07 +0200 |
|---|---|---|
| committer | El-BG-1970 <elouan.gros.fr@gmail.com> | 2022-07-27 17:50:07 +0200 |
| commit | bf191a6f96f19adc74879bc543da3a7027c498da (patch) | |
| tree | d493855e8af162f130938d4f2f54a159aef2555d /src/game.lisp | |
| download | transacc-bf191a6f96f19adc74879bc543da3a7027c498da.tar.gz | |
first commit
Diffstat (limited to 'src/game.lisp')
| -rw-r--r-- | src/game.lisp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/game.lisp b/src/game.lisp new file mode 100644 index 0000000..7c2cbbb --- /dev/null +++ b/src/game.lisp @@ -0,0 +1,19 @@ +(defpackage game + (:use :cl) + (:export :new-game)) + +(in-package :game) + +(defclass game () + ((player :initarg player + :accessor player) + (zones :initarg zones + :accessor zones) + (curzone :initarg start-zone + :accessor cur-zone))) + +(defun new-game (player zones start-zone) + (make-instance 'game + :player player + :zones zones + :start-zone start-zone)) |
