Class CreativeSettingsAction
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.bots.actions.Action
-
- page.codeberg.terratactician_expandoria.bots.actions.CreativeSettingsAction
-
public class CreativeSettingsAction extends Action
CreativeSettings is an Action to change the abilities of the user in creative mode.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
changeInv
allow user to open inventory and change inventory contentboolean
moveCam
allows user to move the cam originboolean
placeTiles
allows user to place tilesboolean
removeTiles
allows user to remove tilesboolean
rotateCam
allows user to rotate the cam around the originboolean
showInvSlots
show inventory slotsboolean
tilePopup
allows user to open tile info / settings popup on user clickboolean
zoomCam
allows user to zoom the cam
-
Constructor Summary
Constructors Constructor Description CreativeSettingsAction()
Creates a default creative settings class.CreativeSettingsAction(boolean moveCam, boolean rotateCam, boolean zoomCam, boolean tilePopup, boolean placeTiles, boolean removeTiles, boolean changeInv, boolean showInvSlots)
Creates new creative settings class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Name of the action in the json package.boolean
isLimited()
Returns true if the action is limited in challenge mode, by the action cap.java.lang.Object
serializeData()
Serializes the data of the Action.CreativeSettingsAction
withChangeInv(boolean value)
With changed changeInv value.CreativeSettingsAction
withMoveCam(boolean value)
With changed moveCam value.CreativeSettingsAction
withPlaceTiles(boolean value)
With changed placeTiles value.CreativeSettingsAction
withRemoveTiles(boolean value)
With changed removeTiles value.CreativeSettingsAction
withRotateCam(boolean value)
With changed rotateCam value.CreativeSettingsAction
withShowInvSlots(boolean value)
With changed showInvSlots value.CreativeSettingsAction
withTilePopup(boolean value)
With changed tilePopup value.CreativeSettingsAction
withZoomCam(boolean value)
With changed zoomCam value.
-
-
-
Field Detail
-
moveCam
public boolean moveCam
allows user to move the cam origin
-
rotateCam
public boolean rotateCam
allows user to rotate the cam around the origin
-
zoomCam
public boolean zoomCam
allows user to zoom the cam
-
tilePopup
public boolean tilePopup
allows user to open tile info / settings popup on user click
-
placeTiles
public boolean placeTiles
allows user to place tiles
-
removeTiles
public boolean removeTiles
allows user to remove tiles
-
changeInv
public boolean changeInv
allow user to open inventory and change inventory content
-
showInvSlots
public boolean showInvSlots
show inventory slots
-
-
Constructor Detail
-
CreativeSettingsAction
public CreativeSettingsAction()
Creates a default creative settings class. Can be send to change the abilities of the users in creative mode.
-
CreativeSettingsAction
public CreativeSettingsAction(boolean moveCam, boolean rotateCam, boolean zoomCam, boolean tilePopup, boolean placeTiles, boolean removeTiles, boolean changeInv, boolean showInvSlots)
Creates new creative settings class. Can be send to change the abilities of the users in creative mode.- Parameters:
moveCam
- allows user to move the cam originrotateCam
- allows user to rotate the cam around the originzoomCam
- allows user to zoom the camtilePopup
- open tile info / settings popup on user clickplaceTiles
- allows user to place tilesremoveTiles
- allows user to remove tileschangeInv
- allow user to open inventory and change inventory contentshowInvSlots
- show inventory slots
-
-
Method Detail
-
withMoveCam
public CreativeSettingsAction withMoveCam(boolean value)
With changed moveCam value.- Parameters:
value
- new moveCam value- Returns:
- this
-
withRotateCam
public CreativeSettingsAction withRotateCam(boolean value)
With changed rotateCam value.- Parameters:
value
- new rotateCam value- Returns:
- this
-
withZoomCam
public CreativeSettingsAction withZoomCam(boolean value)
With changed zoomCam value.- Parameters:
value
- new zoomCam value- Returns:
- this
-
withTilePopup
public CreativeSettingsAction withTilePopup(boolean value)
With changed tilePopup value.- Parameters:
value
- new tilePopup value- Returns:
- this
-
withPlaceTiles
public CreativeSettingsAction withPlaceTiles(boolean value)
With changed placeTiles value.- Parameters:
value
- new placeTiles value- Returns:
- this
-
withRemoveTiles
public CreativeSettingsAction withRemoveTiles(boolean value)
With changed removeTiles value.- Parameters:
value
- new removeTiles value- Returns:
- this
-
withChangeInv
public CreativeSettingsAction withChangeInv(boolean value)
With changed changeInv value.- Parameters:
value
- new changeInv value- Returns:
- this
-
withShowInvSlots
public CreativeSettingsAction withShowInvSlots(boolean value)
With changed showInvSlots value.- Parameters:
value
- new showInvSlots value- Returns:
- this
-
getName
public java.lang.String getName()
Description copied from class:Action
Name of the action in the json package.
-
serializeData
public java.lang.Object serializeData()
Description copied from class:Action
Serializes the data of the Action. This may returns a JSONObject or String or an other supported datatype.- Specified by:
serializeData
in classAction
- Returns:
- JSONObject or String
-
-