From c60abc6a96f4e8a9539d9b86e970e34e8fadd1c3 Mon Sep 17 00:00:00 2001 From: oakes Date: Sat, 19 Apr 2014 20:57:45 -0400 Subject: [PATCH] Target Java 6 and fix a few docstrings --- project.clj | 3 ++- src/play_clj/g2d_physics.clj | 5 ++++- src/play_clj/g3d_physics.clj | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/project.clj b/project.clj index f540b1b..7cc28a8 100644 --- a/project.clj +++ b/project.clj @@ -10,4 +10,5 @@ :repositories [["sonatype" "https://oss.sonatype.org/content/repositories/snapshots/"]] :source-paths ["src"] - :java-source-paths ["src-java"]) + :java-source-paths ["src-java"] + :javac-options ["-target" "1.6" "-source" "1.6" "-Xlint:-options"]) diff --git a/src/play_clj/g2d_physics.clj b/src/play_clj/g2d_physics.clj index d2d232a..b095584 100644 --- a/src/play_clj/g2d_physics.clj +++ b/src/play_clj/g2d_physics.clj @@ -53,7 +53,10 @@ (u/call! object# ~k ~@options))) (defn add-body! - "Adds the `body` to the `screen` for physics simulations and returns it." + "Creates a body from the `b-def`, adds it to the `screen` for physics +simulations and returns it. + + (add-body! screen (body-def :dynamic))" [screen b-def] (box-2d! screen :create-body b-def)) diff --git a/src/play_clj/g3d_physics.clj b/src/play_clj/g3d_physics.clj index 921ce3f..14005df 100644 --- a/src/play_clj/g3d_physics.clj +++ b/src/play_clj/g3d_physics.clj @@ -125,7 +125,9 @@ (btSoftBodyWorldInfo.)) (defn add-body! - "Adds the `body` to the `screen` for physics simulations and returns it." + "Adds the `body` to the `screen` for physics simulations and returns it. + + (add-body! screen (rigid-body info))" [screen body] (cond (isa? (type (:object body)) btRigidBody)