- Main - Class in at.pwd.boardgame
-
Main class bootstrapping the UI and initializing MancalaGame
- Main() - Constructor for class at.pwd.boardgame.Main
-
- main(String[]) - Static method in class at.pwd.boardgame.Main
-
- MancalaAgent - Interface in at.pwd.boardgame.game.mancala.agent
-
Interface for a Agent for the game Mancala.
- MancalaAgentAction - Class in at.pwd.boardgame.game.mancala.agent
-
Agent action for the game Mancala
- MancalaAgentAction(String) - Constructor for class at.pwd.boardgame.game.mancala.agent.MancalaAgentAction
-
Construcor for the Agent Action
- MancalaBoard - Class in at.pwd.boardgame.game.mancala
-
Board for the game Mancala.
- MancalaBoard() - Constructor for class at.pwd.boardgame.game.mancala.MancalaBoard
-
- MancalaGame - Class in at.pwd.boardgame.game.mancala
-
MancalaGame is an implementation of the Game interface for Mancala.
- MancalaGame() - Constructor for class at.pwd.boardgame.game.mancala.MancalaGame
-
Default constructor used by GameFactory
- MancalaGame(MancalaGame) - Constructor for class at.pwd.boardgame.game.mancala.MancalaGame
-
Creates a semi deep copy of the given MancalaGame (State is copied, board is kept the same)
- MancalaGame(MancalaState, MancalaBoard) - Constructor for class at.pwd.boardgame.game.mancala.MancalaGame
-
Creates a new MancalaGame
- MancalaHumanAgent - Class in at.pwd.boardgame.game.mancala.agent
-
HumanAgent for the game Mancala
- MancalaHumanAgent() - Constructor for class at.pwd.boardgame.game.mancala.agent.MancalaHumanAgent
-
- MancalaState - Class in at.pwd.boardgame.game.mancala
-
State of the current MancalaGame.
- MancalaState() - Constructor for class at.pwd.boardgame.game.mancala.MancalaState
-
Constructor for custom states, useful for testing
- MancalaState(MancalaBoard) - Constructor for class at.pwd.boardgame.game.mancala.MancalaState
-
Creates the default MancalaState for the board, where each slot has "stones per slot" many
stones.
- MancalaState.PlayerTurnStateProperty - Class in at.pwd.boardgame.game.mancala
-
Class containing whether the current slot/depot is enabled for the current player turn state.
- MancalaState.StoneNumProperty - Class in at.pwd.boardgame.game.mancala
-
Class containing the number of stones for a depot/slot.
- save() - Method in class at.pwd.boardgame.services.ConfigService
-
Saves the config to the previously (in load()) specified configuration
- ScreenFactory - Class in at.pwd.boardgame.services
-
Service for creating screens.
- ScreenFactory.BoardGameScreen - Interface in at.pwd.boardgame.services
-
Interface for a Screen that is shown by ScreenFactory
- ScreenFactory.OnCreatedListener - Interface in at.pwd.boardgame.services
-
Interface that is called when a screen is successfully created
- selectSlot(String) - Method in class at.pwd.boardgame.game.mancala.MancalaGame
-
Selects the slot with the given ID and calculates the turn.
- setAgents(List<Agent>) - Method in class at.pwd.boardgame.controller.BoardController
-
sets the agents that are playing
- setComputationTime(int) - Method in class at.pwd.boardgame.controller.BoardController
-
Sets the computation time in seconds when a normal agent has a timeout
- setComputationTime(int) - Method in class at.pwd.boardgame.services.ConfigService
-
Sets the computation time (in seconds) and saves
- setCurrentPlayer(int) - Method in interface at.pwd.boardgame.game.base.State
-
- setCurrentPlayer(int) - Method in class at.pwd.boardgame.game.mancala.MancalaState
-
- setGame(MancalaGame) - Method in class at.pwd.boardgame.controller.BoardController
-
Sets the current MancalaGame that is currently displayed
- setNavigationController(NavigationController) - Method in class at.pwd.boardgame.controller.AboutController
-
- setNavigationController(NavigationController) - Method in class at.pwd.boardgame.controller.AddAgentController
-
- setNavigationController(NavigationController) - Method in class at.pwd.boardgame.controller.BoardController
-
- setNavigationController(NavigationController) - Method in class at.pwd.boardgame.controller.SetUpController
-
- setNavigationController(NavigationController) - Method in interface at.pwd.boardgame.services.ScreenFactory.BoardGameScreen
-
- setNum(int) - Method in class at.pwd.boardgame.game.mancala.MancalaState.StoneNumProperty
-
Sets the value of the property num.
- setScreen(Parent) - Method in class at.pwd.boardgame.controller.NavigationController
-
Transition to a new screen
- setSlotsPerPlayer(int) - Method in class at.pwd.boardgame.services.ConfigService
-
Sets the slots per player and saves
- setState(boolean) - Method in class at.pwd.boardgame.game.mancala.MancalaState.PlayerTurnStateProperty
-
Sets the value of the property state.
- setStonesPerSlot(int) - Method in class at.pwd.boardgame.game.mancala.MancalaBoard
-
Setter for stones per slot.
- setStonesPerSlot(int) - Method in class at.pwd.boardgame.services.ConfigService
-
Sets the stones per slot and saves
- SetUpController - Class in at.pwd.boardgame.controller
-
Set up a new MancalaGame
- SetUpController() - Constructor for class at.pwd.boardgame.controller.SetUpController
-
Constructor, loading the configuration
- show() - Static method in class at.pwd.boardgame.controller.AboutController
-
- show() - Static method in class at.pwd.boardgame.controller.AddAgentController
-
- start() - Method in class at.pwd.boardgame.controller.BoardController
-
- start(Stage) - Method in class at.pwd.boardgame.Main
-
- startGamePressed(ActionEvent) - Method in class at.pwd.boardgame.controller.SetUpController
-
Starts the game: generates the board, initializes the BoardController and transitions
- State - Interface in at.pwd.boardgame.game.base
-
Created by rfischer on 14/04/2017.
- stateProperty() - Method in class at.pwd.boardgame.game.mancala.MancalaState.PlayerTurnStateProperty
-
- states - Variable in class at.pwd.boardgame.game.mancala.MancalaState
-
- StoneNumProperty(int) - Constructor for class at.pwd.boardgame.game.mancala.MancalaState.StoneNumProperty
-
- stones - Variable in class at.pwd.boardgame.game.mancala.MancalaState
-
- stonesIn(String) - Method in class at.pwd.boardgame.game.mancala.MancalaState
-
returns how many stones are in the given slot/depot.