blob: 13621bc20671eb716aabce9733aefc0ed0c34eae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package ch.asynk.gdx.boardgame.animations;
import com.badlogic.gdx.utils.Pool;
public class DelayAnimation extends TimedAnimation implements Pool.Poolable
{
private static final Pool<DelayAnimation> delayAnimationPool = new Pool<DelayAnimation>()
{
@Override protected DelayAnimation newObject()
{
return new DelayAnimation();
}
};
public static DelayAnimation obtain(float duration)
{
DelayAnimation a = delayAnimationPool.obtain();
a.setDuration(duration);
return a;
}
private DelayAnimation()
{
}
@Override public void reset()
{
super.reset();
}
@Override public void dispose()
{
delayAnimationPool.free(this);
}
@Override protected void begin() { }
@Override protected void end() { }
@Override protected void update(float delta) { }
}
|