Extra documentation for the Stat and StatChange classes

This commit is contained in:
SoyChai
2018-03-25 11:57:19 +11:00
committed by Adam
parent afc268c8cc
commit d0c0501044
2 changed files with 28 additions and 1 deletions

View File

@@ -33,9 +33,30 @@ import net.runelite.client.plugins.itemstats.stats.Stat;
@Data
public class StatChange
{
/**
* The stat which will be boosted (or damaged).
*/
private Stat stat;
/**
* Relative change that will occur if the stat boost is applied now.
* Should be a number prefixed by "+" or "-".
*/
private String relative;
private String absolute;
/**
* Theoretical change that can occur before boost cap is enforced.
* Should be a number prefixed by "+" or "-".
*/
private String theoretical;
/**
* Absolute total of the stat after applying the boost.
*/
private String absolute;
/**
* How beneficial this stat boost will be to the player.
*/
private Positivity positivity;
}

View File

@@ -46,7 +46,13 @@ public abstract class Stat
return name;
}
/**
* Get the current stat value including any boosts or damage.
*/
public abstract int getValue(Client client);
/**
* Get the base stat maximum, ie. the bottom half of the stat fraction.
*/
public abstract int getMaximum(Client client);
}