Removed some unneeded methods.

- Removed "isImplemented" field from GameMod as all of the base mods have been implemented.
- Removed Utils.getBoundedValue() methods in preference for Utils.clamp().

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-08-30 17:56:05 -05:00
parent 31d0c237df
commit 9d19dacab4
8 changed files with 16 additions and 88 deletions

View File

@@ -105,7 +105,7 @@ public class AnimatedValue {
* @return true if an update was applied, false if the animation was not updated
*/
public boolean update(int delta) {
int newTime = Utils.getBoundedValue(time, delta, 0, duration);
int newTime = Utils.clamp(time + delta, 0, duration);
if (time != newTime) {
this.time = newTime;
updateValue();