getBoolean
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@780 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -75,8 +75,8 @@ public class BobbleAnimation extends Animation
|
|||||||
// calculate the latest position
|
// calculate the latest position
|
||||||
int dx = RandomUtil.getInt(_rx);
|
int dx = RandomUtil.getInt(_rx);
|
||||||
int dy = RandomUtil.getInt(_ry);
|
int dy = RandomUtil.getInt(_ry);
|
||||||
_x = _sx + dx * (RandomUtil.getChance(2) ? -1 : 1);
|
_x = _sx + dx * (RandomUtil.getBoolean() ? -1 : 1);
|
||||||
_y = _sy + dy * (RandomUtil.getChance(2) ? -1 : 1);
|
_y = _sy + dy * (RandomUtil.getBoolean() ? -1 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ public class SparkAnimation extends Animation
|
|||||||
*/
|
*/
|
||||||
protected int randomDirection ()
|
protected int randomDirection ()
|
||||||
{
|
{
|
||||||
return RandomUtil.getChance(2) ? -1 : 1;
|
return RandomUtil.getBoolean() ? -1 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user