Class Profile

java.lang.Object
com.csse3200.game.progression.Profile

public class Profile extends Object
Represents a user profile in the game. Allows customization of player attributes and tracking of progress.
  • Constructor Details

    • Profile

      public Profile()
      Creates a new profile with default values.
    • Profile

      public Profile(net.dermetfan.utils.Pair<String,String> nameAndLevel, Wallet wallet, Inventory inventory, SkillSet skillset, Statistics statistics, Arsenal arsenal, List<String> completedNodes)
      Initialise a profile with the provided values.
  • Method Details

    • getName

      public String getName()
      Get the name of the profile.
      Returns:
      the name of the profile.
    • setName

      public void setName(String name)
      Change the name of the profile.
      Parameters:
      name - the new name of the profile.
    • getCurrentLevel

      public String getCurrentLevel()
      Get the current level of the profile.
      Returns:
      the current level of the profile.
    • setCurrentLevel

      public void setCurrentLevel(String currentLevel)
      Set the current level of the profile.
      Parameters:
      currentLevel - the new current level of the profile.
    • getWallet

      public Wallet getWallet()
      Get the wallet associated with the profile.
      Returns:
      the wallet of the profile.
    • getInventory

      public Inventory getInventory()
      Get the inventory associated with the profile.
      Returns:
      the inventory of the profile.
    • getArsenal

      public Arsenal getArsenal()
      Get the arsenal associated with the profile.
      Returns:
      the arsenal of the profile.
    • getSkillset

      public SkillSet getSkillset()
      Get the skillset associated with the profile.
      Returns:
      the skillset of the profile.
    • getStatistics

      public Statistics getStatistics()
      Get the statistics associated with the profile.
      Returns:
      the statistics of the profile.
    • getCompletedNodes

      public List<String> getCompletedNodes()
      Get the completed nodes associated with the profile.
      Returns:
      the completed nodes of the profile.
    • setCompletedNodes

      public void setCompletedNodes(List<String> completedNodes)
      Set the completed nodes associated with the profile.
      Parameters:
      completedNodes - the new completed nodes of the profile.
    • addCompletedNode

      public void addCompletedNode(String node)
      Add a completed node to the profile.
      Parameters:
      node - the node to add to the profile.