UpdateWorldSlumberSystem

public class UpdateWorldSlumberSystem extends TickingSystem

System for handling updateworldslumber mechanics. Systems contain game logic that operates on entities with specific component types.

java.lang.Object > TickingSystem > UpdateWorldSlumberSystem

Field Summary

world

final World world

Field world.

worldSomnolence

final WorldSomnolence worldSomnolence

Field worldSomnolence.

worldSleep

final WorldSleep worldSleep

Field worldSleep.

slumber

final WorldSlumber slumber

Field slumber.

sleepingIsOver

final boolean sleepingIsOver

Field sleepingIsOver.

timeResource

final WorldTimeResource timeResource

Field timeResource.

wakeUpTime

final Instant wakeUpTime

Field wakeUpTime.

somnolence

final PlayerSomnolence somnolence

Field somnolence.

ref

final Ref ref

Field ref.

progress

final float progress

Field progress.

totalNanos

final long totalNanos

Field totalNanos.

progressNanos

final long progressNanos

Field progressNanos.

playerRefs

final Collection playerRefs

Field playerRefs.

iterator

final Iterator iterator

Field iterator.

playerRef

final PlayerRef playerRef

Field playerRef.

sleepState

final PlayerSleep sleepState

Field sleepState.

Method Detail

tick

public void tick (final float dt, final int systemIndex, @NonNullDecl final Store store)

Method tick.

Parameters:
final float dt
final int systemIndex
@NonNullDecl final Store store

computeWakeupTime

static Instant computeWakeupTime (final WorldSlumber slumber)

Method computeWakeupTime.

Parameters:
final WorldSlumber slumber

isSomeoneAwake

static boolean isSomeoneAwake (final ComponentAccessor store)

Method isSomeoneAwake.

Parameters:
final ComponentAccessor store