|
RuneHive-Game
|
Handles contribution towards the well of goodwill. More...
Classes | |
| class | Contributor |
Static Public Member Functions | |
| static void | activate () |
| Handles activating the well. | |
| static void | add (String name, PlayerRight rank, int amount) |
| static void | contribute (Player player, int amount) |
| Handles contributing to the well. | |
| static String | getInformation () |
| The information displayed on information tab. | |
| static String | isActivated () |
| static boolean | isActive () |
| static void | open (Player player) |
| Opens the well itemcontainer. | |
Static Public Attributes | |
| static boolean | active |
| static int | activeTime = -1 |
| static int | CONTRIBUTION |
| The current contribution amount for the well. | |
| static TreeSet< Contributor > | contributors = new TreeSet<>() |
| The array list of contributors. | |
| static String | lastContributor |
| The last contributor to the well. | |
| static final int | MAXIMUM = 15_000_000 |
| The maximum contribution limit for the well. | |
Handles contribution towards the well of goodwill.
Definition at line 24 of file WellOfGoodwill.java.
|
static |
Handles activating the well.
Definition at line 118 of file WellOfGoodwill.java.
References active, activeTime, com.runehive.game.world.World.schedule(), and com.runehive.game.world.World.sendMessage().
Referenced by contribute().
|
static |
Definition at line 125 of file WellOfGoodwill.java.
References com.runehive.content.WellOfGoodwill.Contributor.add(), com.runehive.content.WellOfGoodwill.Contributor.contribution, contributors, and com.runehive.content.WellOfGoodwill.Contributor.name.
Referenced by contribute(), and com.runehive.util.GameSaver.load().
|
static |
Handles contributing to the well.
Definition at line 71 of file WellOfGoodwill.java.
References activate(), add(), com.runehive.game.world.items.containers.ItemContainer.contains(), CONTRIBUTION, com.runehive.Config.DOUBLE_EXPERIENCE, com.runehive.util.Utility.formatDigits(), com.runehive.game.world.entity.mob.player.PlayerRight.getCrown(), com.runehive.game.world.entity.mob.player.Player.getName(), com.runehive.game.world.entity.mob.player.Player.inventory, isActive(), lastContributor, MAXIMUM, com.runehive.game.world.entity.mob.player.Player.message(), open(), com.runehive.game.world.items.containers.ItemContainer.remove(), com.runehive.game.world.entity.mob.player.Player.right, and com.runehive.game.world.World.sendMessage().
|
static |
The information displayed on information tab.
Definition at line 188 of file WellOfGoodwill.java.
References active, and isActivated().
|
static |
Definition at line 141 of file WellOfGoodwill.java.
Referenced by getInformation().
|
static |
Definition at line 138 of file WellOfGoodwill.java.
References activeTime.
Referenced by com.runehive.game.world.entity.skill.SkillManager.addExperience(), contribute(), com.runehive.game.task.impl.DoubleExperienceEvent.execute(), com.runehive.RuneHive.onStart(), open(), and com.runehive.content.dialogue.impl.WellOfGoodwillDialogue.sendDialogues().
|
static |
Opens the well itemcontainer.
Definition at line 44 of file WellOfGoodwill.java.
References activeTime, CONTRIBUTION, com.runehive.content.WellOfGoodwill.Contributor.contribution, contributors, com.runehive.util.Utility.formatDigits(), com.runehive.game.world.entity.mob.player.PlayerRight.getCrownText(), com.runehive.util.Utility.getPercentageAmount(), com.runehive.game.world.entity.mob.player.Player.interfaceManager, isActive(), lastContributor, MAXIMUM, com.runehive.content.WellOfGoodwill.Contributor.name, com.runehive.game.world.entity.mob.player.InterfaceManager.open(), com.runehive.content.WellOfGoodwill.Contributor.rank, and com.runehive.game.world.entity.mob.player.Player.send().
Referenced by contribute(), and com.runehive.content.dialogue.impl.WellOfGoodwillDialogue.sendDialogues().
|
static |
Definition at line 30 of file WellOfGoodwill.java.
Referenced by activate(), and getInformation().
|
static |
Definition at line 29 of file WellOfGoodwill.java.
Referenced by activate(), com.runehive.game.task.impl.DoubleExperienceEvent.execute(), isActive(), com.runehive.util.GameSaver.load(), com.runehive.game.task.impl.DoubleExperienceEvent.onCancel(), open(), com.runehive.content.dialogue.impl.WellOfGoodwillDialogue.sendDialogues(), and com.runehive.util.GameSaver.toJson().
|
static |
The current contribution amount for the well.
Definition at line 27 of file WellOfGoodwill.java.
Referenced by contribute(), com.runehive.util.GameSaver.load(), com.runehive.game.task.impl.DoubleExperienceEvent.onCancel(), open(), and com.runehive.util.GameSaver.toJson().
|
static |
The array list of contributors.
Definition at line 34 of file WellOfGoodwill.java.
Referenced by add(), open(), and com.runehive.util.GameSaver.toJson().
|
static |
The last contributor to the well.
Definition at line 37 of file WellOfGoodwill.java.
Referenced by contribute(), com.runehive.util.GameSaver.load(), open(), and com.runehive.util.GameSaver.toJson().
|
static |
The maximum contribution limit for the well.
Definition at line 41 of file WellOfGoodwill.java.
Referenced by contribute(), open(), and com.runehive.content.dialogue.impl.WellOfGoodwillDialogue.sendDialogues().