|
RuneHive-Game
|
Static Public Member Functions | |
| static void | clearPlayerConsent (String username) |
| static OpenAIService | getOpenAIService () |
| static boolean | handleGandalfAIClick (Player player, Npc npc) |
| static boolean | isInitialized () |
| static void | markInstructionsReceived (String username) |
| static void | shutdown () |
Static Private Member Functions | |
| static void | cancelInactivityTimer (String username) |
| static void | initializeOpenAIAndProcess (Player player, Npc npc) |
| static synchronized boolean | initializeOpenAIServices () |
| static void | showGptInstructions (Player player, Npc npc) |
| static void | showGptInstructionsWithGreeting (Player player, Npc npc) |
| static void | showOpenAIConnectionOffer (Player player, Npc npc) |
| static void | startInactivityTimer (Player player, Npc npc) |
Static Private Attributes | |
| static final int | GANDALF_AI_ID = 2108 |
| static final Map< String, Task > | inactivityTimers = new ConcurrentHashMap<>() |
| static final Logger | logger = LoggerFactory.getLogger(LazyAIManager.class) |
| static final AtomicBoolean | openAIInitialized = new AtomicBoolean(false) |
| static volatile OpenAIService | openAIService |
| static final Set< String > | sessionConsents = ConcurrentHashMap.newKeySet() |
Definition at line 17 of file LazyAIManager.java.
|
staticprivate |
Definition at line 209 of file LazyAIManager.java.
References com.runehive.game.task.Task.cancel(), and inactivityTimers.
Referenced by clearPlayerConsent(), markInstructionsReceived(), and startInactivityTimer().
|
static |
Definition at line 216 of file LazyAIManager.java.
References cancelInactivityTimer(), com.runehive.game.world.World.getPlayerByName(), logger, openAIService, and sessionConsents.
Referenced by startInactivityTimer(), and com.runehive.content.ai.AIDialogueHandler.streamGandalfResponse().
|
static |
Definition at line 133 of file LazyAIManager.java.
References openAIService.
Referenced by com.runehive.game.world.cronjobs.impl.OpenAIRelayJob.execute(), and com.runehive.content.ai.AIDialogueHandler.processGandalfAIMessage().
|
static |
Definition at line 28 of file LazyAIManager.java.
References com.runehive.game.world.entity.mob.Mob.face(), GANDALF_AI_ID, com.runehive.game.world.position.Position.getHeight(), com.runehive.game.world.entity.Entity.getPosition(), com.runehive.game.world.entity.mob.player.Player.getUsername(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.position.Position.getY(), com.runehive.game.world.entity.mob.Mob.id, initializeOpenAIServices(), com.runehive.game.world.entity.mob.Mob.move(), openAIInitialized, sessionConsents, showGptInstructions(), and showOpenAIConnectionOffer().
|
staticprivate |
Definition at line 90 of file LazyAIManager.java.
References com.runehive.game.world.entity.mob.Mob.id, initializeOpenAIServices(), openAIInitialized, com.runehive.content.dialogue.Expression.SAD, and showGptInstructionsWithGreeting().
Referenced by showOpenAIConnectionOffer().
|
staticprivate |
Definition at line 108 of file LazyAIManager.java.
References com.runehive.content.ai.OpenAIService.getInstance(), logger, openAIInitialized, and openAIService.
Referenced by handleGandalfAIClick(), and initializeOpenAIAndProcess().
|
static |
Definition at line 129 of file LazyAIManager.java.
References openAIInitialized.
Referenced by com.runehive.game.world.cronjobs.impl.OpenAIRelayJob.execute(), and com.runehive.content.ai.AIDialogueHandler.handleAICommand().
|
static |
Definition at line 168 of file LazyAIManager.java.
References cancelInactivityTimer().
Referenced by com.runehive.content.ai.AIDialogueHandler.handleAICommand().
|
staticprivate |
Definition at line 154 of file LazyAIManager.java.
References com.runehive.game.world.entity.mob.player.InterfaceManager.close(), com.runehive.game.world.entity.mob.player.Player.dialogueCamMode, com.runehive.content.dialogue.Expression.HAPPY, com.runehive.game.world.entity.mob.Mob.id, and com.runehive.game.world.entity.mob.player.Player.interfaceManager.
Referenced by handleGandalfAIClick().
|
staticprivate |
Definition at line 137 of file LazyAIManager.java.
References com.runehive.game.world.entity.mob.Mob.animate(), com.runehive.game.world.entity.mob.player.InterfaceManager.close(), com.runehive.game.world.entity.mob.player.Player.dialogueCamMode, com.runehive.content.dialogue.Expression.HAPPY, com.runehive.game.world.entity.mob.Mob.id, com.runehive.game.world.entity.mob.player.Player.interfaceManager, com.runehive.game.world.entity.mob.Mob.speak(), and startInactivityTimer().
Referenced by initializeOpenAIAndProcess().
|
staticprivate |
Definition at line 56 of file LazyAIManager.java.
References com.runehive.game.world.entity.mob.player.Player.dialogueCamMode, com.runehive.game.world.entity.mob.player.Player.getUsername(), com.runehive.content.dialogue.Expression.HAPPY, com.runehive.game.world.entity.mob.Mob.id, initializeOpenAIAndProcess(), logger, com.runehive.game.world.entity.mob.player.Player.message(), and sessionConsents.
Referenced by handleGandalfAIClick().
|
static |
Definition at line 234 of file LazyAIManager.java.
References com.runehive.game.task.Task.cancel(), inactivityTimers, logger, openAIInitialized, openAIService, and sessionConsents.
|
staticprivate |
Definition at line 172 of file LazyAIManager.java.
References cancelInactivityTimer(), clearPlayerConsent(), com.runehive.game.world.entity.mob.player.Player.getUsername(), com.runehive.content.dialogue.Expression.HAPPY, com.runehive.game.world.entity.mob.Mob.id, inactivityTimers, com.runehive.game.world.entity.Entity.isRegistered(), com.runehive.game.world.World.schedule(), and sessionConsents.
Referenced by showGptInstructionsWithGreeting().
|
staticprivate |
Definition at line 21 of file LazyAIManager.java.
Referenced by handleGandalfAIClick().
|
staticprivate |
Definition at line 24 of file LazyAIManager.java.
Referenced by cancelInactivityTimer(), shutdown(), and startInactivityTimer().
|
staticprivate |
Definition at line 19 of file LazyAIManager.java.
Referenced by clearPlayerConsent(), initializeOpenAIServices(), showOpenAIConnectionOffer(), and shutdown().
|
staticprivate |
Definition at line 20 of file LazyAIManager.java.
Referenced by handleGandalfAIClick(), initializeOpenAIAndProcess(), initializeOpenAIServices(), isInitialized(), and shutdown().
|
staticprivate |
Definition at line 26 of file LazyAIManager.java.
Referenced by clearPlayerConsent(), getOpenAIService(), initializeOpenAIServices(), and shutdown().
|
staticprivate |
Definition at line 23 of file LazyAIManager.java.
Referenced by clearPlayerConsent(), handleGandalfAIClick(), showOpenAIConnectionOffer(), shutdown(), and startInactivityTimer().