Browse code

fix artemis utils for gwt build

devnewton authored on 23/07/2014 at 14:13:01
Showing 8 changed files
... ...
@@ -29,7 +29,6 @@ import com.artemis.Entity;
29 29
 
30 30
 import com.artemis.systems.EntityProcessingSystem;
31 31
 import im.bci.jnuit.animation.IPlay;
32
-import im.bci.jnuit.artemis.sprite.Sprite;
33 32
 
34 33
 /**
35 34
  *
... ...
@@ -31,7 +31,7 @@ import pythagoras.f.Vector3;
31 31
  * @author devnewton
32 32
  *
33 33
  */
34
-class SpriteMoveTo extends SpriteControl {
34
+public class SpriteMoveTo extends SpriteControl {
35 35
 
36 36
     private final Vector3 to;
37 37
     private final float duration;
... ...
@@ -39,7 +39,7 @@ class SpriteMoveTo extends SpriteControl {
39 39
     private Vector3 from;
40 40
     private OneShotTimedAction action;
41 41
 
42
-    SpriteMoveTo(Sprite sprite, Vector3 to, float duration) {
42
+    public SpriteMoveTo(Sprite sprite, Vector3 to, float duration) {
43 43
         this.sprite = sprite;
44 44
         this.to = to;
45 45
         this.duration = duration;
... ...
@@ -31,16 +31,16 @@ import pythagoras.f.Vector3;
31 31
  * @author devnewton
32 32
  *
33 33
  */
34
-class SpriteMoveToRelative extends SpriteControl {
34
+public class SpriteMoveToRelative extends SpriteControl {
35 35
 
36
-    private Vector3 diff;
36
+    private final Vector3 diff;
37 37
     private Vector3 to;
38 38
     private final float duration;
39 39
     private final Sprite sprite;
40 40
     private Vector3 from;
41 41
     private OneShotTimedAction action;
42 42
 
43
-    SpriteMoveToRelative(Sprite sprite, Vector3 diff, float duration) {
43
+    public SpriteMoveToRelative(Sprite sprite, Vector3 diff, float duration) {
44 44
         this.sprite = sprite;
45 45
         this.diff = diff;
46 46
         this.duration = duration;
... ...
@@ -31,7 +31,7 @@ import im.bci.jnuit.timed.OneShotTimedAction;
31 31
  * @author devnewton
32 32
  *
33 33
  */
34
-class SpriteRotateTo extends SpriteControl {
34
+public class SpriteRotateTo extends SpriteControl {
35 35
 
36 36
     private final float to;
37 37
     private final float duration;
... ...
@@ -39,7 +39,7 @@ class SpriteRotateTo extends SpriteControl {
39 39
     private float from;
40 40
     private OneShotTimedAction action;
41 41
 
42
-    SpriteRotateTo(Sprite sprite, float to, float duration) {
42
+    public SpriteRotateTo(Sprite sprite, float to, float duration) {
43 43
         this.sprite = sprite;
44 44
         this.to = to;
45 45
         this.duration = duration;
... ...
@@ -31,7 +31,7 @@ import im.bci.jnuit.timed.OneShotTimedAction;
31 31
  * @author devnewton
32 32
  *
33 33
  */
34
-class SpriteRotateToRelative extends SpriteControl {
34
+public class SpriteRotateToRelative extends SpriteControl {
35 35
 
36 36
     private float to;
37 37
     private final float duration;
... ...
@@ -40,7 +40,7 @@ class SpriteRotateToRelative extends SpriteControl {
40 40
     private OneShotTimedAction action;
41 41
     private final float angle;
42 42
 
43
-    SpriteRotateToRelative(Sprite sprite, float angle, float duration) {
43
+    public SpriteRotateToRelative(Sprite sprite, float angle, float duration) {
44 44
         this.sprite = sprite;
45 45
         this.angle = angle;
46 46
         this.duration = duration;
... ...
@@ -37,7 +37,7 @@ public class SpriteStartAnimation extends SpriteControl {
37 37
 	private IAnimation animation;
38 38
                   private PlayMode mode;
39 39
         
40
-	SpriteStartAnimation(Sprite s, IAnimation a, PlayMode m) {
40
+	public SpriteStartAnimation(Sprite s, IAnimation a, PlayMode m) {
41 41
             if(null == a) {
42 42
                 throw new IllegalArgumentException("T'es con ou quoi?");
43 43
             }
... ...
@@ -32,7 +32,7 @@ public class SpriteStopAnimation extends SpriteControl {
32 32
 
33 33
 	private Sprite sprite;
34 34
 
35
-	SpriteStopAnimation(Sprite sprite) {
35
+	public SpriteStopAnimation(Sprite sprite) {
36 36
 		this.sprite = sprite;
37 37
 	}
38 38
 
... ...
@@ -35,7 +35,7 @@ public class SpriteWaitAnimation extends SpriteControl {
35 35
 
36 36
     private final Sprite sprite;
37 37
 
38
-    SpriteWaitAnimation(Sprite sprite) {
38
+    public SpriteWaitAnimation(Sprite sprite) {
39 39
         this.sprite = sprite;
40 40
     }
41 41