Skip navigation links
A B C D E F G H I L M N P R S T V W X 

A

ABOUT_SCREEN - Static variable in class at.pwd.boardgame.controller.AboutController
 
AboutController - Class in at.pwd.boardgame.controller
Controller responsible for handling the about screen
AboutController() - Constructor for class at.pwd.boardgame.controller.AboutController
 
addAgent(File, String) - Method in class at.pwd.boardgame.services.ConfigService
adds a new agent to the configuration.
ADDAGENT_SCREEN - Static variable in class at.pwd.boardgame.controller.AddAgentController
 
AddAgentController - Class in at.pwd.boardgame.controller
Controller responsible for adding new clients.
AddAgentController() - Constructor for class at.pwd.boardgame.controller.AddAgentController
 
Agent<GameType extends Game,ActionType extends AgentAction> - Interface in at.pwd.boardgame.game.agent
The interface describing an Agent.
AgentAction<GameType extends Game> - Interface in at.pwd.boardgame.game.agent
Encapsulates a certain action that an Agent plays.
AgentAction.NextAction - Enum in at.pwd.boardgame.game.agent
Described whether the applied action ends the turn (NEXT_PLAYER) or the same player plays again (SAME_PLAYER)
AgentService - Class in at.pwd.boardgame.services
Singleton service that manages the agents.
applyAction(GameType) - Method in interface at.pwd.boardgame.game.agent.AgentAction
Applies the game by applying the given action (e.g.
applyAction(MancalaGame) - Method in class at.pwd.boardgame.game.mancala.agent.MancalaAgentAction
 
at.pwd.boardgame - package at.pwd.boardgame
 
at.pwd.boardgame.controller - package at.pwd.boardgame.controller
 
at.pwd.boardgame.game.agent - package at.pwd.boardgame.game.agent
 
at.pwd.boardgame.game.base - package at.pwd.boardgame.game.base
 
at.pwd.boardgame.game.mancala - package at.pwd.boardgame.game.mancala
 
at.pwd.boardgame.game.mancala.agent - package at.pwd.boardgame.game.mancala.agent
 
at.pwd.boardgame.services - package at.pwd.boardgame.services
 

B

Board - Interface in at.pwd.boardgame.game.base
An interface describing an abstract board.
BoardController - Class in at.pwd.boardgame.controller
Controller for handling the Mancala Boardgame
BoardController() - Constructor for class at.pwd.boardgame.controller.BoardController
 

C

checkIfPlayerWins() - Method in class at.pwd.boardgame.game.mancala.MancalaGame
Checks if a player is winning.
close(Event) - Method in class at.pwd.boardgame.controller.AddAgentController
Closes this window
ConfigService - Class in at.pwd.boardgame.services
Persists and loads the configuration of the mancala game.
convertStreamToString(InputStream) - Static method in class at.pwd.boardgame.services.XSLTService
Reads the entire string from an InputStream
copy() - Method in interface at.pwd.boardgame.game.base.State
 
copy() - Method in class at.pwd.boardgame.game.mancala.MancalaState
 
copy() - Method in class at.pwd.boardgame.game.mancala.MancalaState.PlayerTurnStateProperty
 
copy() - Method in class at.pwd.boardgame.game.mancala.MancalaState.StoneNumProperty
 
create(String, InputStream) - Method in class at.pwd.boardgame.services.GameFactory
Creates a new game
created(ScreenFactory.BoardGameScreen) - Method in interface at.pwd.boardgame.services.ScreenFactory.OnCreatedListener
the method that is being called
createSetUpScreen() - Static method in class at.pwd.boardgame.controller.SetUpController
 
currentAgentProperty() - Method in class at.pwd.boardgame.controller.BoardController
 

D

doTurn(int, GameType) - Method in interface at.pwd.boardgame.game.agent.Agent
Should calculate the turn.
doTurn(int, MancalaGame) - Method in class at.pwd.boardgame.game.mancala.agent.MancalaHumanAgent
 

E

execute(String, StreamSource, Map<String, String>) - Method in class at.pwd.boardgame.services.XSLTService
Executes XSLT

F

fileChooser(Event) - Method in class at.pwd.boardgame.controller.AddAgentController
Opens the file chooser

G

Game<StateType extends State,BoardType extends Board> - Interface in at.pwd.boardgame.game.base
An interface describing an abstract Game.
GAME_BOARD_TRANFORMER - Static variable in class at.pwd.boardgame.game.mancala.MancalaGame
The transformer to create the view FXML
GAME_NAME - Static variable in class at.pwd.boardgame.game.mancala.MancalaGame
The name of this game
GameFactory - Class in at.pwd.boardgame.services
Factory service for creating games
getAgents() - Method in class at.pwd.boardgame.services.AgentService
 
getApp() - Static method in class at.pwd.boardgame.Main
 
getBoard() - Method in interface at.pwd.boardgame.game.base.Game
Returns the board configuration of the current game.
getBoard() - Method in class at.pwd.boardgame.game.mancala.MancalaGame
 
getComputationTime() - Method in class at.pwd.boardgame.controller.BoardController
 
getComputationTime() - Method in class at.pwd.boardgame.services.ConfigService
 
getCurrentAgent() - Method in class at.pwd.boardgame.controller.BoardController
 
getCurrentPlayer() - Method in interface at.pwd.boardgame.game.base.State
 
getCurrentPlayer() - Method in class at.pwd.boardgame.game.mancala.MancalaState
 
getDepotOfPlayer(int) - Method in class at.pwd.boardgame.game.mancala.MancalaBoard
Returns the depot id of the given playerId
getEnemySlotOf(String) - Method in class at.pwd.boardgame.game.mancala.MancalaBoard
Returns the ID of the enemy slot of the given id
getGame() - Method in class at.pwd.boardgame.controller.BoardController
 
getInstance() - Static method in class at.pwd.boardgame.services.AgentService
 
getInstance() - Static method in class at.pwd.boardgame.services.ConfigService
 
getInstance() - Static method in class at.pwd.boardgame.services.GameFactory
 
getInstance() - Static method in class at.pwd.boardgame.services.ScreenFactory
 
getInstance() - Static method in class at.pwd.boardgame.services.XSLTService
 
getNavigationController() - Method in class at.pwd.boardgame.services.ScreenFactory
 
getNum() - Method in class at.pwd.boardgame.game.mancala.MancalaState.StoneNumProperty
Gets the value of the property num.
getPlayerId() - Method in class at.pwd.boardgame.game.base.WinState
getter for the player ID
getSelectableSlots() - Method in class at.pwd.boardgame.game.mancala.MancalaGame
Returns a list of selectable slots for the current game state and current board
getSlotsPerPlayer() - Method in class at.pwd.boardgame.services.ConfigService
 
getState() - Method in interface at.pwd.boardgame.game.base.Game
Returns the state of the current game.
getState() - Method in class at.pwd.boardgame.game.base.WinState
getter for the state of winning
getState() - Method in class at.pwd.boardgame.game.mancala.MancalaGame
 
getState() - Method in class at.pwd.boardgame.game.mancala.MancalaState.PlayerTurnStateProperty
Gets the value of the property state.
getStoneProperty(String) - Method in class at.pwd.boardgame.game.mancala.MancalaState
Stone number property.
getStonesPerSlot() - Method in class at.pwd.boardgame.game.mancala.MancalaBoard
Getter for stones per slot
getStonesPerSlot() - Method in class at.pwd.boardgame.services.ConfigService
 
getViewXml() - Method in interface at.pwd.boardgame.game.base.Game
Returns the view as an FXML inputstream.
getViewXml() - Method in class at.pwd.boardgame.game.mancala.MancalaGame
 

H

handleAction(ActionEvent) - Method in class at.pwd.boardgame.controller.BoardController
Called when a slot is selected and this action should be handled.
handleAction(GameType, String) - Method in interface at.pwd.boardgame.game.agent.HumanAgent
HumanAgent has the additional "handleAction" method which is called when the human interacted with the board.
handleAction(MancalaGame, String) - Method in class at.pwd.boardgame.game.mancala.agent.MancalaHumanAgent
 
HumanAgent<GameType extends Game,ActionType extends AgentAction> - Interface in at.pwd.boardgame.game.agent
An agent that is played by a human.

I

init() - Static method in class at.pwd.boardgame.game.mancala.agent.MancalaHumanAgent
Adds MancalaHumanAgent to the AgentService
init() - Static method in class at.pwd.boardgame.game.mancala.MancalaGame
Registers MancalaGame to the GameFactory and initializes MancalaHumanAgent
initialize(URL, ResourceBundle) - Method in class at.pwd.boardgame.controller.AboutController
 
initialize(URL, ResourceBundle) - Method in class at.pwd.boardgame.controller.AddAgentController
 
initialize(URL, ResourceBundle) - Method in class at.pwd.boardgame.controller.BoardController
 
initialize(URL, ResourceBundle) - Method in class at.pwd.boardgame.controller.SetUpController
 
isDepot(String) - Method in class at.pwd.boardgame.game.mancala.MancalaBoard
Checks whether the given ID is a valid depot id
isSlot(String) - Method in class at.pwd.boardgame.game.mancala.MancalaBoard
Checks whether the given ID is a valid slot id
isSlotEnabledProperty(String) - Method in class at.pwd.boardgame.game.mancala.MancalaState
Slot enabled property.

L

load(Event) - Method in class at.pwd.boardgame.controller.AddAgentController
Loads the agent and displays the error
load(File, String) - Method in class at.pwd.boardgame.services.AgentService
Loads a new agent from the jarfile and registers it.
load(File) - Method in class at.pwd.boardgame.services.ConfigService
Loads the config from the given file
loadBoard(InputStream) - Method in interface at.pwd.boardgame.game.base.Game
This is called at the beginning loading the board.
loadBoard(InputStream) - Method in class at.pwd.boardgame.game.mancala.MancalaGame
 
loadScreen(URL, InputStream, ScreenFactory.OnCreatedListener) - Method in class at.pwd.boardgame.services.ScreenFactory
Loads a given screen
loadScreen(URL) - Method in class at.pwd.boardgame.services.ScreenFactory
Convenience method for loading a screen only by URL

M

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.

N

NavigationController - Class in at.pwd.boardgame.controller
Navigation Controller that is responsible for transitioning between screens: e.g.: SetUpController transitions to BoardController transitions to SetUpController
NavigationController() - Constructor for class at.pwd.boardgame.controller.NavigationController
 
next(String) - Method in class at.pwd.boardgame.game.mancala.MancalaBoard
Returns the next slot/depot given the id.
nextPlayer() - Method in interface at.pwd.boardgame.game.base.Game
Finishes the current players turn and starting the turn of the next player.
nextPlayer() - Method in class at.pwd.boardgame.game.mancala.MancalaGame
 
nextTurn() - Method in class at.pwd.boardgame.controller.BoardController
Called when current turn is finished and next players turn starts.
numProperty() - Method in class at.pwd.boardgame.game.mancala.MancalaState.StoneNumProperty
 

P

player1loadAi(ActionEvent) - Method in class at.pwd.boardgame.controller.SetUpController
Loads a new agent for player 1
player2loadAi(ActionEvent) - Method in class at.pwd.boardgame.controller.SetUpController
Loads a new agent for player 2
playerStates - Variable in class at.pwd.boardgame.game.mancala.MancalaState
 
PlayerTurnStateProperty() - Constructor for class at.pwd.boardgame.game.mancala.MancalaState.PlayerTurnStateProperty
 
PlayerTurnStateProperty(boolean) - Constructor for class at.pwd.boardgame.game.mancala.MancalaState.PlayerTurnStateProperty
 

R

register(Agent) - Method in class at.pwd.boardgame.services.AgentService
Registers a new Agent.
register(String, Class<? extends Game>) - Method in class at.pwd.boardgame.services.GameFactory
Registers a new game

S

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.

T

toString() - Method in class at.pwd.boardgame.game.mancala.agent.MancalaHumanAgent
 

V

valueOf(String) - Static method in enum at.pwd.boardgame.game.agent.AgentAction.NextAction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum at.pwd.boardgame.game.base.WinState.States
Returns the enum constant of this type with the specified name.
values() - Static method in enum at.pwd.boardgame.game.agent.AgentAction.NextAction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum at.pwd.boardgame.game.base.WinState.States
Returns an array containing the constants of this enum type, in the order they are declared.

W

WinState - Class in at.pwd.boardgame.game.base
Describes if there is a winner and if there is a winner, who is this winner.
WinState(WinState.States, int) - Constructor for class at.pwd.boardgame.game.base.WinState
Constructor
WinState.States - Enum in at.pwd.boardgame.game.base
Enum describing the different states of winning

X

XSLTService - Class in at.pwd.boardgame.services
Singleton service for executing XSL Transformations on XML
A B C D E F G H I L M N P R S T V W X 
Skip navigation links