UndoCommand

public class UndoCommand extends AbstractPlayerCommand

Command for und operations. Registered with the command system and callable by players.

java.lang.Object > AbstractPlayerCommand > UndoCommand

Field Summary

playerComponent

final Player playerComponent

Field playerComponent.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

Method Detail

UndoCommand

public public UndoCommand ()

Method UndoCommand.

UndoWithCountCommand

public new UndoWithCountCommand ()

Method UndoWithCountCommand.

execute

protected void execute (@Nonnull final CommandContext context, @Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef, @Nonnull final World world)

Method execute.

Parameters:
@Nonnull final CommandContext context
@Nonnull final Store store
@Nonnull final Ref ref
@Nonnull final PlayerRef playerRef
@Nonnull final World world

executeUndo

static void executeUndo (@Nonnull final Store store, @Nonnull final Ref ref, final int count)

Method executeUndo.

Parameters:
@Nonnull final Store store
@Nonnull final Ref ref
final int count