public class Target extends Object
Constructor and Description |
---|
Target(double position,
double value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(double increment)
Increments the value by the given amount
|
double |
getPosition()
Returns the position of the target
|
double |
getValue()
Returns the value of the target
|
void |
setPosition(double position)
Sets the position of the target
|
void |
setValue(double value)
Sets the value of the target
|
public Target(double position, double value)
position
- the positionvalue
- the initial valuepublic double getPosition()
public void setPosition(double position)
position
- public double getValue()
public void setValue(double value)
value
- public void addValue(double increment)
increment
- the value to addCopyright © 2013. All Rights Reserved.