1
0
This commit is contained in:
Victor 2014-03-22 22:13:45 +02:00
parent 3cd0451765
commit bcf6584fc9
2 changed files with 22 additions and 0 deletions

View File

@ -22,4 +22,5 @@ public interface Constants {
public static final double GRAVITATION_ACCELERATION = 9.81; public static final double GRAVITATION_ACCELERATION = 9.81;
public static final int PLAYERS_BLOCK_COUNT = 24; public static final int PLAYERS_BLOCK_COUNT = 24;
public static final int MAX_ROUNDS = 5; public static final int MAX_ROUNDS = 5;
public static final double MAX_WIND_STRENGTH = 2.0;
} }

View File

@ -0,0 +1,21 @@
package com.annimon.turrets;
import com.annimon.turrets.util.Util;
/**
*
* @author aNNiMON
*/
public class Wind implements Constants {
private double speed;
public double getSpeed() {
return speed;
}
public void change() {
speed = Util.rand(-MAX_WIND_STRENGTH, MAX_WIND_STRENGTH);
}
}