commentaar setLocation
This commit is contained in:
@@ -115,11 +115,15 @@ public class Worm {
|
||||
}
|
||||
|
||||
/**
|
||||
* sets the location of the worm to the given location
|
||||
* set the location of the worm to the given location
|
||||
*
|
||||
* @param location
|
||||
*
|
||||
* the new location for the worm
|
||||
* @post the new location of the worm is equal to the given location
|
||||
* |new.getLocation() == location
|
||||
* @throws IllegalArgumentException
|
||||
* the given location is not a valid location for a worm
|
||||
* |! isValidLocation(location)
|
||||
*/
|
||||
private void setLocation(Tuple<Double, Double> location) throws IllegalArgumentException {
|
||||
|
||||
|
Reference in New Issue
Block a user