summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-10-16 15:03:52 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-10-16 15:03:52 +0200
commit92c090f18da3ab23ce5b3356764fcb64f1b8a3ca (patch)
tree7058e081856f7d27043584584b76f45882b1c66a /core/src/ch
parent3e558296857c9a0fe44dafc79075e5062a3c8771 (diff)
downloadgdx-boardgame-92c090f18da3ab23ce5b3356764fcb64f1b8a3ca.zip
gdx-boardgame-92c090f18da3ab23ce5b3356764fcb64f1b8a3ca.tar.gz
animation : get() -> obtain() (avoid clash with Collection.get())
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/animations/AnimationSequence.java2
-rw-r--r--core/src/ch/asynk/gdx/boardgame/animations/BounceAnimation.java2
-rw-r--r--core/src/ch/asynk/gdx/boardgame/animations/DelayAnimation.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/animations/AnimationSequence.java b/core/src/ch/asynk/gdx/boardgame/animations/AnimationSequence.java
index 8aa6b06..0569a40 100644
--- a/core/src/ch/asynk/gdx/boardgame/animations/AnimationSequence.java
+++ b/core/src/ch/asynk/gdx/boardgame/animations/AnimationSequence.java
@@ -15,7 +15,7 @@ public class AnimationSequence implements Animation, Pool.Poolable
}
};
- public static AnimationSequence get(int capacity)
+ public static AnimationSequence obtain(int capacity)
{
AnimationSequence seq = animationSequencePool.obtain();
if (seq.animations == null) {
diff --git a/core/src/ch/asynk/gdx/boardgame/animations/BounceAnimation.java b/core/src/ch/asynk/gdx/boardgame/animations/BounceAnimation.java
index 432d0d7..17f0a53 100644
--- a/core/src/ch/asynk/gdx/boardgame/animations/BounceAnimation.java
+++ b/core/src/ch/asynk/gdx/boardgame/animations/BounceAnimation.java
@@ -17,7 +17,7 @@ public class BounceAnimation extends TimedAnimation implements Pool.Poolable
}
};
- public static BounceAnimation get(Piece piece, float duration, float bounceFactor, int rotations)
+ public static BounceAnimation obtain(Piece piece, float duration, float bounceFactor, int rotations)
{
BounceAnimation a = bounceAnimationPool.obtain();
diff --git a/core/src/ch/asynk/gdx/boardgame/animations/DelayAnimation.java b/core/src/ch/asynk/gdx/boardgame/animations/DelayAnimation.java
index 0d20cae..695a21a 100644
--- a/core/src/ch/asynk/gdx/boardgame/animations/DelayAnimation.java
+++ b/core/src/ch/asynk/gdx/boardgame/animations/DelayAnimation.java
@@ -15,7 +15,7 @@ public class DelayAnimation extends TimedAnimation implements Pool.Poolable
}
};
- public static DelayAnimation get(Drawable drawable, float duration)
+ public static DelayAnimation obtain(Drawable drawable, float duration)
{
DelayAnimation a = delayAnimationPool.obtain();