 
 (defmulti action-view :type)
 (defmethod action-view "laser"
-  [{:keys [start stop]}]
-  (laser-shot start stop))
+  [shot]
+  (laser-shot shot))
 (defmethod action-view "droid"
   [action]
   (html [:g]))


(defn parse-position [player]
  (assoc player
    :position (mapv (comp js/parseInt str/trim)
                    (str/split (:position player) ","))))

(defmulti handle-message! :message)


                    :position [12 0]}]
         :message "gamestate"}))

(defn parse-coords [coords]
  (mapv (comp js/parseInt str/trim)
        (str/split coords ",")))

(defmulti handle-action :type)

