A B C D F G I P R S T U V 
All Classes All Packages

A

addEntry(GameLogEntry) - Method in class tk.dmanstrator.connectfour.log.GameLog
Adds a given entry to the internal game log.

B

build() - Method in class tk.dmanstrator.connectfour.log.GameLogEntryBuilder
Builds the GameLogEntry.

C

Connect4 - Class in tk.dmanstrator.connectfour
Main class containing the logic for the Connect4 game.
Connect4(String, String) - Constructor for class tk.dmanstrator.connectfour.Connect4
Constructor for creating a Connect4 game with two players.

D

DEFAULT - tk.dmanstrator.connectfour.log.GameLogEntry.RoundTitle
Default title with a round number.
DefaultConnect4 - Class in tk.dmanstrator.connectfour
Implementation for a default Connect4 game.
DefaultConnect4(String, String) - Constructor for class tk.dmanstrator.connectfour.DefaultConnect4
Constructor for a two player default Connect4 game.
DRAW - tk.dmanstrator.connectfour.log.GameLogEntry.RoundTitle
Draw entry.

F

FreePositionedConnect4 - Class in tk.dmanstrator.connectfour
Implementation for a free positioned Connect4 game.
FreePositionedConnect4(String, String) - Constructor for class tk.dmanstrator.connectfour.FreePositionedConnect4
Constructor for a 2 player game free positioned Connect4 game.

G

GAME_OVER - tk.dmanstrator.connectfour.log.GameLogEntry.RoundTitle
Game over entry.
GameLog - Class in tk.dmanstrator.connectfour.log
Class representing a log for a game.
GameLog() - Constructor for class tk.dmanstrator.connectfour.log.GameLog
 
GameLogEntry - Class in tk.dmanstrator.connectfour.log
Class representing an entry for the GameLog.
GameLogEntry(String, int, int, boolean, GameLogEntry.RoundTitle) - Constructor for class tk.dmanstrator.connectfour.log.GameLogEntry
Constructor for the entry.
GameLogEntry.RoundTitle - Enum in tk.dmanstrator.connectfour.log
Represents the title of a round.
GameLogEntryBuilder - Class in tk.dmanstrator.connectfour.log
Builder class for the GameLogEntry.
GameLogEntryBuilder() - Constructor for class tk.dmanstrator.connectfour.log.GameLogEntryBuilder
 
getAllEntriesAsString() - Method in class tk.dmanstrator.connectfour.log.GameLog
Gets all entries from the log as a string separated with a newline.
getAsString() - Method in class tk.dmanstrator.connectfour.log.GameLogEntry
Gets the entry as a string.
getCurrentField() - Method in class tk.dmanstrator.connectfour.Connect4
Returns the current field as string with column and row numbers.

Example:
getCurrentField(boolean) - Method in class tk.dmanstrator.connectfour.Connect4
Returns the current field as string.
getCurrentPlayerName() - Method in class tk.dmanstrator.connectfour.Connect4
Returns the name of the current player.
getEntries() - Method in class tk.dmanstrator.connectfour.log.GameLog
Returns an immutable view of the current entries.
getEntriesAsString(boolean) - Method in class tk.dmanstrator.connectfour.log.GameLog
Gets all valid or invalid entries from the log as a string separated with a newline.
getEntry(int) - Method in class tk.dmanstrator.connectfour.log.GameLog
Gets the log entry from a given position.
getEntryFromRound(int) - Method in class tk.dmanstrator.connectfour.log.GameLog
Gets the log entry from a specific round.
getFirstPlayerName() - Method in class tk.dmanstrator.connectfour.Connect4
Returns the name of the first player.
getGameLog() - Method in class tk.dmanstrator.connectfour.Connect4
Returns the GameLog for this game.
getInvalidEntries() - Method in class tk.dmanstrator.connectfour.log.GameLog
Returns all invalid entries from the log.
getLastEntry() - Method in class tk.dmanstrator.connectfour.log.GameLog
Gets the last entry from the log.
getMessage() - Method in class tk.dmanstrator.connectfour.log.GameLogEntry
Returns the message of the entry.
getMessage() - Method in class tk.dmanstrator.connectfour.RoundResult
Returns the message for this round.
getPlayedRounds() - Method in class tk.dmanstrator.connectfour.Connect4
Returns the amount of valid played rounds.
getPlayerName() - Method in class tk.dmanstrator.connectfour.RoundResult
Returns the name of the player for this round.
getPlayerNumber() - Method in class tk.dmanstrator.connectfour.log.GameLogEntry
Returns the player number of the entry.
getRoundNumber() - Method in class tk.dmanstrator.connectfour.log.GameLogEntry
Returns the round number of the entry.
getRoundTitle() - Method in class tk.dmanstrator.connectfour.log.GameLogEntry
Returns the GameLogEntry.RoundTitle of the entry.
getSecondPlayerName() - Method in class tk.dmanstrator.connectfour.Connect4
Returns the name of the second player.
getTitle() - Method in enum tk.dmanstrator.connectfour.log.GameLogEntry.RoundTitle
Returns the title.
getValidEntries() - Method in class tk.dmanstrator.connectfour.log.GameLog
Returns all valid entries from the log.

I

INVALID - tk.dmanstrator.connectfour.log.GameLogEntry.RoundTitle
Invalid entry.
isDraw() - Method in class tk.dmanstrator.connectfour.Connect4
Tells if the game has ended and if nobody won.
isFromPlayer() - Method in enum tk.dmanstrator.connectfour.log.GameLogEntry.RoundTitle
Returns if the entry is from a player.
isGameOver() - Method in class tk.dmanstrator.connectfour.Connect4
Tells if the game has ended.
isValid() - Method in class tk.dmanstrator.connectfour.RoundResult
Returns if the round was valid or not.
isValidRound() - Method in class tk.dmanstrator.connectfour.log.GameLogEntry
Returns flag telling if it was a valid round.

P

play(int) - Method in class tk.dmanstrator.connectfour.Connect4
Used to play a round of a DefaultConnect4 game.
play(int) - Method in class tk.dmanstrator.connectfour.DefaultConnect4
Overrides the method to set a flag.
play(int) - Method in class tk.dmanstrator.connectfour.FreePositionedConnect4
Overrides the method to throw an UnsupportedOperationException since it's not allowed to be called on a free positioned Connect4 game.
play(int, int) - Method in class tk.dmanstrator.connectfour.Connect4
Used to play a round of a FreePositionedConnect4 game.
play(int, int) - Method in class tk.dmanstrator.connectfour.DefaultConnect4
Overrides the method to check for a flag.

R

removeEntry(GameLogEntry) - Method in class tk.dmanstrator.connectfour.log.GameLog
Removes a given entry from the internal game log.
removeEntryFromRound(int) - Method in class tk.dmanstrator.connectfour.log.GameLog
Removes the entry with a given round number from the log.
RoundResult - Class in tk.dmanstrator.connectfour
POJO class representing the result of a round.
RoundResult(String, boolean) - Constructor for class tk.dmanstrator.connectfour.RoundResult
Constructor for a round result taking a message and a flag if the round was valid.
RoundResult(String, String, boolean) - Constructor for class tk.dmanstrator.connectfour.RoundResult
Constructor for a round result taking a player, a message and a flag if the round was valid.

S

setMessage(String) - Method in class tk.dmanstrator.connectfour.log.GameLogEntryBuilder
Sets the message for the entry.
setPlayerNumber(int) - Method in class tk.dmanstrator.connectfour.log.GameLogEntryBuilder
Sets the player number for the entry.
setRoundNumber(int) - Method in class tk.dmanstrator.connectfour.log.GameLogEntryBuilder
Sets the round number for the entry.
setTitle(GameLogEntry.RoundTitle) - Method in class tk.dmanstrator.connectfour.log.GameLogEntryBuilder
Sets the GameLogEntry.RoundTitle for the entry.
setValidRound(boolean) - Method in class tk.dmanstrator.connectfour.log.GameLogEntryBuilder
Sets the validity of the round.

T

tk.dmanstrator.connectfour - package tk.dmanstrator.connectfour
Package containing main classes for the Connect4 game.
tk.dmanstrator.connectfour.log - package tk.dmanstrator.connectfour.log
Package containing main files for the GameLog for the Connect4 game.
toString() - Method in class tk.dmanstrator.connectfour.Connect4
Returns the current field as string without column and row numbers.
toString() - Method in class tk.dmanstrator.connectfour.log.GameLog
Returns all entries as a string.
toString() - Method in class tk.dmanstrator.connectfour.log.GameLogEntry
Returns the entry as a string.
toString() - Method in class tk.dmanstrator.connectfour.RoundResult
toString overload returning Result of Round: <Message>.

U

UNKNOWN - tk.dmanstrator.connectfour.log.GameLogEntry.RoundTitle
Unknown entry title for maintainability.

V

valueOf(String) - Static method in enum tk.dmanstrator.connectfour.log.GameLogEntry.RoundTitle
Returns the enum constant of this type with the specified name.
values() - Static method in enum tk.dmanstrator.connectfour.log.GameLogEntry.RoundTitle
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D F G I P R S T U V 
All Classes All Packages