commentaar set en getLocation
This commit is contained in:
@@ -115,7 +115,11 @@ public class Worm {
|
|||||||
// region location
|
// region location
|
||||||
//===================================================================================
|
//===================================================================================
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the location of the worm
|
||||||
|
* the location of the worm expresses the place of the worm
|
||||||
|
* in the play area
|
||||||
|
*/
|
||||||
public Tuple<Double, Double> getLocation() {
|
public Tuple<Double, Double> getLocation() {
|
||||||
return this.location;
|
return this.location;
|
||||||
}
|
}
|
||||||
@@ -125,8 +129,8 @@ public class Worm {
|
|||||||
*
|
*
|
||||||
* @param location
|
* @param location
|
||||||
* the new location for the worm
|
* the new location for the worm
|
||||||
* @post the new location of the worm is equal to the given location
|
* @post the new location of the worm is equal to the given location
|
||||||
* |new.getLocation() == location
|
* |new.getLocation() == location
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* the given location is not a valid location for a worm
|
* the given location is not a valid location for a worm
|
||||||
* |! isValidLocation(location)
|
* |! isValidLocation(location)
|
||||||
|
Reference in New Issue
Block a user