public class SwimmingParameters
extends java.lang.Object
Constructor and Description |
---|
SwimmingParameters()
Constructor providing the default values
|
SwimmingParameters(int depthMin,
int depthMax,
double swimSpeed,
double decayRate,
int refreshRate,
boolean shouldSink)
Constructor taking all potential values that can be changed
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
float |
getDecayRate()
Gets the decay rate
|
int |
getDepthRangeEnd()
Gets the depth rate end value
|
int |
getDepthRangeStart()
Gets the depth range start value
|
int |
getRefreshRate()
Gets the refresh rate
|
float |
getSwimSpeed()
Gets the swim speed
|
boolean |
isShouldSink() |
public SwimmingParameters(int depthMin, int depthMax, double swimSpeed, double decayRate, int refreshRate, boolean shouldSink)
depthMin
- The minimum depth at which swimming can be donedepthMax
- The maximum depth at which swimming can be doneswimSpeed
- The speed at which swimming occursdecayRate
- The decay rate of swimmingrefreshRate
- The refresh rate of swimmingpublic SwimmingParameters()
public int getDepthRangeStart()
public int getDepthRangeEnd()
public float getSwimSpeed()
public float getDecayRate()
public int getRefreshRate()
public boolean isShouldSink()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object