Class Player

  • All Implemented Interfaces:
    RawObj

    public class Player
    extends Object
    implements RawObj
    Player Data Structure
    • Constructor Detail

      • Player

        public Player​(String username,
                      String status,
                      String color,
                      String god,
                      int workers)
        Player Constructor
        Parameters:
        username - player username
        status - player status
        color - player color
        god - player god
        workers - player remaining workers
    • Method Detail

      • getRawData

        public List<String> getRawData()
        Description copied from interface: RawObj
        Convert data to a list of string that contains a user readable information about the class
        Specified by:
        getRawData in interface RawObj
        Returns:
        data converted into an array of string user readable information about the class
      • getUsername

        public String getUsername()
        Get player's username
        Returns:
        player's username
      • getStatus

        public String getStatus()
        Get player's status
        Returns:
        player status
      • getColor

        public String getColor()
        Get player's color
        Returns:
        player's color
      • getGod

        public String getGod()
        Get player's god
        Returns:
        player's god
      • getWorkers

        public int getWorkers()
        Get player's remaining number of workers
        Returns:
        number of remaining workers