コード例 #1
0
 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();
 }
コード例 #2
0
 public Vector2D getLocation() {
   if (movementBehaviour != null) return movementBehaviour.getLocation();
   return null;
 }
コード例 #3
0
 public double getY() {
   return movementBehaviour.getLocation().getY();
 }