Package com.csse3200.game.progression
Class Profile
java.lang.Object
com.csse3200.game.progression.Profile
Represents a user profile in the game. Allows customization of player attributes and tracking of
progress.
-
Constructor Summary
ConstructorsConstructorDescriptionProfile()
Creates a new profile with default values.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 Summary
Modifier and TypeMethodDescriptionvoid
addCompletedNode
(String node) Add a completed node to the profile.Get the arsenal associated with the profile.Get the completed nodes associated with the profile.Get the current level of the profile.Get the inventory associated with the profile.getName()
Get the name of the profile.Get the skillset associated with the profile.Get the statistics associated with the profile.Get the wallet associated with the profile.void
setCompletedNodes
(List<String> completedNodes) Set the completed nodes associated with the profile.void
setCurrentLevel
(String currentLevel) Set the current level of the profile.void
Change the name of the profile.
-
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
Get the name of the profile.- Returns:
- the name of the profile.
-
setName
Change the name of the profile.- Parameters:
name
- the new name of the profile.
-
getCurrentLevel
Get the current level of the profile.- Returns:
- the current level of the profile.
-
setCurrentLevel
Set the current level of the profile.- Parameters:
currentLevel
- the new current level of the profile.
-
getWallet
Get the wallet associated with the profile.- Returns:
- the wallet of the profile.
-
getInventory
Get the inventory associated with the profile.- Returns:
- the inventory of the profile.
-
getArsenal
Get the arsenal associated with the profile.- Returns:
- the arsenal of the profile.
-
getSkillset
Get the skillset associated with the profile.- Returns:
- the skillset of the profile.
-
getStatistics
Get the statistics associated with the profile.- Returns:
- the statistics of the profile.
-
getCompletedNodes
Get the completed nodes associated with the profile.- Returns:
- the completed nodes of the profile.
-
setCompletedNodes
Set the completed nodes associated with the profile.- Parameters:
completedNodes
- the new completed nodes of the profile.
-
addCompletedNode
Add a completed node to the profile.- Parameters:
node
- the node to add to the profile.
-