Package game
Klasse Output
java.lang.Object
game.Output
This class holds all the prints of the other classes
- Version:
- 1.0
- Autor:
- Isabell Hans
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Used to tell player what the options arevoid
allCards()
Prints out all cards, their values and functionsvoid
Used to request number of playersvoid
Explains functionality of card Baronvoid
Informs about cancellation of actionvoid
Used to tell that player can't choose him- or herselfvoid
used to tell that the first cards were drawnvoid
Used to tell that cards are not availabevoid
choose()
Asks player which other player to pickvoid
Asks player to choose a numbervoid
confirm()
Used to confirm a question asked beforevoid
Explains functionality of card Countessvoid
Used to figure out who starts the roundvoid
Informs player that countess has to be discardedvoid
Informs player that he or she discarded the countessvoid
end()
Prints out THE ENDvoid
Explains functionality of card Gaurdvoid
Explains functionality of card Handmaidvoid
Prints out possible commands at the beginning of a gamevoid
Used to request the names of the playersvoid
kingText()
Explains functionality of card Kingvoid
Used to tell that a player got knocked out of the roundvoid
lucky()
Used to tell that a player can stay in the roundvoid
Used when more than one player won this roundvoid
Used to tell that name already existsvoid
Used to tell that name couln't be foundvoid
Used to tell player to type in commandvoid
newGame()
Used ask if player wants to start a new gamevoid
newRound()
Used to start a new roundvoid
noNumber()
Used to tell that input is not a numbervoid
Used to inform that no players can be chosenvoid
Used to tell that a player can't be chosenvoid
Used to tell that input was no card namevoid
Used to tell that input was no commandvoid
Used to tell that input is no valid numbervoid
Used when one player one this roundvoid
Explains functionality of card Priestvoid
Explains functionality of card Princessvoid
Explains functionality of card Princevoid
proected()
Used to tell that player is now protectedvoid
Asks player which card he or she wants to pickvoid
Used to inform player that he or she selected him- or herselfvoid
Prints out possible commands during a gamevoid
Used to start round 1void
Used to print out options at the beginning of a new gamevoid
tie()
Used if there is a tievoid
welcome()
Used to welcome players to the gamevoid
wonHeart()
Used to tell who won the game
-
Konstruktordetails
-
Output
public Output()Constructor for the class Output
-
-
Methodendetails
-
welcome
public void welcome()Used to welcome players to the game -
startFirstRound
public void startFirstRound()Used to start round 1 -
newRound
public void newRound()Used to start a new round -
askNumPlayers
public void askNumPlayers()Used to request number of players -
insertName
public void insertName()Used to request the names of the players -
dateQuestion
public void dateQuestion()Used to figure out who starts the round -
newGame
public void newGame()Used ask if player wants to start a new game -
confirm
public void confirm()Used to confirm a question asked before -
cancelled
public void cancelled()Informs about cancellation of action -
startHelp
public void startHelp()Used to print out options at the beginning of a new game -
actionOrHelp
public void actionOrHelp()Used to tell player what the options are -
newCommand
public void newCommand()Used to tell player to type in command -
helpBegin
public void helpBegin()Prints out possible commands at the beginning of a game -
showCommandExplanations
public void showCommandExplanations()Prints out possible commands during a game -
baronText
public void baronText()Explains functionality of card Baron -
countessText
public void countessText()Explains functionality of card Countess -
guardText
public void guardText()Explains functionality of card Gaurd -
handmaidText
public void handmaidText()Explains functionality of card Handmaid -
kingText
public void kingText()Explains functionality of card King -
priestText
public void priestText()Explains functionality of card Priest -
princeText
public void princeText()Explains functionality of card Prince -
princessText
public void princessText()Explains functionality of card Princess -
allCards
public void allCards()Prints out all cards, their values and functions -
tie
public void tie()Used if there is a tie -
knockedOut
public void knockedOut()Used to tell that a player got knocked out of the round -
lucky
public void lucky()Used to tell that a player can stay in the round -
proected
public void proected()Used to tell that player is now protected -
cardsNotAvailable
public void cardsNotAvailable()Used to tell that cards are not availabe -
cardsDrawn
public void cardsDrawn()used to tell that the first cards were drawn -
selectCard
public void selectCard()Asks player which card he or she wants to pick -
choose
public void choose()Asks player which other player to pick -
chooseNumber
public void chooseNumber()Asks player to choose a number -
selectedSelf
public void selectedSelf()Used to inform player that he or she selected him- or herself -
discardCountess
public void discardCountess()Informs player that countess has to be discarded -
discardedCountess
public void discardedCountess()Informs player that he or she discarded the countess -
moreLetters
public void moreLetters()Used when more than one player won this round -
oneLetter
public void oneLetter()Used when one player one this round -
wonHeart
public void wonHeart()Used to tell who won the game -
nameExists
public void nameExists()Used to tell that name already exists -
nameNotFound
public void nameNotFound()Used to tell that name couln't be found -
noValidNumber
public void noValidNumber()Used to tell that input is no valid number -
noNumber
public void noNumber()Used to tell that input is not a number -
noValidCommand
public void noValidCommand()Used to tell that input was no command -
noValidCardName
public void noValidCardName()Used to tell that input was no card name -
noPlayers
public void noPlayers()Used to inform that no players can be chosen -
notANameOption
public void notANameOption()Used to tell that a player can't be chosen -
cantChooseSelf
public void cantChooseSelf()Used to tell that player can't choose him- or herself -
end
public void end()Prints out THE END
-