Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractBaseController - Class in edu.ntnu.idatt2001.paths.controllers
-
An abstract controller that has common methods for all controllers.
- AbstractBaseController() - Constructor for class edu.ntnu.idatt2001.paths.controllers.AbstractBaseController
- Action<T> - Interface in edu.ntnu.idatt2001.paths.models.actions
-
Action interface.
- ACTION - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.RegexEnum
-
Action.
- ActionTypeEnum - Enum Class in edu.ntnu.idatt2001.paths.models.actions
-
Enum for the different types of actions.
- addAction(Action<?>) - Method in class edu.ntnu.idatt2001.paths.models.Link
-
Adds an action to the list of actions
- addBackToMainButton(BaseController) - Method in class edu.ntnu.idatt2001.paths.views.components.BaseGridPane
-
Adds a back button to the grid pane.
- addGoalField(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterController
- addGoalField(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterControllerImpl
-
Adds new field inputs for a new goal to the pane.
- addGold(int) - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Adds a number to the player's gold count.
- addHealth(int) - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Adds a number to the player's health.
- addLink(Link) - Method in class edu.ntnu.idatt2001.paths.models.Passage
-
Adds a link to the list of links for the passage Checks if the link is already in the list of links Returns true if the link was successfully added, false if not
- addLinkAction(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- addLinkAction(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Adds a new action form to the link action container which is empty
- addPassage(Passage) - Method in class edu.ntnu.idatt2001.paths.models.Story
-
Adds a passage to the story.
- addPassageNodeToDiagram(DragResizePassageNode) - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.StoryEditorPane
-
Creates a new button for creating a new passage
- addPlayerChangeListener(PlayerChangeListener) - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Adds a player change listener to the player This listener will be notified when the player changes
- addScore(int) - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Adds a number to the player's score.
- addToInventory(String) - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Adds an element to the player's inventory Trims and converts to lowercase before adding as inventory is stored in lowercase
- App - Class in edu.ntnu.idatt2001.paths.views
-
The class App which starts the application window.
- App() - Constructor for class edu.ntnu.idatt2001.paths.views.App
B
- BadFileNameException - Exception Class in edu.ntnu.idatt2001.paths.exceptions
-
Thrown if a file name is invalid.
- BadFileNameException() - Constructor for exception class edu.ntnu.idatt2001.paths.exceptions.BadFileNameException
-
Constructor for the a wrong file extension exception.
- BadFileNameException(String) - Constructor for exception class edu.ntnu.idatt2001.paths.exceptions.BadFileNameException
-
Constructor for the a wrong file extension exception.
- BaseController - Interface in edu.ntnu.idatt2001.paths.controllers
-
An interface that has common methods for all controllers.
- BaseGridPane - Class in edu.ntnu.idatt2001.paths.views.components
-
Abstract class for creating a grid pane with the ability to add a back button and a title.
- BaseGridPane() - Constructor for class edu.ntnu.idatt2001.paths.views.components.BaseGridPane
-
Creates a new BaseGridPane.
- begin() - Method in class edu.ntnu.idatt2001.paths.models.game.Game
-
Begins the game by retrieving the first passage in the story.
- BLUE - Enum constant in enum class edu.ntnu.idatt2001.paths.views.ColorEnum
-
Color for blue.
- BODY - Enum constant in enum class edu.ntnu.idatt2001.paths.views.FontEnum
-
A font for body text.
- build() - Method in class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Method to build a player object.
- BUTTON - Enum constant in enum class edu.ntnu.idatt2001.paths.views.FontEnum
-
A font for button text.
- ButtonComponent - Class in edu.ntnu.idatt2001.paths.views.components
-
A button component for creating buttons with the same style throughout the application.
- ButtonComponent() - Constructor for class edu.ntnu.idatt2001.paths.views.components.ButtonComponent
C
- CENTER_CORNER_OFFSET - Static variable in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
- changeRootPane(Pane) - Static method in class edu.ntnu.idatt2001.paths.views.App
-
Set the scene of the application
- ChoiceBoxOption<T> - Class in edu.ntnu.idatt2001.paths.views
-
A class that represents an option in a
ChoiceBox
. - ChoiceBoxOption(String, T) - Constructor for class edu.ntnu.idatt2001.paths.views.ChoiceBoxOption
-
Creates a new ChoiceBoxOption with the given display string and value.
- ClickLinkEvent - Class in edu.ntnu.idatt2001.paths.views.storyplayer
-
This class is an event that is fired when a link is clicked.
- ClickLinkEvent(Link) - Constructor for class edu.ntnu.idatt2001.paths.views.storyplayer.ClickLinkEvent
-
Creates a new click link event.
- COLLECTION_CONTAINS_BLANK - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a collection of strings contains a blank string.
- COLLECTION_CONTAINS_NULL - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a collection contains null values
- COLLECTION_IS_EMPTY - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a collection is empty
- COLLECTION_IS_NULL - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a collection is null
- ColorEnum - Enum Class in edu.ntnu.idatt2001.paths.views
-
An enum with different standard colors to use throughout the application.
- CONTAINS_ACTIONS - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.RegexEnum
-
Link contains actions.
- containsActions(String) - Static method in class edu.ntnu.idatt2001.paths.validation.StoryFileValidation
-
Method to check if a link contains actions.
- createBottomButtonsDisplay() - Method in class edu.ntnu.idatt2001.paths.views.storyplayer.PlayGamePane
-
Creates the bottom buttons display.
- createButton(String, EventHandler<ActionEvent>) - Static method in class edu.ntnu.idatt2001.paths.views.components.ButtonComponent
-
Creates a button with the given text and action.
- createGameGoalsDisplay() - Method in class edu.ntnu.idatt2001.paths.views.storyplayer.PlayGamePane
-
Creates the game goals display.
- createNewPassage(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- createNewPassage(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Create a new passage with the chosen title and content in the fields Adds the passage to the story and the diagram
- createPlayerStatsDisplay() - Method in class edu.ntnu.idatt2001.paths.views.storyplayer.PlayGamePane
-
Creates the player stats display.
- createSingleActionForm(Class<? extends Action<?>>, String) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- createSingleActionForm(Class<? extends Action<?>>, String) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Creates a single action form with a choice box of actions and a text field for the value
- createTitle(String) - Static method in class edu.ntnu.idatt2001.paths.views.components.TitleComponent
-
Creates a title.
D
- DEFAULT - Enum constant in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
- DEFAULT - Enum constant in enum class edu.ntnu.idatt2001.paths.models.game.GameDifficultyEnum
-
The default difficulty.
- DEFAULT_COLOR - Static variable in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
- DEFAULT_FILL - Static variable in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
- DEFAULT_GOLD - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The default gold value.
- DEFAULT_HEALTH - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The default health value.
- DEFAULT_SCORE - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The default score value.
- deleteLink(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- deleteLink(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Deletes the link from the diagram pane Removes it from the link container and the story
- deletePassageNode(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- deletePassageNode(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Deletes the passage node from the diagram pane Removes it from the passage nodes container and the story
- deselect() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
deselects the node by chaning its fill to the default fill
- deselect() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
-
Deselects the passage node link Changes the color of the line and arrow
- DRAG - Enum constant in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
- dragDiagramPane(MouseEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- dragDiagramPane(MouseEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Controller method to handle drags to the diagram pane Moves the diagram pane and all the passage nodes and links if the background canvas is hit Moves the selected passage node if it is hit
- DraggableDiagramPane - Class in edu.ntnu.idatt2001.paths.views.storyeditor
-
A pane that contains the story block nodes and the links between them.
- DraggableDiagramPane() - Constructor for class edu.ntnu.idatt2001.paths.views.storyeditor.DraggableDiagramPane
-
Creates a new draggable diagram pane sets listeners for the width and height properties to update the background grid
- DragResizeMod - Class in edu.ntnu.idatt2001.paths.controllers
-
A class that makes a node resizable and draggable.
- DragResizeMod.OnDragResizeEventListener - Interface in edu.ntnu.idatt2001.paths.controllers
-
Interface to listen for node drag and resize events.
- DragResizeMod.State - Enum Class in edu.ntnu.idatt2001.paths.controllers
-
The different states the node can be in
- DragResizePassageNode - Class in edu.ntnu.idatt2001.paths.views.storyeditor
-
A passage node that can be dragged and resized.
- DragResizePassageNode(Passage) - Constructor for class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
Creates a passage node with a passage
- drawBackgroundGrid() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DraggableDiagramPane
-
Draws the background grid Draws lines on the x axis and the y axis based on the background grid size
E
- E_RESIZE - Enum constant in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
- EASY - Enum constant in enum class edu.ntnu.idatt2001.paths.models.game.GameDifficultyEnum
-
The easy difficulty.
- EASY_GOLD - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The easy gold value.
- EASY_HEALTH - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The easy health value.
- EASY_SCORE - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The easy score value.
- editStory(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterController
- editStory(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterControllerImpl
-
Method to edit the story.
- edu.ntnu.idatt2001.paths - module edu.ntnu.idatt2001.paths
-
The module-info.java file is used to declare the module name and the packages that are exported.
- edu.ntnu.idatt2001.paths - package edu.ntnu.idatt2001.paths
- edu.ntnu.idatt2001.paths.controllers - package edu.ntnu.idatt2001.paths.controllers
- edu.ntnu.idatt2001.paths.controllers.playgame - package edu.ntnu.idatt2001.paths.controllers.playgame
- edu.ntnu.idatt2001.paths.controllers.startmenu - package edu.ntnu.idatt2001.paths.controllers.startmenu
- edu.ntnu.idatt2001.paths.controllers.storyeditor - package edu.ntnu.idatt2001.paths.controllers.storyeditor
- edu.ntnu.idatt2001.paths.controllers.storyimporter - package edu.ntnu.idatt2001.paths.controllers.storyimporter
- edu.ntnu.idatt2001.paths.controllers.storystarter - package edu.ntnu.idatt2001.paths.controllers.storystarter
- edu.ntnu.idatt2001.paths.exceptions - package edu.ntnu.idatt2001.paths.exceptions
- edu.ntnu.idatt2001.paths.file - package edu.ntnu.idatt2001.paths.file
- edu.ntnu.idatt2001.paths.models - package edu.ntnu.idatt2001.paths.models
- edu.ntnu.idatt2001.paths.models.actions - package edu.ntnu.idatt2001.paths.models.actions
- edu.ntnu.idatt2001.paths.models.game - package edu.ntnu.idatt2001.paths.models.game
- edu.ntnu.idatt2001.paths.models.goals - package edu.ntnu.idatt2001.paths.models.goals
- edu.ntnu.idatt2001.paths.models.player - package edu.ntnu.idatt2001.paths.models.player
- edu.ntnu.idatt2001.paths.models.tutorial - package edu.ntnu.idatt2001.paths.models.tutorial
- edu.ntnu.idatt2001.paths.validation - package edu.ntnu.idatt2001.paths.validation
- edu.ntnu.idatt2001.paths.views - package edu.ntnu.idatt2001.paths.views
- edu.ntnu.idatt2001.paths.views.components - package edu.ntnu.idatt2001.paths.views.components
- edu.ntnu.idatt2001.paths.views.startmenu - package edu.ntnu.idatt2001.paths.views.startmenu
- edu.ntnu.idatt2001.paths.views.storyeditor - package edu.ntnu.idatt2001.paths.views.storyeditor
- edu.ntnu.idatt2001.paths.views.storyimporter - package edu.ntnu.idatt2001.paths.views.storyimporter
- edu.ntnu.idatt2001.paths.views.storyplayer - package edu.ntnu.idatt2001.paths.views.storyplayer
- edu.ntnu.idatt2001.paths.views.storystarter - package edu.ntnu.idatt2001.paths.views.storystarter
- edu.ntnu.idatt2001.paths.views.tutorial - package edu.ntnu.idatt2001.paths.views.tutorial
- equals(Object) - Method in class edu.ntnu.idatt2001.paths.models.Link
-
Two links are equal if they have the same reference This is to make the required map of links to passages point links with different text and actions to the same passage
- equals(Object) - Method in class edu.ntnu.idatt2001.paths.models.Passage
-
Checks whether two passages are equal by comparing their titles.
- equals(Object) - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
Equals method for passage nodes Two drag resize passage nodes are equal if they have the same passage
- execute(Player) - Method in interface edu.ntnu.idatt2001.paths.models.actions.Action
-
Executes an action on a player.
- execute(Player) - Method in class edu.ntnu.idatt2001.paths.models.actions.GoldAction
-
Executes an action on a player.
- execute(Player) - Method in class edu.ntnu.idatt2001.paths.models.actions.HealthAction
-
Executes an action on a player.
- execute(Player) - Method in class edu.ntnu.idatt2001.paths.models.actions.InventoryAddAction
-
Executes an action on a player.
- execute(Player) - Method in class edu.ntnu.idatt2001.paths.models.actions.InventoryRemoveAction
-
Executes an action on a player.
- execute(Player) - Method in class edu.ntnu.idatt2001.paths.models.actions.InventoryRemoveAllAction
-
Executes an action on a player.
- execute(Player) - Method in class edu.ntnu.idatt2001.paths.models.actions.ScoreAction
-
Executes an action on a player.
- exitStage(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.startmenu.StartMenuController
- exitStage(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.startmenu.StartMenuControllerImpl
-
Exits the program.
- exportStory(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- exportStory(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Exports the story to a file The file is a .paths file which is a custom file type for this application
F
- FeedbackDialogs - Class in edu.ntnu.idatt2001.paths.views
-
The feedback dialogs.
- FeedbackDialogs() - Constructor for class edu.ntnu.idatt2001.paths.views.FeedbackDialogs
- FileExtensionEnum - Enum Class in edu.ntnu.idatt2001.paths.file
-
Enum for the different valid file extensions.
- FileUtils - Class in edu.ntnu.idatt2001.paths.file
-
Class for file utilities.
- FileUtils() - Constructor for class edu.ntnu.idatt2001.paths.file.FileUtils
- FontEnum - Enum Class in edu.ntnu.idatt2001.paths.views
-
An enum with different standard fonts to use throughout the application.
G
- Game - Class in edu.ntnu.idatt2001.paths.models.game
-
The game class.
- Game(Player, Story, List<Goal<?>>) - Constructor for class edu.ntnu.idatt2001.paths.models.game.Game
-
Creates a new Game object.
- GameDifficultyEnum - Enum Class in edu.ntnu.idatt2001.paths.models.game
-
The enum Game difficulty enum.
- GameGoalsPane - Class in edu.ntnu.idatt2001.paths.views.storyplayer
-
This class is a part of the view of the game.
- GameGoalsPane(PlayGameController) - Constructor for class edu.ntnu.idatt2001.paths.views.storyplayer.GameGoalsPane
-
Creates a new game goals pane Adds text nodes for each goal.
- getAction() - Method in enum class edu.ntnu.idatt2001.paths.models.actions.ActionTypeEnum
-
Method to get the action.
- getActionObjectWithValue(ActionTypeEnum, String) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- getActionObjectWithValue(ActionTypeEnum, String) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Converts an action type enum and action value to an action object
- getActions() - Method in class edu.ntnu.idatt2001.paths.models.Link
-
Retrieves the list of actions
- getActionsSkipped() - Method in class edu.ntnu.idatt2001.paths.file.StoryFileReader
-
Gets the list of actions that were skipped when reading from file.
- getActionType(String) - Static method in enum class edu.ntnu.idatt2001.paths.models.actions.ActionTypeEnum
-
Method to get the action type.
- getBackgroundCanvas() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DraggableDiagramPane
-
Returns the canvas for the background grid
- getBackgroundGridSize() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DraggableDiagramPane
-
Returns the size of the background grid
- getBetweenCenterAndCornerX(double) - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
Returns the x coordinate of a point between the center of the node and the corner of the node
- getBetweenCenterAndCornerY(double) - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
Returns the y coordinate of a point between the center of the node and the corner of the node
- getBox() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
Returns the box of the passage node
- getBrokenLinks() - Method in class edu.ntnu.idatt2001.paths.models.Story
-
Method to get all broken links in the story.
- getColor() - Method in enum class edu.ntnu.idatt2001.paths.views.ColorEnum
-
Returns the color created from the hex code.
- getContent() - Method in class edu.ntnu.idatt2001.paths.models.Passage
-
Retrieves the content of the passage
- getContent() - Method in class edu.ntnu.idatt2001.paths.models.tutorial.TutorialParagraph
-
Gets the content of the paragraph.
- getCurrentPassagePane() - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- getCurrentPassagePane() - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Gets the current passage pane.
- getDefaultGold() - Method in enum class edu.ntnu.idatt2001.paths.models.game.GameDifficultyEnum
-
Gets the default gold value for the difficulty.
- getDefaultHealth() - Method in enum class edu.ntnu.idatt2001.paths.models.game.GameDifficultyEnum
-
Gets the default health value for the difficulty.
- getDefaultScore() - Method in enum class edu.ntnu.idatt2001.paths.models.game.GameDifficultyEnum
-
Gets the default score value for the difficulty.
- getDeleteButton() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
Returns the button for deleting the passage
- getDiagramPane() - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- getDiagramPane() - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Gets the diagram pane by lookup in the view If the pane is not found, an error dialog is shown
- getDifficulty() - Method in interface edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterController
- getDifficulty() - Method in class edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterControllerImpl
-
Method to get the difficulty value.
- getDisplay() - Method in class edu.ntnu.idatt2001.paths.views.ChoiceBoxOption
-
Returns the display string of the option.
- getExtension() - Method in enum class edu.ntnu.idatt2001.paths.file.FileExtensionEnum
-
Method to get the extension.
- getFile() - Method in class edu.ntnu.idatt2001.paths.file.StoryFileReader
-
Gets the file that was read from.
- getFile() - Method in class edu.ntnu.idatt2001.paths.file.StoryFileWriter
-
Method to get the file.
- getFileExtension(T) - Static method in class edu.ntnu.idatt2001.paths.file.FileUtils
-
Method to get the file extension from a file name.
- getFileName() - Method in interface edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterController
- getFileName() - Method in class edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterControllerImpl
-
Method to get the file name.
- getFirstPassageToDisplay() - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- getFirstPassageToDisplay() - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Gets the first passage to display.
- getFont() - Method in enum class edu.ntnu.idatt2001.paths.views.FontEnum
-
Returns the font.
- getFulfillmentCriteria() - Method in interface edu.ntnu.idatt2001.paths.models.goals.Goal
-
Get the goal's fulfillment criteria.
- getFulfillmentCriteria() - Method in class edu.ntnu.idatt2001.paths.models.goals.GoldGoal
-
Get the gold goal's minimum gold criteria.
- getFulfillmentCriteria() - Method in class edu.ntnu.idatt2001.paths.models.goals.HealthGoal
-
Get the goal's minimum health criteria.
- getFulfillmentCriteria() - Method in class edu.ntnu.idatt2001.paths.models.goals.InventoryGoal
-
Get the inventory goal's mandatory items
- getFulfillmentCriteria() - Method in class edu.ntnu.idatt2001.paths.models.goals.MaximumScoreGoal
-
Get the score goal's maximum score criteria.
- getFulfillmentCriteria() - Method in class edu.ntnu.idatt2001.paths.models.goals.MinimumScoreGoal
-
Get the score goal's minimum score criteria.
- getGame() - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- getGame() - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Gets the game that is being played.
- getGameSubtitle() - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- getGameSubtitle() - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Gets the current game subtitle string
- getGameTitle() - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- getGameTitle() - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Gets the current game title string
- getGoal() - Method in enum class edu.ntnu.idatt2001.paths.models.goals.GoalTypeEnum
-
Method to get the goal.
- getGoals() - Method in class edu.ntnu.idatt2001.paths.models.game.Game
-
Retrieves the list of goals
- getGoalsList() - Method in interface edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterController
- getGoalsList() - Method in class edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterControllerImpl
-
Method to get the goals list.
- getGoalType(String) - Static method in enum class edu.ntnu.idatt2001.paths.models.goals.GoalTypeEnum
-
Method to get the goal type.
- getGold() - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Retrieves the gold of the player
- getGold() - Method in class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Method to get the gold of the player.
- getHealth() - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Retrieves the player's health
- getHealth() - Method in class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Method to get the health of the player.
- getImagePath() - Method in class edu.ntnu.idatt2001.paths.models.tutorial.TutorialParagraph
-
Gets the image path of the paragraph.
- getInstance() - Static method in class edu.ntnu.idatt2001.paths.file.TutorialFileReader
-
Returns the instance of the TutorialFileReader.
- getInventory() - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Retrieves the inventory of the player by aggregation
- getInventory() - Method in class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Method to get the inventory of the player.
- getLine() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
-
Gets the line of the passage node link
- getLink() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
-
Gets the link
- getLink() - Method in class edu.ntnu.idatt2001.paths.views.storyplayer.ClickLinkEvent
-
Gets the link that was clicked.
- getLinkContainer() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DraggableDiagramPane
-
Returns the container for the links
- getLinkingButton() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
Returns the button for linking passages
- getLinks() - Method in class edu.ntnu.idatt2001.paths.models.Passage
-
Retrieves the links the passage has connected from it
- getLinksSkipped() - Method in class edu.ntnu.idatt2001.paths.file.StoryFileReader
-
Gets the list of links that were skipped when reading from file.
- getMessage() - Method in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
Getter method for messages in the enum
- getName() - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Retrieves the name of the player
- getName() - Method in class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Method to get the name of the player.
- getOpeningPassage() - Method in class edu.ntnu.idatt2001.paths.models.Story
-
Retrieves the opening passage of the story.
- getOpeningPassageButton() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
Returns the button for setting the passage as opening passage
- getPassage() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
Returns the passage of the passage node
- getPassage(Link) - Method in class edu.ntnu.idatt2001.paths.models.Story
-
Retrieves a passage form a given link.
- getPassages() - Method in class edu.ntnu.idatt2001.paths.models.Story
-
Retrieves the passages of the story in the form of a collection.
- getPassagesSkipped() - Method in class edu.ntnu.idatt2001.paths.file.StoryFileReader
-
Gets the list of passages that were skipped when reading from file.
- getPattern() - Method in enum class edu.ntnu.idatt2001.paths.validation.RegexEnum
-
Get the pattern.
- getPlayer() - Method in class edu.ntnu.idatt2001.paths.models.game.Game
-
Retrieves the player
- getPlayerName() - Method in interface edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterController
- getPlayerName() - Method in class edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterControllerImpl
-
Method to get the player name value.
- getReadErrors() - Method in interface edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterController
- getReadErrors() - Method in class edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterControllerImpl
-
Method to get the read errors.
- getReference() - Method in class edu.ntnu.idatt2001.paths.models.Link
-
Retrieves the passage reference.
- getScore() - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Retrieves the player's score
- getScore() - Method in class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Method to get the score of the player.
- getSource() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
-
Gets the source passage node
- getStage() - Static method in class edu.ntnu.idatt2001.paths.views.App
-
Get the stage of the application
- getStory() - Method in interface edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterController
- getStory() - Method in class edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterControllerImpl
-
Method to get the story.
- getStory() - Method in class edu.ntnu.idatt2001.paths.models.game.Game
-
Retrieves the story
- getStoryBlockNodesContainer() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DraggableDiagramPane
-
Returns the container for the story block nodes
- getStoryImportedCorrectly() - Method in interface edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterController
- getStoryImportedCorrectly() - Method in class edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterControllerImpl
-
Method to get the story imported correctly.
- getStoryTitle() - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- getStoryTitle() - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Retrives the story title from the story
- getTarget() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
-
Gets the target passage node
- getText() - Method in class edu.ntnu.idatt2001.paths.models.Link
-
Retrieves the link text.
- getTitle() - Method in class edu.ntnu.idatt2001.paths.models.Passage
-
Retrieves the title of the passage
- getTitle() - Method in class edu.ntnu.idatt2001.paths.models.Story
-
Retrieves the title of the story.
- getTitle() - Method in class edu.ntnu.idatt2001.paths.models.tutorial.TutorialParagraph
-
Gets the title of the paragraph.
- getValue() - Method in interface edu.ntnu.idatt2001.paths.models.actions.Action
-
Get method for the action's value.
- getValue() - Method in class edu.ntnu.idatt2001.paths.models.actions.GoldAction
-
Get method for the action's value.
- getValue() - Method in class edu.ntnu.idatt2001.paths.models.actions.HealthAction
-
Get method for the action's value.
- getValue() - Method in class edu.ntnu.idatt2001.paths.models.actions.InventoryAddAction
-
Get method for the action's value.
- getValue() - Method in class edu.ntnu.idatt2001.paths.models.actions.InventoryRemoveAction
-
Get method for the action's value.
- getValue() - Method in class edu.ntnu.idatt2001.paths.models.actions.InventoryRemoveAllAction
-
Get method for the action's value.
- getValue() - Method in class edu.ntnu.idatt2001.paths.models.actions.ScoreAction
-
Get method for the action's value.
- getValue() - Method in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
Gets value.
- getValue() - Method in class edu.ntnu.idatt2001.paths.views.ChoiceBoxOption
-
Returns the value of the option.
- getView() - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- getView() - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Returns the pane of the controller
- go(Link) - Method in class edu.ntnu.idatt2001.paths.models.game.Game
-
Moves the player from a chosen link to a new passage Retrieves the passage that a link connects to.
- Goal<T> - Interface in edu.ntnu.idatt2001.paths.models.goals
-
Goal interface.
- GoalTypeEnum - Enum Class in edu.ntnu.idatt2001.paths.models.goals
-
Enum for the different types of goals.
- goBackToMenu(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.AbstractBaseController
-
Goes back to the menu.
- goBackToMenu(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.BaseController
- GOLD - Enum constant in enum class edu.ntnu.idatt2001.paths.models.actions.ActionTypeEnum
-
Gold action.
- GOLD - Enum constant in enum class edu.ntnu.idatt2001.paths.models.goals.GoalTypeEnum
-
Gold goal.
- GoldAction - Class in edu.ntnu.idatt2001.paths.models.actions
-
GoldAction class.
- GoldAction(int) - Constructor for class edu.ntnu.idatt2001.paths.models.actions.GoldAction
-
Creates a new gold action which adds or removes gold from a player's gold stash.
- GoldGoal - Class in edu.ntnu.idatt2001.paths.models.goals
-
GoldGoal class.
- GoldGoal(int) - Constructor for class edu.ntnu.idatt2001.paths.models.goals.GoldGoal
-
Creates a new gold goal which checks the player's gold with the minimum gold.
- goThroughLink(ClickLinkEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- goThroughLink(ClickLinkEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Gets the clicked link event and updates the game to be the next passage.
- goToMainMenu(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- goToMainMenu(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Switches to the main menu view.
H
- HARD - Enum constant in enum class edu.ntnu.idatt2001.paths.models.game.GameDifficultyEnum
-
The hard difficulty.
- HARD_GOLD - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The hard gold value.
- HARD_HEALTH - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The hard health value.
- HARD_SCORE - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The hard score value.
- hashCode() - Method in class edu.ntnu.idatt2001.paths.models.Link
-
Returns a hashcode for the link based on the reference
- hashCode() - Method in class edu.ntnu.idatt2001.paths.models.Passage
-
Returns the hashcode of the title of the passage.
- hashCode() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
Hashcode method for passage nodes
- hasLinks() - Method in class edu.ntnu.idatt2001.paths.models.Passage
-
Checks if there is at least one link in the list of links
- HEALTH - Enum constant in enum class edu.ntnu.idatt2001.paths.models.actions.ActionTypeEnum
-
Health action.
- HEALTH - Enum constant in enum class edu.ntnu.idatt2001.paths.models.goals.GoalTypeEnum
-
Health goal.
- HealthAction - Class in edu.ntnu.idatt2001.paths.models.actions
-
HealthAction class.
- HealthAction(int) - Constructor for class edu.ntnu.idatt2001.paths.models.actions.HealthAction
-
Creates a new health action which adds or subtracts health points from a player's health.
- HealthGoal - Class in edu.ntnu.idatt2001.paths.models.goals
-
HealthGoal class.
- HealthGoal(int) - Constructor for class edu.ntnu.idatt2001.paths.models.goals.HealthGoal
-
Creates a new health goal which checks the player's health with the minimum health.
I
- importStory(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterController
- importStory(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterControllerImpl
-
Method to import a story from a file.
- InformationTooltip - Class in edu.ntnu.idatt2001.paths.views
-
Tooltip that displays information when hovered over.
- InformationTooltip(String) - Constructor for class edu.ntnu.idatt2001.paths.views.InformationTooltip
-
Creates a new InformationTooltip with the specified text.
- INVENTORY - Enum constant in enum class edu.ntnu.idatt2001.paths.models.goals.GoalTypeEnum
-
Inventory add goal.
- INVENTORY_ADD - Enum constant in enum class edu.ntnu.idatt2001.paths.models.actions.ActionTypeEnum
-
Inventory add action.
- INVENTORY_REMOVE - Enum constant in enum class edu.ntnu.idatt2001.paths.models.actions.ActionTypeEnum
-
Inventory remove action.
- INVENTORY_REMOVE_ALL - Enum constant in enum class edu.ntnu.idatt2001.paths.models.actions.ActionTypeEnum
-
Inventory remove all action.
- InventoryAddAction - Class in edu.ntnu.idatt2001.paths.models.actions
-
InventoryAddAction class.
- InventoryAddAction(String) - Constructor for class edu.ntnu.idatt2001.paths.models.actions.InventoryAddAction
-
Instantiates a new Inventory add action and sets the item to add to the player's inventory.
- InventoryGoal - Class in edu.ntnu.idatt2001.paths.models.goals
-
InventoryGoal class.
- InventoryGoal(List<String>) - Constructor for class edu.ntnu.idatt2001.paths.models.goals.InventoryGoal
-
Creates a new InventoryGoal class checking if the player has at least one instance of all the items in the list.
- InventoryRemoveAction - Class in edu.ntnu.idatt2001.paths.models.actions
-
InventoryRemoveAction class.
- InventoryRemoveAction(String) - Constructor for class edu.ntnu.idatt2001.paths.models.actions.InventoryRemoveAction
-
Instantiates a new Inventory remove action and sets the item to remove from the player's inventory.
- InventoryRemoveAllAction - Class in edu.ntnu.idatt2001.paths.models.actions
-
InventoryRemoveAllAction class.
- InventoryRemoveAllAction(String) - Constructor for class edu.ntnu.idatt2001.paths.models.actions.InventoryRemoveAllAction
-
Instantiates a new Inventory remove all action and sets the item to remove from the player's inventory.
- isAlive() - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Checks if the player has health above 0
- isFulfilled(Player) - Method in interface edu.ntnu.idatt2001.paths.models.goals.Goal
-
Checks if a player has fulfilled a goal.
- isFulfilled(Player) - Method in class edu.ntnu.idatt2001.paths.models.goals.GoldGoal
-
Checks if a player has fulfilled the gold goal.
- isFulfilled(Player) - Method in class edu.ntnu.idatt2001.paths.models.goals.HealthGoal
-
Checks if a player has fulfilled the health goal.
- isFulfilled(Player) - Method in class edu.ntnu.idatt2001.paths.models.goals.InventoryGoal
-
Checks if a player has fulfilled the InventoryGoal.
- isFulfilled(Player) - Method in class edu.ntnu.idatt2001.paths.models.goals.MaximumScoreGoal
-
Checks if a player has fulfilled the score goal.
- isFulfilled(Player) - Method in class edu.ntnu.idatt2001.paths.models.goals.MinimumScoreGoal
-
Checks if a player has fulfilled the score goal.
- isInInventory(String) - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Checks to see if a specified item is in the player's inventory Possible to send null as parameter, in which case false is returned item is trimmed and converted to lowercase before checking as inventory is stored in lowercase
- isPlayable() - Method in class edu.ntnu.idatt2001.paths.models.Story
-
Checks if the story is playable A game is playable if there exists an opening passage and that passage is in the passages map.
- isValidAction(String) - Static method in class edu.ntnu.idatt2001.paths.validation.StoryFileValidation
-
Method to check if an action is in a valid format.
- isValidFileType(T) - Static method in class edu.ntnu.idatt2001.paths.validation.StoryFileValidation
-
Method to check if the file extension is valid for the story file.
- isValidFileType(T) - Static method in class edu.ntnu.idatt2001.paths.validation.TutorialFileValidation
-
Method to check if the file extension is valid for the tutorial file.
- isValidLink(String) - Static method in class edu.ntnu.idatt2001.paths.validation.StoryFileValidation
-
Method to check if a line has a valid link.
- isValidPassageStart(String) - Static method in class edu.ntnu.idatt2001.paths.validation.StoryFileValidation
-
Method to check if a line is a valid passage start.
L
- LARGE_TITLE - Enum constant in enum class edu.ntnu.idatt2001.paths.views.FontEnum
-
A font for large titles.
- LIGHT_BLUE - Enum constant in enum class edu.ntnu.idatt2001.paths.views.ColorEnum
-
Color for a lighter blue.
- LIGHT_GREEN - Enum constant in enum class edu.ntnu.idatt2001.paths.views.ColorEnum
-
Color for lighter green.
- Link - Class in edu.ntnu.idatt2001.paths.models
-
Class link represents a link between two passages The reference is a string that points to the name of the passage
- Link(String, String) - Constructor for class edu.ntnu.idatt2001.paths.models.Link
-
Instantiates a new Link.
- Link(String, String, List<Action<?>>) - Constructor for class edu.ntnu.idatt2001.paths.models.Link
-
Instantiates a new Link.
- LINK - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.RegexEnum
-
Link.
- LINK_PARENTHESES - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.RegexEnum
-
Link with parentheses.
- linkPassageNodes(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- linkPassageNodes(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
M
- main(String[]) - Static method in class edu.ntnu.idatt2001.paths.Main
-
The entry point of application.
- main(String[]) - Static method in class edu.ntnu.idatt2001.paths.views.App
-
The entry point of application.
- Main - Class in edu.ntnu.idatt2001.paths
-
The entrypoint class of the application
- Main() - Constructor for class edu.ntnu.idatt2001.paths.Main
- makeResizable(Node, DragResizeMod.OnDragResizeEventListener) - Static method in class edu.ntnu.idatt2001.paths.controllers.DragResizeMod
-
Checks if the mouse event is in the drag zone Creates a resizer which is called on mouse events.
- MAP_CONTAINS_NULL - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a map contains null values.
- MAP_IS_EMPTY - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a map is empty.
- MAP_IS_NULL - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a map is null.
- matches(String, RegexEnum) - Static method in enum class edu.ntnu.idatt2001.paths.validation.RegexEnum
-
Check if a string matches the pattern.
- MaximumScoreGoal - Class in edu.ntnu.idatt2001.paths.models.goals
-
MinimumScoreGoal class.
- MaximumScoreGoal(int) - Constructor for class edu.ntnu.idatt2001.paths.models.goals.MaximumScoreGoal
-
Creates a new score goal which checks the player's score with the maximum score.
- MAXIUMUM_SCORE - Enum constant in enum class edu.ntnu.idatt2001.paths.models.goals.GoalTypeEnum
-
Score goal.
- MEDIUM - Enum constant in enum class edu.ntnu.idatt2001.paths.models.game.GameDifficultyEnum
-
The medium difficulty.
- MEDIUM_GOLD - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The medium gold value.
- MEDIUM_HEALTH - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The medium health value.
- MEDIUM_SCORE - Enum constant in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
The medium score value.
- MINIMUM_SCORE - Enum constant in enum class edu.ntnu.idatt2001.paths.models.goals.GoalTypeEnum
-
Score goal.
- MinimumScoreGoal - Class in edu.ntnu.idatt2001.paths.models.goals
-
MinimumScoreGoal class.
- MinimumScoreGoal(int) - Constructor for class edu.ntnu.idatt2001.paths.models.goals.MinimumScoreGoal
-
Creates a new score goal which checks the player's score with the minimum score.
- mouseDragged(MouseEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.DragResizeMod
-
If the state is drag, the node is moved around according to the mouse drag event If the state is not drag or default, the node is resized according to the mouse drag event
- mouseOver(MouseEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.DragResizeMod
-
Sets the state of the cursor based on the event
- mousePressed(MouseEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.DragResizeMod
-
Sets the correct state based on the mouse position
- mouseReleased(MouseEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.DragResizeMod
-
Sets the cursor to be in default state
N
- N_RESIZE - Enum constant in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
- NE_RESIZE - Enum constant in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
- NUMBER_IS_LARGER - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a number is larger than the maximum value.
- NUMBER_IS_NOT_POSITIVE - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a number is not positive.
- NUMBER_IS_SMALLER - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a string is empty.
- NW_RESIZE - Enum constant in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
O
- onDrag(Node, double, double, double, double) - Method in interface edu.ntnu.idatt2001.paths.controllers.DragResizeMod.OnDragResizeEventListener
- onDrag(Node, double, double, double, double) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.PassageNodeDragResizeListener
-
Overrides the on drag method from the drag resize event listener.
- onPlayerChange(Player) - Method in interface edu.ntnu.idatt2001.paths.models.player.PlayerChangeListener
-
Called when the player changes any of its attributes.
- onResize(Node, double, double, double, double) - Method in interface edu.ntnu.idatt2001.paths.controllers.DragResizeMod.OnDragResizeEventListener
- onResize(Node, double, double, double, double) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.PassageNodeDragResizeListener
-
Overrides the on resize method from the drag resize event listener.
P
- Passage - Class in edu.ntnu.idatt2001.paths.models
-
Class Passage representing a point in a story where a choice has to be made.
- Passage(String) - Constructor for class edu.ntnu.idatt2001.paths.models.Passage
-
Instantiates a new Passage, but only takes in title.
- Passage(String, String) - Constructor for class edu.ntnu.idatt2001.paths.models.Passage
-
Instantiates a new Passage, but only takes in title and content.
- Passage(String, String, List<Link>) - Constructor for class edu.ntnu.idatt2001.paths.models.Passage
-
The main constructor for the passage class.
- PASSAGE_TITLE - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.RegexEnum
-
Passage title.
- PassageNodeDragResizeListener - Class in edu.ntnu.idatt2001.paths.controllers.storyeditor
-
A drag resize event listener for the drag resize mod.
- PassageNodeDragResizeListener() - Constructor for class edu.ntnu.idatt2001.paths.controllers.storyeditor.PassageNodeDragResizeListener
- PassageNodeLink - Class in edu.ntnu.idatt2001.paths.views.storyeditor
-
A link between two passage nodes.
- PassageNodeLink(DragResizePassageNode, DragResizePassageNode) - Constructor for class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
-
Creates a link between two passage nodes Creates the line between them and an arrow in the middle of the line
- PATHS - Enum constant in enum class edu.ntnu.idatt2001.paths.file.FileExtensionEnum
-
The extension for the story file.
- Player - Class in edu.ntnu.idatt2001.paths.models.player
-
The Player class.
- Player(PlayerBuilder) - Constructor for class edu.ntnu.idatt2001.paths.models.player.Player
-
The builder constructor for the Player class.
- Player(String) - Constructor for class edu.ntnu.idatt2001.paths.models.player.Player
-
Creates a new player with only name.
- Player(String, int, int, int) - Constructor for class edu.ntnu.idatt2001.paths.models.player.Player
-
Creates a new player through the main constructor.
- Player(String, int, int, int, List<String>) - Constructor for class edu.ntnu.idatt2001.paths.models.player.Player
-
The main constructor for the Player class.
- PlayerBuilder - Class in edu.ntnu.idatt2001.paths.models.player
-
The class Player builder.
- PlayerBuilder() - Constructor for class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Instantiates a new Player builder.
- PlayerBuilder(GameDifficultyEnum) - Constructor for class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Instantiates a new Player builder.
- PlayerChangeListener - Interface in edu.ntnu.idatt2001.paths.models.player
-
A listener for player changes.
- PlayerInfoPane - Class in edu.ntnu.idatt2001.paths.views.storyplayer
-
This class is a part of the view of the game.
- PlayerInfoPane(PlayGameController) - Constructor for class edu.ntnu.idatt2001.paths.views.storyplayer.PlayerInfoPane
-
Creates a new player info pane Adds text nodes for health, score, gold and inventory.
- PlayerStatEnum - Enum Class in edu.ntnu.idatt2001.paths.models.player
-
The enum Player stat enum.
- PlayGameController - Interface in edu.ntnu.idatt2001.paths.controllers.playgame
-
Interface for the play game controller.
- PlayGameControllerImpl - Class in edu.ntnu.idatt2001.paths.controllers.playgame
-
Controller for the story starter pane.
- PlayGameControllerImpl(Game) - Constructor for class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Creates a controller for the story starter pane.
- PlayGamePane - Class in edu.ntnu.idatt2001.paths.views.storyplayer
-
A pane displayed when playing a story.
- PlayGamePane(PlayGameController) - Constructor for class edu.ntnu.idatt2001.paths.views.storyplayer.PlayGamePane
-
Creates a new play story pane.
- PlayPassagePane - Class in edu.ntnu.idatt2001.paths.views.storyplayer
-
A pane displaying a passage Contains the passage title, content and links.
- PlayPassagePane(Passage, BooleanProperty, PlayGameController) - Constructor for class edu.ntnu.idatt2001.paths.views.storyplayer.PlayPassagePane
-
Creates a new play passage pane.
- playStory(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- playStory(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Plays the story.
- playStory(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterController
- playStory(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterControllerImpl
-
Method to play the story.
- pressDiagramPane(MouseEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- pressDiagramPane(MouseEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Controller method to handle presses to the diagram pane If the click is a double click, the selected passage node and link is set to null If passage or node link was clicked, they are selected
R
- readParagraphsFromFile(String) - Method in class edu.ntnu.idatt2001.paths.file.TutorialFileReader
-
Reads the tutorial text file and converts it into tutorial paragraphs.
- readStory() - Method in class edu.ntnu.idatt2001.paths.file.StoryFileReader
-
Method to the story from the file.
- RegexEnum - Enum Class in edu.ntnu.idatt2001.paths.validation
-
Enum for the different regular expressions used in the program.
- removeFromInventory(String) - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Removes an element from the player's inventory Trims and converts to lowercase before removing as inventory is stored in lowercase
- removeInstancesFromInventory(String) - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Removes all instances of an element from the player's inventory Trims and converts to lowercase before checking as inventory is stored in lowercase
- removeLink(Link) - Method in class edu.ntnu.idatt2001.paths.models.Passage
-
Removes a link from the list of links
- removePassage(Link) - Method in class edu.ntnu.idatt2001.paths.models.Story
-
Method to remove a link from the map of passages.
- removePassageWithPassage(Passage) - Method in class edu.ntnu.idatt2001.paths.models.Story
-
Removes a passage from the story given a passage If the passage is the opening passage, the opening passage is set to null.
- removePlayerChangeListener(PlayerChangeListener) - Method in class edu.ntnu.idatt2001.paths.models.player.Player
-
Removes a player change listener from the player This listener will no longer be notified when the player changes
- requireLargerThan(T, T) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a number is larger than a given number.
- requireLargerThan(T, T, String) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a number is larger than a given number.
- requireNonNullOrBlank(String) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a string is null or blank.
- requireNonNullOrBlank(String, String, String) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a string is null or blank.
- requireNonNullOrContainsNull(T) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a collection of a given type is null or contains null values.
- requireNonNullOrContainsNull(T, String, String) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a collection of a given type is null or contains null values.
- requireNonNullOrContainsNullOrBlank(T) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a collection of a strings is null or contains null values or blank strings.
- requireNonNullOrContainsNullOrBlank(T, String, String, String) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a collection of a strings is null or contains null values or blank strings.
- requireNonNullOrEmpty(T) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a collection of a given type is null or empty.
- requireNonNullOrEmpty(T, String, String) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a collection of a given type is null or empty.
- requireNonNullOrEmptyOrContainsNull(T) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a collection of a given type is null or empty or contains null values.
- requireNonNullOrEmptyOrContainsNull(T, String, String, String) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a collection of a given type is null or empty or contains null values.
- requireNonNullOrEmptyOrContainsNullOrBlank(T) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a collection of a strings is null or empty or contains null values or blank strings.
- requireNonNullOrEmptyOrContainsNullOrBlank(T, String, String, String, String) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a collection of a strings is null or empty or contains null values or blank strings.
- requirePositive(T) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a number is positive.
- requirePositive(T, String) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a number is positive.
- requireSmallerThan(T, T) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a number is smaller than a given number.
- requireSmallerThan(T, T, String) - Static method in class edu.ntnu.idatt2001.paths.validation.Validation
-
Check if a number is smaller than a given number.
- restartGame(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- restartGame(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Restarts the game.
S
- S_RESIZE - Enum constant in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
- SCORE - Enum constant in enum class edu.ntnu.idatt2001.paths.models.actions.ActionTypeEnum
-
Score action.
- ScoreAction - Class in edu.ntnu.idatt2001.paths.models.actions
-
ScoreAction class.
- ScoreAction(int) - Constructor for class edu.ntnu.idatt2001.paths.models.actions.ScoreAction
-
Creates a new score action which adds or subtracts points from a player's score.
- SE_RESIZE - Enum constant in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
- select() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
selects the node by chaning its fill to the selection fill
- select() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
-
Selects the passage node link Changes the color of the line and arrow
- SELECTED_FILL - Static variable in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
- SELECTION_MARGIN - Static variable in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
- setAsOpeningPassage(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- setAsOpeningPassage(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Updates the opening passage of the story Updates the story to reflect this change
- setCurrentPassagePane(Passage) - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- setCurrentPassagePane(Passage) - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Gets the current passage pane.
- setGameSubtitle(String) - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- setGameSubtitle(String) - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Sets the current game subtitle string
- setGameTitle(String) - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- setGameTitle(String) - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Sets the current game title strings
- setGold(int) - Method in class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Method to set the gold of the player.
- setHealth(int) - Method in class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Method to set the health of the player.
- setInventory(List<String>) - Method in class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Method to set the inventory of the player.
- setIsOpeningPassage(boolean) - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
sets the node to be the opening passage
- setLink(Link) - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
-
Sets the link
- setName(String) - Method in class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Method to set the name of the player.
- setOpeningPassage(Passage) - Method in class edu.ntnu.idatt2001.paths.models.Story
-
Sets the opening passage of the story.
- setPassage(Passage) - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.DragResizePassageNode
-
Sets the passage of the passage node
- setScore(int) - Method in class edu.ntnu.idatt2001.paths.models.player.PlayerBuilder
-
Method to set the score of the player.
- setSource(DragResizePassageNode) - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
-
Sets the source passage node
- setTarget(DragResizePassageNode) - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
-
Sets the target passage node
- setTitle(String) - Method in class edu.ntnu.idatt2001.paths.models.Story
-
Updates the title of the story.
- setTitle(String) - Method in class edu.ntnu.idatt2001.paths.views.components.BaseGridPane
-
Adds a title to the grid pane.
- showConfirmationDialog(String, String) - Static method in class edu.ntnu.idatt2001.paths.views.FeedbackDialogs
-
Shows a confirmation dialog with a title and content.
- showErrorDialog(String, String) - Static method in class edu.ntnu.idatt2001.paths.views.FeedbackDialogs
-
Shows an error dialog with a title and content.
- showInformationDialog(String, String) - Static method in class edu.ntnu.idatt2001.paths.views.FeedbackDialogs
-
Shows an information dialog with a title and content.
- showStoryEditor(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.startmenu.StartMenuController
- showStoryEditor(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.startmenu.StartMenuControllerImpl
-
Changes the scene of the application to the story editor page.
- showStoryImportPage(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.startmenu.StartMenuController
- showStoryImportPage(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.startmenu.StartMenuControllerImpl
-
Changes the scene of the application to the story import page.
- showTutorial(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.startmenu.StartMenuController
- showTutorial(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.startmenu.StartMenuControllerImpl
-
Changes the scene of the application to the tutorial page.
- start(Stage) - Method in class edu.ntnu.idatt2001.paths.views.App
-
Show the first stage of the application
- StartMenuController - Interface in edu.ntnu.idatt2001.paths.controllers.startmenu
-
Interface for the start menu controller.
- StartMenuControllerImpl - Class in edu.ntnu.idatt2001.paths.controllers.startmenu
-
The start menu controller.
- StartMenuControllerImpl() - Constructor for class edu.ntnu.idatt2001.paths.controllers.startmenu.StartMenuControllerImpl
- StartMenuPane - Class in edu.ntnu.idatt2001.paths.views.startmenu
-
The start menu scene.
- StartMenuPane(StartMenuController) - Constructor for class edu.ntnu.idatt2001.paths.views.startmenu.StartMenuPane
-
Creates a new start menu scene.f Constructor of the start menu schene.
- startStory(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterController
- startStory(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterControllerImpl
-
Starts the story.
- Story - Class in edu.ntnu.idatt2001.paths.models
-
Story class.
- Story(String, Passage) - Constructor for class edu.ntnu.idatt2001.paths.models.Story
-
Creates a new story with an empty passages map.
- Story(String, Map<Link, Passage>, Passage) - Constructor for class edu.ntnu.idatt2001.paths.models.Story
-
The main constructor for the Story class.
- StoryEditorController - Interface in edu.ntnu.idatt2001.paths.controllers.storyeditor
-
Interface for the story editor controller.
- StoryEditorControllerImpl - Class in edu.ntnu.idatt2001.paths.controllers.storyeditor
-
The story editor controller.
- StoryEditorControllerImpl() - Constructor for class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Creates a new story editor controller with a new story.
- StoryEditorControllerImpl(Story) - Constructor for class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Creates a new story editor controller with the given story.
- StoryEditorPane - Class in edu.ntnu.idatt2001.paths.views.storyeditor
-
Pane for the story editor.
- StoryEditorPane(StoryEditorController) - Constructor for class edu.ntnu.idatt2001.paths.views.storyeditor.StoryEditorPane
-
Creates a pane for the story editor.
- StoryFileReader - Class in edu.ntnu.idatt2001.paths.file
-
Handles reading stories to and from a file.
- StoryFileReader(File) - Constructor for class edu.ntnu.idatt2001.paths.file.StoryFileReader
-
Constructor for the story file reader.
- StoryFileValidation - Class in edu.ntnu.idatt2001.paths.validation
-
Class for story file validation.
- StoryFileValidation() - Constructor for class edu.ntnu.idatt2001.paths.validation.StoryFileValidation
- StoryFileWriter - Class in edu.ntnu.idatt2001.paths.file
-
Class for writing a story to a file.
- StoryFileWriter(File) - Constructor for class edu.ntnu.idatt2001.paths.file.StoryFileWriter
-
Constructor for the class.
- StoryFormatException - Exception Class in edu.ntnu.idatt2001.paths.exceptions
-
A runtime exception that should be thrown when a story could not be read from a file becuase the file was formatted incorrectly.
- StoryFormatException() - Constructor for exception class edu.ntnu.idatt2001.paths.exceptions.StoryFormatException
-
Constructor for the a story format exception.
- StoryFormatException(String) - Constructor for exception class edu.ntnu.idatt2001.paths.exceptions.StoryFormatException
-
Constructor for the a story format exception.
- StoryImporterController - Interface in edu.ntnu.idatt2001.paths.controllers.storyimporter
-
Interface for the story importer controller.
- StoryImporterControllerImpl - Class in edu.ntnu.idatt2001.paths.controllers.storyimporter
-
Controller for the story importer pane.
- StoryImporterControllerImpl() - Constructor for class edu.ntnu.idatt2001.paths.controllers.storyimporter.StoryImporterControllerImpl
-
Creates a controller for the story importer pane.
- StoryImporterPane - Class in edu.ntnu.idatt2001.paths.views.storyimporter
-
A pane for importing stories.
- StoryImporterPane(StoryImporterController) - Constructor for class edu.ntnu.idatt2001.paths.views.storyimporter.StoryImporterPane
-
Creates a new story importer pane.
- StoryStarterController - Interface in edu.ntnu.idatt2001.paths.controllers.storystarter
-
Interface for the story starter controller.
- StoryStarterControllerImpl - Class in edu.ntnu.idatt2001.paths.controllers.storystarter
-
Controller for the story starter pane.
- StoryStarterControllerImpl(Story) - Constructor for class edu.ntnu.idatt2001.paths.controllers.storystarter.StoryStarterControllerImpl
-
Creates a controller for the story starter pane.
- StoryStarterPane - Class in edu.ntnu.idatt2001.paths.views.storystarter
-
A pane for starting a story.
- StoryStarterPane(StoryStarterController) - Constructor for class edu.ntnu.idatt2001.paths.views.storystarter.StoryStarterPane
-
Creates a pane for starting a story.
- STRING_IS_BLANK - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a string is blank.
- STRING_IS_NULL - Enum constant in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
The default message to be thrown if a string is null.
- SW_RESIZE - Enum constant in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
T
- TITLE - Enum constant in enum class edu.ntnu.idatt2001.paths.views.FontEnum
-
A font smaller titles
- TitleComponent - Class in edu.ntnu.idatt2001.paths.views.components
-
A component for creating titles with the same style throughout the application.
- TitleComponent() - Constructor for class edu.ntnu.idatt2001.paths.views.components.TitleComponent
- toString() - Method in class edu.ntnu.idatt2001.paths.models.Link
-
Returns a string representation of the link Uses text and reference example: Link 'Go to the kitchen' connects to 'kitchen'
- toString() - Method in class edu.ntnu.idatt2001.paths.models.Passage
-
Returns a string representation of the passage including the title and the size of the list of links.
- toString() - Method in class edu.ntnu.idatt2001.paths.models.Story
- toString() - Method in class edu.ntnu.idatt2001.paths.views.ChoiceBoxOption
-
Returns the display string of the option.
- TUTORIAL - Enum constant in enum class edu.ntnu.idatt2001.paths.file.FileExtensionEnum
-
The extension for the tutorial file.
- TutorialFileReader - Class in edu.ntnu.idatt2001.paths.file
-
A class to read the tutorial text file.
- TutorialFileValidation - Class in edu.ntnu.idatt2001.paths.validation
-
Class for tutorial file validation.
- TutorialFileValidation() - Constructor for class edu.ntnu.idatt2001.paths.validation.TutorialFileValidation
- TutorialPageController - Class in edu.ntnu.idatt2001.paths.controllers
-
A controller to go back to the menu.
- TutorialPageController() - Constructor for class edu.ntnu.idatt2001.paths.controllers.TutorialPageController
- TutorialPane - Class in edu.ntnu.idatt2001.paths.views.tutorial
-
A pane to display the tutorial.
- TutorialPane() - Constructor for class edu.ntnu.idatt2001.paths.views.tutorial.TutorialPane
-
Creates a new TutorialPane.
- TutorialParagraph - Class in edu.ntnu.idatt2001.paths.models.tutorial
-
Class for a tutorial paragraph A paragraph consists of a title, content and an image path.
- TutorialParagraph(String, String) - Constructor for class edu.ntnu.idatt2001.paths.models.tutorial.TutorialParagraph
-
Creates a new tutorial paragraph with a title and content.
- TutorialParagraph(String, String, String) - Constructor for class edu.ntnu.idatt2001.paths.models.tutorial.TutorialParagraph
-
Creates a new tutorial paragraph with a title, content and an image path.
- TutorialParagraphPane - Class in edu.ntnu.idatt2001.paths.views.tutorial
-
A block of text and image to be displayed in the tutorial.
- TutorialParagraphPane(TutorialParagraph) - Constructor for class edu.ntnu.idatt2001.paths.views.tutorial.TutorialParagraphPane
-
Creates a new TutorialParagraph with a title, text and image.
U
- UNKNOWN - Enum constant in enum class edu.ntnu.idatt2001.paths.models.actions.ActionTypeEnum
-
Unknown action.
- UNKNOWN - Enum constant in enum class edu.ntnu.idatt2001.paths.models.goals.GoalTypeEnum
-
Unknown goal.
- UnplayableStoryException - Exception Class in edu.ntnu.idatt2001.paths.exceptions
-
Exception thrown when a story is unplayable
- UnplayableStoryException(String) - Constructor for exception class edu.ntnu.idatt2001.paths.exceptions.UnplayableStoryException
-
Creates a new UnplayableStoryException with a message
- updateCanvasGraphic(DraggableDiagramPane, double, double) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- updateCanvasGraphic(DraggableDiagramPane, double, double) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Updates the canvas graphic of the diagram pane
- updateGameTitle(Game, Passage) - Method in interface edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameController
- updateGameTitle(Game, Passage) - Method in class edu.ntnu.idatt2001.paths.controllers.playgame.PlayGameControllerImpl
-
Updates the game title and subtitle based on the game state.
- updateLinePostion() - Method in class edu.ntnu.idatt2001.paths.views.storyeditor.PassageNodeLink
-
Updates the line position of the passage node link
- updateLink(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- updateLink(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Updates the link based on the text field values and actions chosen Updates the story to reflect this change
- updateLinkPositions(List<Node>) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- updateLinkPositions(List<Node>) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Updates the link positions of the passage nodes in the diagram pane
- updateSelectedPassage(ActionEvent) - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- updateSelectedPassage(ActionEvent) - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Update the selected passage with the chosen title and content in the fields
- updateStoryTitle() - Method in interface edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorController
- updateStoryTitle() - Method in class edu.ntnu.idatt2001.paths.controllers.storyeditor.StoryEditorControllerImpl
-
Updates the story title.
V
- Validation - Class in edu.ntnu.idatt2001.paths.validation
-
Class for validating objects.
- Validation() - Constructor for class edu.ntnu.idatt2001.paths.validation.Validation
- ValidationMessage - Enum Class in edu.ntnu.idatt2001.paths.validation
-
Enum for validation messages.
- valueOf(String) - Static method in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idatt2001.paths.file.FileExtensionEnum
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idatt2001.paths.models.actions.ActionTypeEnum
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idatt2001.paths.models.game.GameDifficultyEnum
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idatt2001.paths.models.goals.GoalTypeEnum
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idatt2001.paths.validation.RegexEnum
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idatt2001.paths.views.ColorEnum
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idatt2001.paths.views.FontEnum
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idatt2001.paths.file.FileExtensionEnum
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idatt2001.paths.models.actions.ActionTypeEnum
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idatt2001.paths.models.game.GameDifficultyEnum
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idatt2001.paths.models.goals.GoalTypeEnum
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idatt2001.paths.models.player.PlayerStatEnum
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idatt2001.paths.validation.RegexEnum
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idatt2001.paths.validation.ValidationMessage
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idatt2001.paths.views.ColorEnum
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idatt2001.paths.views.FontEnum
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- W_RESIZE - Enum constant in enum class edu.ntnu.idatt2001.paths.controllers.DragResizeMod.State
- WARNING_RED - Enum constant in enum class edu.ntnu.idatt2001.paths.views.ColorEnum
-
A light red for displaying something that should be noticed.
- writeStory(Story) - Method in class edu.ntnu.idatt2001.paths.file.StoryFileWriter
-
Method to write a story to a file.
- WrongFileExtensionException - Exception Class in edu.ntnu.idatt2001.paths.exceptions
-
Thrown if an extension of a file is invalid.
- WrongFileExtensionException() - Constructor for exception class edu.ntnu.idatt2001.paths.exceptions.WrongFileExtensionException
-
Constructor for the a wrong file extension exception.
- WrongFileExtensionException(String) - Constructor for exception class edu.ntnu.idatt2001.paths.exceptions.WrongFileExtensionException
-
Constructor for the a wrong file extension exception.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form