Index

D G I M P R S 
Alle Klassen und Schnittstellen|Alle Packages

D

Deck - Klasse in game
This class provides the functionality of a deck of cards
Deck() - Konstruktor für Klasse game.Deck
Constructor for the class Deck
discard(Card) - Methode in Klasse game.Player
This method discards one card from this players handcards and adds it to the list of discarded cards
discardAll() - Methode in Klasse game.Player
This method discards all of the cards of this player and adds them to the list of discarded cards
draw() - Methode in Klasse game.Deck
This method draws and returns the first card
drawCard(Card) - Methode in Klasse game.Player
This method is used to draw a specific card
drawCard(Deck) - Methode in Klasse game.Player
This method is used to draw a card from the deck

G

game - Package game
 
GameLogic - Klasse in game
This class provides the logic for a game
GameLogic(ArrayList<Player>) - Konstruktor für Klasse game.GameLogic
Constructor for the class GameLogic
getCardList() - Methode in Klasse game.Player
This method returns the list of this players handcards
getCardNames() - Methode in Klasse game.Player
Returns the cards in this players hands as an arraylist
getCardValue() - Methode in Klasse game.Player
This method returns a list of this players handcard value
getDiscardedCardsValues() - Methode in Klasse game.Player
Gets the sum of all values of the discarded cards of this player
getName() - Methode in Klasse game.Player
Returns the name of this player
getScore() - Methode in Klasse game.Player
Returns the score of this player

I

increaseScore() - Methode in Klasse game.Player
Increases the score of this player
initializeGame(Scanner) - Methode in Klasse game.MainGame
Queries the parameters of this game on the console
isActive() - Methode in Klasse game.Player
Returns if this player is an active player of the round
isEmpty() - Methode in Klasse game.Deck
Checks if this deck is empty
isProtected() - Methode in Klasse game.Player
This method checks if this player is currently protected

M

main(String[]) - Statische Methode in Klasse game.MainGame
The main method
MainGame - Klasse in game
This is the main class for the game Love Letter
MainGame() - Konstruktor für Klasse game.MainGame
This is the constructor for the Main Game

P

play(Scanner, Player) - Methode in Klasse game.GameLogic
This method starts a round in the current game
Player - Klasse in game
This class provides functionalities and properties regarding the players
Player(String) - Konstruktor für Klasse game.Player
Constructor for the class Player

R

reset() - Methode in Klasse game.Player
Resets this players variables and handcards

S

setActiveStatus(boolean) - Methode in Klasse game.Player
Sets the active status of this player
setCardList(ArrayList<Card>) - Methode in Klasse game.Player
This method replaces this players list of handcards with a new one
setProtection(boolean) - Methode in Klasse game.Player
This method sets the protection
showCards() - Methode in Klasse game.Player
This method shows the card in this players hand
shuffle() - Methode in Klasse game.Deck
This method randomly shuffles the deck
start(Scanner) - Methode in Klasse game.GameLogic
This method starts a new game round by drawing cards
startNewGame(Scanner) - Methode in Klasse game.GameLogic
This method starts a new game
startNewGame(Scanner, ArrayList<Player>) - Methode in Klasse game.MainGame
This method starts a new game round
D G I M P R S 
Alle Klassen und Schnittstellen|Alle Packages