Class RockPaperScissors

java.lang.Object
net.flectone.pulse.module.command.rockpaperscissors.model.RockPaperScissors

public class RockPaperScissors extends Object
A round of rock-paper-scissors between two players.
  • Constructor Details

    • RockPaperScissors

      public RockPaperScissors(UUID sender, UUID receiver)
      Starts a round with a fresh id.
      Parameters:
      sender - who sent the invitation
      receiver - who was invited
    • RockPaperScissors

      public RockPaperScissors(UUID id, UUID sender, UUID receiver)
      Recreates a round that already has an id, used when it arrives from another server.
      Parameters:
      id - the game id
      sender - who sent the invitation
      receiver - who was invited
  • Method Details

    • getSender

      public UUID getSender()
    • getReceiver

      public UUID getReceiver()
    • getId

      public UUID getId()
    • getSenderMove

      public String getSenderMove()
    • setSenderMove

      public void setSenderMove(String senderMove)