|
RuneHive-Game
|
Handles unlocking player titles. More...
Static Public Member Functions | |
| static boolean | click (Player player, int button) |
| Handles clicking buttons on the title itemcontainer. | |
| static void | open (Player player) |
| Opens the title itemcontainer. | |
| static void | redeem (Player player) |
| Handles a player redeeming a title. | |
| static void | refresh (Player player) |
| Handles refreshing (send all strings and data) the itemcontainer. | |
| static void | reset (Player player) |
| Handles reseting the player title. | |
Static Private Attributes | |
| static final int | BUTTON_IDENTIFICATION = -26485 |
| The base button identification. | |
Handles unlocking player titles.
Definition at line 13 of file TitleManager.java.
|
static |
Handles clicking buttons on the title itemcontainer.
Definition at line 25 of file TitleManager.java.
References com.runehive.game.world.entity.mob.Mob.attributes, BUTTON_IDENTIFICATION, com.runehive.content.tittle.Title.forOrdinal(), refresh(), and com.runehive.util.generic.GenericAttributes.set().
|
static |
Opens the title itemcontainer.
Definition at line 19 of file TitleManager.java.
References com.runehive.game.world.entity.mob.player.Player.interfaceManager, com.runehive.game.world.entity.mob.player.InterfaceManager.open(), and refresh().
Referenced by com.runehive.game.plugin.PluginContext.onClick().
|
static |
Handles a player redeeming a title.
Definition at line 69 of file TitleManager.java.
References com.runehive.util.generic.BooleanInterface< T >.activated(), com.runehive.game.world.entity.mob.UpdateFlag.APPEARANCE, com.runehive.game.world.entity.mob.Mob.attributes, com.runehive.content.tittle.Title.forOrdinal(), com.runehive.util.generic.GenericAttributes.get(), com.runehive.content.tittle.Title.getTitle(), com.runehive.game.world.entity.mob.player.Player.send(), and com.runehive.game.world.entity.mob.Mob.updateFlags.
|
static |
Handles refreshing (send all strings and data) the itemcontainer.
Definition at line 36 of file TitleManager.java.
References com.runehive.util.generic.BooleanInterface< T >.activated(), com.runehive.game.world.entity.mob.Mob.attributes, com.runehive.util.Utility.formatName(), com.runehive.util.generic.GenericAttributes.get(), com.runehive.content.tittle.PlayerTitle.getColor(), com.runehive.game.world.entity.mob.player.Player.getName(), com.runehive.content.tittle.Title.getRequirement(), com.runehive.content.tittle.PlayerTitle.getTitle(), com.runehive.content.tittle.Title.getTitle(), and com.runehive.game.world.entity.mob.player.Player.send().
Referenced by click(), and open().
|
static |
Handles reseting the player title.
Definition at line 85 of file TitleManager.java.
References com.runehive.game.world.entity.mob.UpdateFlag.APPEARANCE, com.runehive.content.tittle.PlayerTitle.empty(), com.runehive.game.world.entity.mob.player.Player.send(), and com.runehive.game.world.entity.mob.Mob.updateFlags.
|
staticprivate |
The base button identification.
Definition at line 16 of file TitleManager.java.
Referenced by click().