Class Board.Cleanup
java.lang.Object
VASSAL.build.module.map.boardPicker.Board.Cleanup
- All Implemented Interfaces:
GameComponent
- Enclosing class:
- Board
@Deprecated(since="2020-08-06",
forRemoval=true)
public static class Board.Cleanup
extends Object
implements GameComponent
Deprecated, for removal: This API element is subject to removal in a future version.
Cleans up
Board
s (by invoking Board.cleanUp()
) when a
game is closed-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version.Mark this board as needing to be cleaned up when the game is closedstatic Board.Cleanup
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.When saving a game, each GameComponent should return aCommand
that, when executed, restores the GameComponent to its state when the game was saved If this component has no persistent state, return nullstatic void
init()
Deprecated, for removal: This API element is subject to removal in a future version.void
setup(boolean gameStarting)
Deprecated, for removal: This API element is subject to removal in a future version.Notify the GameComponent that a game has started/ended
-
Method Details
-
init
public static void init()Deprecated, for removal: This API element is subject to removal in a future version. -
getInstance
Deprecated, for removal: This API element is subject to removal in a future version. -
addBoard
Deprecated, for removal: This API element is subject to removal in a future version.Mark this board as needing to be cleaned up when the game is closed- Parameters:
b
- Board
-
getRestoreCommand
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:GameComponent
When saving a game, each GameComponent should return aCommand
that, when executed, restores the GameComponent to its state when the game was saved If this component has no persistent state, return null- Specified by:
getRestoreCommand
in interfaceGameComponent
-
setup
public void setup(boolean gameStarting)Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:GameComponent
Notify the GameComponent that a game has started/ended- Specified by:
setup
in interfaceGameComponent
- Parameters:
gameStarting
- if true, a game is starting. If false, then a game is ending
-
Board
images, which is now handled automatically by the cache.