Class UniqueUser


  • public class UniqueUser
    extends java.lang.Object
    Created with IntelliJ IDEA.
    Since:
    : 5/5/2015 Time : 7:48 PM
    • Constructor Detail

      • UniqueUser

        public UniqueUser​(java.lang.String username)
      • UniqueUser

        public UniqueUser​(java.util.Optional<java.lang.String> username)
    • Method Detail

      • getUsername

        public java.util.Optional<java.lang.String> getUsername()
      • getPreferredHand

        public UniqueUser.Hand getPreferredHand()
        Gets preferred hand
        Returns:
        Hand (Left/Right)
      • setPreferredHand

        public void setPreferredHand​(UniqueUser.Hand preferredHand)
        Sets preferred hand (Left/Right)
        Parameters:
        preferredHand - (Hand.LEFT, Hand.RIGHT)
      • uniqueModifier

        public double uniqueModifier()
        Returns a random number seeded by account name between .9 and 1.1
        Returns:
        Double between .9 and 1.1
      • getWordsPerMinute

        public double getWordsPerMinute()