public void update() { if (movementBehaviour != null) movementBehaviour.update(); if (collisionBehaviour != null) collisionBehaviour.update(); if (constructionBehaviour != null) constructionBehaviour.update(); if (drawingBehaviour != null) drawingBehaviour.update(); if (influenceBehaviour != null) influenceBehaviour.update(); if (offensiveBehaviour != null) offensiveBehaviour.update(); if (resourceBehaviour != null) resourceBehaviour.update(); }
public Vector2D getLocation() { if (movementBehaviour != null) return movementBehaviour.getLocation(); return null; }
public double getY() { return movementBehaviour.getLocation().getY(); }