|
RuneHive-Game
|
Manages the trivia bot system. More...
Static Public Member Functions | |
| static void | answer (Player player, String answer) |
| Handles player answering the question. | |
| static void | assign () |
| Assigns a new question. | |
| static void | declare () |
| Declares the TriviaBot data. | |
Static Public Attributes | |
| static int | answeredTotal = 0 |
Static Private Member Functions | |
| static void | answered (Player player, String answer) |
| Handles player answering the question successfully. | |
Static Private Attributes | |
| static final String | COLOR = "<col=354CE6>" |
| Color of the TriviaBot messages. | |
| static TriviaBotData | CURRENT = null |
| The current question/answer set. | |
| static final Set< TriviaBotData > | DATA = new HashSet<>() |
| Holds all the bot data. | |
Manages the trivia bot system.
Definition at line 25 of file TriviaBot.java.
|
static |
Handles player answering the question.
Definition at line 62 of file TriviaBot.java.
References answer(), answered(), com.runehive.Config.BAD_STRINGS, COLOR, CURRENT, com.runehive.util.Utility.random(), com.runehive.game.world.entity.mob.player.Player.send(), com.runehive.game.world.entity.mob.player.Player.settings, com.runehive.game.world.entity.mob.Mob.speak(), and com.runehive.game.world.entity.mob.player.Settings.triviaBot.
Referenced by answer(), and answered().
|
staticprivate |
Handles player answering the question successfully.
Definition at line 87 of file TriviaBot.java.
References com.runehive.content.achievement.AchievementHandler.activate(), com.runehive.game.world.items.containers.bank.BankVault.add(), answer(), com.runehive.game.world.entity.mob.player.Player.bankVault, CURRENT, com.runehive.util.Utility.formatDigits(), com.runehive.game.world.entity.mob.player.PlayerRight.getColor(), com.runehive.game.world.entity.mob.player.PlayerRight.isIronman(), com.runehive.util.Utility.random(), com.runehive.game.world.entity.mob.player.Player.right, com.runehive.game.world.entity.mob.player.Player.send(), and com.runehive.content.achievement.AchievementKey.TRIVIABOT.
Referenced by answer().
|
static |
Assigns a new question.
Definition at line 53 of file TriviaBot.java.
Referenced by com.runehive.game.task.impl.MessageEvent.execute().
|
static |
Declares the TriviaBot data.
Definition at line 46 of file TriviaBot.java.
References DATA.
Referenced by com.runehive.RuneHive.processParallelStartupTasks().
|
static |
Definition at line 42 of file TriviaBot.java.
|
staticprivate |
Color of the TriviaBot messages.
Definition at line 40 of file TriviaBot.java.
Referenced by answer().
|
staticprivate |
The current question/answer set.
Definition at line 35 of file TriviaBot.java.
Referenced by answer(), and answered().
|
staticprivate |