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:
com.badlogic.gdx.utils.Disposable,com.esotericsoftware.kryo.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 com.badlogic.gdx.graphics.Colorstatic final com.badlogic.gdx.graphics.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) voidcom.badlogic.gdx.utils.Array<MapEditorSystem.HistoryImprint>intgetTool()com.badlogic.gdx.utils.Array<MapEditorSystem.Tool>getTools()voidbooleanbooleanvoidvoidvoidvoidПроизвести окончательную настройку системы.voidreduceMap(MapShiftButtons.Direction direction) voidvoidsaveMap()booleanvoidsetup()Произвести начальную настройку системы.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
public static final com.badlogic.gdx.graphics.Color SELECTION_OUTLINE_COLOR -
SELECTION_FILL_COLOR
public static final com.badlogic.gdx.graphics.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:GameSystemПроизвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.- Overrides:
setupin classGameSystem
-
postSetup
public void postSetup()Description copied from class:GameSystemПроизвести окончательную настройку системы. Во время вызова, все системы загружены и установлены (setup()), все слушатели добавлены- 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 interfacecom.badlogic.gdx.utils.Disposable- Overrides:
disposein classGameSystem
-
deleteBackupFile
public static void deleteBackupFile() -
getBackUpInfo
-