Package com.csse3200.game.services
Class CodexEntry
java.lang.Object
com.csse3200.game.services.CodexEntry
Class representing a codex entry - storing all relevant data for an entry.
-
Constructor Summary
ConstructorsConstructorDescriptionCodexEntry(String title, String text) Constructor that sets the text contents of the codex. -
Method Summary
-
Constructor Details
-
CodexEntry
Constructor that sets the text contents of the codex.- Parameters:
text- A string (with formatting) for the codex entry.
-
-
Method Details
-
setUnlocked
public void setUnlocked()Set the unlocked flag to be true - use when player has unlocked entry; -
getUnlockedIndex
public int getUnlockedIndex() -
isUnlocked
public boolean isUnlocked()Get the state of the flag determining unlocked status.- Returns:
- The flag determining unlocked status.
-
getText
Get the text contents of the entry.- Returns:
- The text contents of the entry.
-
getTitle
Get the title of the entry.- Returns:
- The title of the entry.
-