Add boolean entity functions

This commit is contained in:
oakes
2014-04-05 23:50:42 -04:00
parent f094a81651
commit 25895faa9b
4 changed files with 30 additions and 0 deletions

View File

@@ -14,6 +14,11 @@
[com.esotericsoftware.tablelayout Cell]
[play_clj.entities ActorEntity]))
(defn actor?
"Returns true if `entity` is one of the UI entities."
[entity]
(isa? (type entity) ActorEntity))
(defmacro drawable
"Returns a subclass of [BaseDrawable](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/BaseDrawable.html).