@Test public void testIsMoving() { VelocityMovementBehavior behavior = new VelocityMovementBehavior(); assertThat(behavior.isMoving()).isFalse(); behavior.move(new Vector2(1.5f, 1.1f)); assertThat(behavior.isMoving()).isTrue(); }
@Override public boolean isMoving() { return velocity.len() > 0f; }
VelocityMovementBehavior extends BehaviorAdapter implements Movement<Vector2> { @Override public boolean isMoving() { return velocity.len() > 0f; } }
VelocityMovementBehavior extends BehaviorAdapter implements Movement<Vector2> { @Override public boolean isMoving() { return velocity.len() > 0f; }  }
VelocityMovementBehavior extends BehaviorAdapter implements Movement<Vector2> { @Override public boolean isMoving() { return velocity.len() > 0f; }  @Override void move(Vector2 velocity); @Override void update(GameObject source, float delta); @Override boolean isMoving(); }
VelocityMovementBehavior extends BehaviorAdapter implements Movement<Vector2> { @Override public boolean isMoving() { return velocity.len() > 0f; }  @Override void move(Vector2 velocity); @Override void update(GameObject source, float delta); @Override boolean isMoving();  }