From 380afd6598ecc8cfe6e432e60b35e254ed302f5d Mon Sep 17 00:00:00 2001 From: oakes Date: Thu, 19 Jun 2014 22:31:01 -0400 Subject: [PATCH] Revert "Allow entities to be stored in maps" This reverts commit fbb4e9f2b51a7b8f84935a9d44a643e6865a1e37. --- src/play_clj/entities.clj | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/play_clj/entities.clj b/src/play_clj/entities.clj index dc927f1..d43b9a4 100644 --- a/src/play_clj/entities.clj +++ b/src/play_clj/entities.clj @@ -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]))