Module hanyaeger

Interface Updatable

All Known Subinterfaces:
UpdateDelegator
All Known Implementing Classes:
DynamicCircleEntity, DynamicCompositeEntity, DynamicEllipseEntity, DynamicRectangleEntity, DynamicScene, DynamicSpriteEntity, DynamicTextEntity, ScrollableDynamicScene, SplashScene, SpriteAnimationDelegate, Updater
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Updatable
Implement this interface to be updated every cycle of the game loop.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(long timestamp)
    The update() method is called each frame.
  • Method Details

    • update

      void update(long timestamp)
      The update() method is called each frame.

      Use this method to init frame-based behaviour to the game-object.

      Parameters:
      timestamp - the timestamp of this update