Package com.prineside.tdi2.systems
Class MapEditorSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.MapEditorSystem
- All Implemented Interfaces:
 Disposable,KryoSerializable
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classfinal classclassDefault behavior of the inventory - click on item slot to select, reset selection if inventory tab switchedstatic interface - 
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic final intbooleanfinal Selectionstatic final Colorstatic final ColorFields inherited from class com.prineside.tdi2.Registrable
S - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic voidvoidvoiddispose()Releases all resources of this object.voidexpandMap(MapShiftButtons.Direction direction) voidintgetTool()getTools()voidbooleanbooleanvoidvoidvoidvoidPerforms the final configuration of the system.voidreduceMap(MapShiftButtons.Direction direction) voidvoidsaveMap()booleanvoidsetup()Performs the initial configuration of the system.voidshiftMap(MapShiftButtons.Direction direction) booleanstartMap()Попробовать запустить карту.Methods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postStateRestore, profileUpdate, updateMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, read, setRegistered, setUnregistered, write 
- 
Field Details
- 
HISTORY_SIZE
public static final int HISTORY_SIZE- See Also:
 
 - 
SELECTION_OUTLINE_COLOR
 - 
SELECTION_FILL_COLOR
 - 
selection
 - 
inventoryDefaultListener
 - 
basicLevelEditor
public boolean basicLevelEditor - 
mapChanged
public boolean mapChanged - 
userMap
 - 
basicLevel
 
 - 
 - 
Constructor Details
- 
MapEditorSystem
public MapEditorSystem() 
 - 
 - 
Method Details
- 
affectsGameState
public boolean affectsGameState()- Specified by:
 affectsGameStatein classGameSystem
 - 
setup
public void setup()Description copied from class:GameSystemPerforms the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.- Overrides:
 setupin classGameSystem
 - 
postSetup
public void postSetup()Description copied from class:GameSystemPerforms the final configuration of the system. At the moment of call, all systems are already loaded and setup(), all listeners are already added.- Overrides:
 postSetupin classGameSystem
 - 
registerTool
 - 
getHoveredTile
 - 
getHoveredGate
 - 
startActionRecord
 - 
finishActionRecord
 - 
historyBack
public void historyBack() - 
hasHistoryBack
public boolean hasHistoryBack() - 
hasHistoryForward
public boolean hasHistoryForward() - 
getHistory
- Returns:
 - current history array. Last imprint may be unsealed if writing to history is in progress
 
 - 
getHistoryPointer
public int getHistoryPointer() - 
historyForward
public void historyForward() - 
getSystemName
- Specified by:
 getSystemNamein classGameSystem
 - 
selectTool
- Returns:
 - true if tool has been changed
 
 - 
getTool
 - 
getTools
 - 
notifySelectionChanged
public void notifySelectionChanged() - 
deselectAll
public void deselectAll() - 
startMap
public boolean startMap()Попробовать запустить карту. При неудаче (ошибки в карте) будет вызвано событие mapValidationFailed() - 
saveMap
public void saveMap() - 
goToPreviousScreen
public void goToPreviousScreen() - 
expandMap
 - 
reduceMap
 - 
shiftMap
 - 
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
 disposein interfaceDisposable- Overrides:
 disposein classGameSystem
 - 
deleteBackupFile
public static void deleteBackupFile() - 
getBackUpInfo
 
 -