Interface PlatformView.InputSource

Enclosing class:
PlatformView

public static interface PlatformView.InputSource
Supplies the player's input instead of the device, for a replay or a remote player.
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    next(PlatformWorld world, int local)
    The input for the next tick.
  • Method Details

    • next

      int[] next(PlatformWorld world, int local)

      The input for the next tick.

      Parameters
      • world: the world about to step
      • local: what the local devices read this tick
      Returns

      com.codename1.gaming.platformer.Input bits per actor, in the order they were added; actors with a brain ignore theirs