diff options
author | David Thompson <dthompson2@worcester.edu> | 2016-05-15 20:11:58 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2016-05-15 20:12:49 -0400 |
commit | 2fce9e80092c28b51d2d8795ca04fecb43aed277 (patch) | |
tree | 441744189ced3e8a14186f28555e0b28b13c6521 /lisparuga/stats.scm | |
parent | 4bd5d6c93f6969fd417780b92cc5d2da4d699771 (diff) |
Extract data types into their own modules.
Diffstat (limited to 'lisparuga/stats.scm')
-rw-r--r-- | lisparuga/stats.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lisparuga/stats.scm b/lisparuga/stats.scm new file mode 100644 index 0000000..3abcdef --- /dev/null +++ b/lisparuga/stats.scm @@ -0,0 +1,35 @@ +;;; Lisparuga +;;; Copyright © 2016 David Thompson <davet@gnu.org> +;;; +;;; Lisparuga is free software: you can redistribute it and/or modify +;;; it under the terms of the GNU General Public License as published +;;; by the Free Software Foundation, either version 3 of the License, +;;; or (at your option) any later version. +;;; +;;; Lisparuga is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;;; General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with Lisparuga. If not, see <http://www.gnu.org/licenses/>. + +(define-module (lisparuga stats) + #:use-module (sly records) + #:use-module (lisparuga utils) + #:export (make-stats + stats? + stats-score + stats-lives + stats-chain + stats-chain-type + stats-chain-progress)) + +(define-record-type* <stats> + %make-stats make-stats + stats? + (score stats-score 0) + (lives stats-lives 3) + (chain stats-chain 0) + (chain-type stats-chain-type #f) + (chain-progress stats-chain-progress 0)) |