Class ConversationPlayer

java.lang.Object
rocks.gravili.notquests.paper.conversation.ConversationPlayer

public class ConversationPlayer extends Object
  • Constructor Details

  • Method Details

    • play

      public void play()
    • next

      public boolean next(ConversationLine currentLine, boolean deletePrevious)
      Continues the conversation. Called, when either (1) starting line is called or (2) when the next line is NOT a clickable option line.
      Parameters:
      currentLine -
      Returns:
    • nextPlayer

      public void nextPlayer(ArrayList<ConversationLine> playerLines)
      Called when the next lines (playerLines) are clickable option lines
      Parameters:
      playerLines -
    • findConversationLinesWhichFulfillsCondition

      public ArrayList<ConversationLine> findConversationLinesWhichFulfillsCondition(ArrayList<ConversationLine> conversationLines)
    • sendLine

      public void sendLine(ConversationLine conversationLine, boolean deletePrevious)
      Sends the player a normal text line. This is NOT a clickable/option line.
      Parameters:
      conversationLine -
    • sendOptionLine

      public void sendOptionLine(ConversationLine conversationLine)
      Sends the player a clickable option text. The conversation will not continue until the player clicks it
      Parameters:
      conversationLine -
    • chooseOption

      public void chooseOption(String option)
      Called when the player chooses an answer (clicks in chat).
      Parameters:
      option - option which the player chooses = exact message
    • removeOldMessages

      public void removeOldMessages()
      Resends the chat history without ANY conversation messages
    • getQuestPlayer

      public final QuestPlayer getQuestPlayer()