Documentatie GameObject

This commit is contained in:
Leen Dereu
2018-05-23 22:27:13 +02:00
parent 9f8a250f71
commit f21a01e1d3

View File

@@ -14,11 +14,10 @@ public abstract class GameObject {
* @param world
* @param location
* @param radius
*
* @post ...
* |setWorld(world)
* @post ...
* |world.add(this)
* @post ...
* |setLocation(location)
* @post ...
* |setRadius(radius)
@@ -32,6 +31,7 @@ public abstract class GameObject {
* @param world
* @param location
* @param radius
*
* @post ...
* |setWorld(world)
* @post ...
@@ -40,6 +40,8 @@ public abstract class GameObject {
* |setLocation(location)
* @post ...
* |setRadius(radius)
*
* @throws todo?
*/
protected GameObject(World world, Coordinate location, double radius) {
if (!isValidLocation(location)) throw new IllegalArgumentException("Illegal location");