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
Boards (by invoking Board.cleanUp()) when a
game is closed-
Method Summary
Modifier and Type Method Description voidaddBoard(Board b)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.CleanupgetInstance()Deprecated, for removal: This API element is subject to removal in a future version.CommandgetRestoreCommand()Deprecated, for removal: This API element is subject to removal in a future version.When saving a game, each GameComponent should return aCommandthat, when executed, restores the GameComponent to its state when the game was saved If this component has no persistent state, return nullstatic voidinit()Deprecated, for removal: This API element is subject to removal in a future version.voidsetup(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:GameComponentWhen saving a game, each GameComponent should return aCommandthat, when executed, restores the GameComponent to its state when the game was saved If this component has no persistent state, return null- Specified by:
getRestoreCommandin 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:GameComponentNotify the GameComponent that a game has started/ended- Specified by:
setupin interfaceGameComponent- Parameters:
gameStarting- if true, a game is starting. If false, then a game is ending
-
Boardimages, which is now handled automatically by the cache.