Mercurial > vba-clojure
view clojure/com/aurellem/gb/saves.clj @ 599:4503899241e6
going to render the advanced choreo.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 02 Sep 2012 09:18:43 -0500 |
parents | 3b3cd62b6106 |
children |
line wrap: on
line source
1 (ns com.aurellem.gb.saves2 (:use (com.aurellem.gb gb-driver))3 (:import [com.aurellem.gb.gb_driver SaveState]))5 (defn pre-wild-battle []6 (read-state "prepare-for-battle"))8 (defn pre-trainer-battle []9 (read-state "pre-trainer-battle"))11 (defn rlm-pallet-town []12 (read-state "rlm-pallet-town"))14 (defn talk-to-oak []15 (read-state "talk-to-oak"))17 (defn normal-conv []18 (read-state "normal-conversation"))20 (defn oak-battle []21 (read-state "oak-battle"))23 (defn crit-fight []24 (read-state "battle-rival"))26 (defn grass-edge []27 (read-state "grass' edge"))29 (defn end-oak-conv []30 (read-state "end-oak-conversation"))33 (defmacro gen-save [save-name]34 `(defn ~save-name35 ~(str "load " save-name " from disk.")36 []37 (read-state ~(str save-name))))39 (gen-save cursor-item-1)40 (gen-save cursor-item-2)41 (gen-save cursor-item-3)42 (gen-save cursor-item-4)43 (gen-save cursor-item-5)44 (gen-save cursor-item-6)46 (gen-save at-mat)