Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int getInterfaceBaseByTime() {
- double alpha = this.time / TargetManager.TARGET_SEARCH_WAIT;
- TargetScope[] scopes = TargetScope.values();
- double delta = -1;
- TargetScope scope = null;
- for (int i = 0; i < scopes.length; i++) {
- double d = scopes[i].getPercent();
- if (d < alpha && d > delta) {
- delta = d;
- scope = scopes[i];
- }
- }
- return scope.getInterfaceBase();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement