Package com.csse3200.game.persistence
Class UserSettings.Settings
java.lang.Object
com.csse3200.game.persistence.UserSettings.Settings
- Enclosing class:
UserSettings
Stores game settings, can be serialised/deserialised.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getFps()
float
boolean
boolean
isVsync()
void
setDisplayMode
(UserSettings.DisplaySettings displayMode) void
setFps
(int fps) void
setFullscreen
(boolean fullscreen) void
setUiScale
(float uiScale) void
setVsync
(boolean vsync)
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details
-
getFps
public int getFps() -
isFullscreen
public boolean isFullscreen() -
isVsync
public boolean isVsync() -
getUiScale
public float getUiScale() -
getDisplayMode
-
setFps
public void setFps(int fps) -
setFullscreen
public void setFullscreen(boolean fullscreen) -
setVsync
public void setVsync(boolean vsync) -
setUiScale
public void setUiScale(float uiScale) -
setDisplayMode
-