comparison org/world.org @ 317:bb3f8a4af87f

removed references to defvar from clojure.contrib.def since the def from 1.4 now allows for docstrings
author Robert McIntyre <rlm@mit.edu>
date Tue, 28 Feb 2012 14:04:21 -0600
parents a48a75e5876c
children 52de8a36edde
comparison
equal deleted inserted replaced
316:2c7fbcbd5ebb 317:bb3f8a4af87f
51 (ns cortex.world 51 (ns cortex.world
52 "World Creation, abstraction over jme3's input system, and REPL 52 "World Creation, abstraction over jme3's input system, and REPL
53 driven exception handling" 53 driven exception handling"
54 {:author "Robert McIntyre"} 54 {:author "Robert McIntyre"}
55 55
56 (:use (clojure.contrib (def :only (defvar defn-memo)))) 56 (:use (clojure.contrib (def :only (defn-memo))))
57 (:use [clojure.contrib [str-utils :only [re-gsub]]]) 57 (:use [clojure.contrib [str-utils :only [re-gsub]]])
58 58
59 (:import com.aurellem.capture.IsoTimer) 59 (:import com.aurellem.capture.IsoTimer)
60 60
61 (:import com.jme3.math.Vector3f) 61 (:import com.jme3.math.Vector3f)
215 jMonkeyEngine =KeyTrigger= objects, which jMonkeyEngine3 uses as it's 215 jMonkeyEngine =KeyTrigger= objects, which jMonkeyEngine3 uses as it's
216 abstraction over the physical keys. =all-keys= also adds the three 216 abstraction over the physical keys. =all-keys= also adds the three
217 mouse button controls to the map. 217 mouse button controls to the map.
218 218
219 #+begin_src clojure :exports both :results output 219 #+begin_src clojure :exports both :results output
220 (require 'clojure.contrib.pprint) 220 (clojure.pprint/pprint
221 (clojure.contrib.pprint/pprint
222 (take 6 (cortex.world/all-keys))) 221 (take 6 (cortex.world/all-keys)))
223 #+end_src 222 #+end_src
224 223
225 #+results: 224 #+results:
226 : (["key-n" #<KeyTrigger com.jme3.input.controls.KeyTrigger@9f9fec0>] 225 : (["key-n" #<KeyTrigger com.jme3.input.controls.KeyTrigger@2ad82934>]
227 : ["key-apps" #<KeyTrigger com.jme3.input.controls.KeyTrigger@28edbe7f>] 226 : ["key-apps" #<KeyTrigger com.jme3.input.controls.KeyTrigger@3c900d00>]
228 : ["key-pgup" #<KeyTrigger com.jme3.input.controls.KeyTrigger@647fd33a>] 227 : ["key-pgup" #<KeyTrigger com.jme3.input.controls.KeyTrigger@7d051157>]
229 : ["key-f8" #<KeyTrigger com.jme3.input.controls.KeyTrigger@24f97188>] 228 : ["key-f8" #<KeyTrigger com.jme3.input.controls.KeyTrigger@717f0d2d>]
230 : ["key-o" #<KeyTrigger com.jme3.input.controls.KeyTrigger@685c53ff>] 229 : ["key-o" #<KeyTrigger com.jme3.input.controls.KeyTrigger@4a555fcc>]
231 : ["key-at" #<KeyTrigger com.jme3.input.controls.KeyTrigger@4c3e2e5f>]) 230 : ["key-at" #<KeyTrigger com.jme3.input.controls.KeyTrigger@47d31aaa>])
232 231
233 ** World Creation 232 ** World Creation
234 #+name: world 233 #+name: world
235 #+begin_src clojure :results silent 234 #+begin_src clojure :results silent
236 (in-ns 'cortex.world) 235 (in-ns 'cortex.world)