Revert "Allow entities to be stored in maps"

This reverts commit fbb4e9f2b5.
This commit is contained in:
oakes
2014-06-19 22:31:01 -04:00
parent fbb4e9f2b5
commit 380afd6598

View File

@@ -11,20 +11,11 @@
(defprotocol Entity
(draw-entity! [this screen batch] "Draws the entity"))
(defn draw-map!
[m screen batch]
(doseq [[k v] m]
(try
(draw-entity! v screen batch)
(catch Exception _))))
(extend-protocol Entity
clojure.lang.PersistentArrayMap
(draw-entity! [this screen batch]
(draw-map! this screen batch))
(draw-entity! [this screen batch])
clojure.lang.PersistentHashMap
(draw-entity! [this screen batch]
(draw-map! this screen batch))
(draw-entity! [this screen batch])
nil
(draw-entity! [this screen batch]))