public class RangeBlockerUtil
extends java.lang.Object
Constructor and Description |
---|
RangeBlockerUtil(int resolution,
float maxRange) |
Modifier and Type | Method and Description |
---|---|
void |
advance(float amount,
float minApproachSpeed,
float diffMult) |
void |
block(float angle,
float arc,
float limit) |
float |
getAlphaAt(float angle) |
float |
getCurrMaxAt(float angle) |
int |
getIndexForAngle(float angle) |
float |
getMaxRange() |
float |
getShortenAmountAt(float angle) |
boolean |
isAnythingShortened() |
void |
sync() |
void |
updateAndSync(SectorEntityToken entity,
SectorEntityToken exclude,
float diffMult) |
void |
updateLimits(SectorEntityToken entity,
SectorEntityToken exclude,
float diffMult) |
boolean |
wasEverUpdated() |
public boolean wasEverUpdated()
public void updateAndSync(SectorEntityToken entity, SectorEntityToken exclude, float diffMult)
public void sync()
public float getShortenAmountAt(float angle)
public float getCurrMaxAt(float angle)
public float getAlphaAt(float angle)
public void advance(float amount, float minApproachSpeed, float diffMult)
public void updateLimits(SectorEntityToken entity, SectorEntityToken exclude, float diffMult)
public void block(float angle, float arc, float limit)
public int getIndexForAngle(float angle)
public boolean isAnythingShortened()
public float getMaxRange()
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.