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