Documentatie GameObject
This commit is contained in:
@@ -14,14 +14,13 @@ public abstract class GameObject {
|
||||
* @param world
|
||||
* @param location
|
||||
* @param radius
|
||||
*
|
||||
* @post ...
|
||||
* |setWorld(world)
|
||||
* |setWorld(world)
|
||||
* @post ...
|
||||
* |world.add(this)
|
||||
* |setLocation(location)
|
||||
* @post ...
|
||||
* |setLocation(location)
|
||||
* @post ...
|
||||
* |setRadius(radius)
|
||||
* |setRadius(radius)
|
||||
*/
|
||||
protected GameObject(World world, double[] location, double radius) {
|
||||
this(world, Coordinate.create(location), radius);
|
||||
@@ -32,14 +31,17 @@ public abstract class GameObject {
|
||||
* @param world
|
||||
* @param location
|
||||
* @param radius
|
||||
*
|
||||
* @post ...
|
||||
* |setWorld(world)
|
||||
* |setWorld(world)
|
||||
* @post ...
|
||||
* |world.add(this)
|
||||
* |world.add(this)
|
||||
* @post ...
|
||||
* |setLocation(location)
|
||||
* |setLocation(location)
|
||||
* @post ...
|
||||
* |setRadius(radius)
|
||||
* |setRadius(radius)
|
||||
*
|
||||
* @throws todo?
|
||||
*/
|
||||
protected GameObject(World world, Coordinate location, double radius) {
|
||||
if (!isValidLocation(location)) throw new IllegalArgumentException("Illegal location");
|
||||
|
Reference in New Issue
Block a user