Package game

Klasse Output

java.lang.Object
game.Output

public class Output extends Object
This class holds all the prints of the other classes
Version:
1.0
Autor:
Isabell Hans
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    Constructor for the class Output
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Used to tell player what the options are
    void
    Prints out all cards, their values and functions
    void
    Used to request number of players
    void
    Explains functionality of card Baron
    void
    Informs about cancellation of action
    void
    Used to tell that player can't choose him- or herself
    void
    used to tell that the first cards were drawn
    void
    Used to tell that cards are not availabe
    void
    Asks player which other player to pick
    void
    Asks player to choose a number
    void
    Used to confirm a question asked before
    void
    Explains functionality of card Countess
    void
    Used to figure out who starts the round
    void
    Informs player that countess has to be discarded
    void
    Informs player that he or she discarded the countess
    void
    end()
    Prints out THE END
    void
    Explains functionality of card Gaurd
    void
    Explains functionality of card Handmaid
    void
    Prints out possible commands at the beginning of a game
    void
    Used to request the names of the players
    void
    Explains functionality of card King
    void
    Used to tell that a player got knocked out of the round
    void
    Used to tell that a player can stay in the round
    void
    Used when more than one player won this round
    void
    Used to tell that name already exists
    void
    Used to tell that name couln't be found
    void
    Used to tell player to type in command
    void
    Used ask if player wants to start a new game
    void
    Used to start a new round
    void
    Used to tell that input is not a number
    void
    Used to inform that no players can be chosen
    void
    Used to tell that a player can't be chosen
    void
    Used to tell that input was no card name
    void
    Used to tell that input was no command
    void
    Used to tell that input is no valid number
    void
    Used when one player one this round
    void
    Explains functionality of card Priest
    void
    Explains functionality of card Princess
    void
    Explains functionality of card Prince
    void
    Used to tell that player is now protected
    void
    Asks player which card he or she wants to pick
    void
    Used to inform player that he or she selected him- or herself
    void
    Prints out possible commands during a game
    void
    Used to start round 1
    void
    Used to print out options at the beginning of a new game
    void
    tie()
    Used if there is a tie
    void
    Used to welcome players to the game
    void
    Used to tell who won the game

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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