|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.gamedata.GameEventsManager
public class GameEventsManager
The events manager receives events from rFactor and modifies state-flags appropriately.
Field Summary | |
---|---|
static boolean |
simulationMode
|
Constructor Summary | |
---|---|
GameEventsManager(RFDynHUD rfDynHUD,
WidgetsDrawingManager widgetsManager)
Creates a new GameEventsManager . |
Method Summary | |
---|---|
void |
afterWidgetsConfigurationLoaded(WidgetsConfiguration widgetsConfig)
|
void |
beforeWidgetsConfigurationCleared(WidgetsConfiguration widgetsConfig)
|
void |
checkAndFireOnLapStarted(boolean isEditorMode)
|
void |
checkRaceRestart(long updateTimestamp)
|
void |
fireOnInputStateChanged(InputMapping mapping,
boolean state,
int modifierMask,
long when,
boolean isEditorMode)
|
ConfigurationLoader |
getConfigurationLoader()
|
boolean |
hasWaitingWidgets()
|
boolean |
isRunning()
Returns whether the game has been started up and not yet been shut down. |
boolean |
isSessionRunning()
Returns whether the current session is running. |
byte |
onGraphicsInfoUpdated(short viewportX,
short viewportY,
short viewportWidth,
short viewportHeight)
Will and must be called any time, the game is redendered (called from the C++-Plugin). |
byte |
onRealtimeEntered()
This method must be called when realtime mode has been entered (the user clicked on "Drive"). |
byte |
onRealtimeEntered(boolean isEditorMode)
|
byte |
onRealtimeExited()
This method must be called when the user exited realtime mode (pressed ESCAPE in the cockpit). |
void |
onRealtimeExited(boolean isEditorMode)
This method must be called when the user exited realtime mode (pressed ESCAPE in the cockpit). |
byte |
onScoringInfoUpdated()
This method must be called when ScoringInfo has been updated. |
byte |
onScoringInfoUpdated(boolean isEditorMode)
|
void |
onSessionEnded()
This method must be called when a session has been ended. |
void |
onSessionEnded(boolean isEditorMode)
|
byte |
onSessionStarted()
This method must be called when a session has been started. |
byte |
onSessionStarted(boolean isEditorMode)
|
void |
onShutdown()
This method must be called when the game shut down. |
void |
onShutdown(boolean isEditorMode)
This method must be called when the game shut down. |
void |
onStartup()
This method must be called when the game started up. |
void |
onStartup(boolean isEditorMode)
This method must be called when the game started up. |
byte |
onTelemetryDataUpdated()
This method must be called when TelemetryData has been updated. |
byte |
onTelemetryDataUpdated(boolean isEditorMode)
|
byte |
reloadConfigAndSetupTexture(boolean force)
|
void |
setGameData(LiveGameData gameData,
WidgetsManager renderListenersManager)
Sets live game data instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean simulationMode
Constructor Detail |
---|
public GameEventsManager(RFDynHUD rfDynHUD, WidgetsDrawingManager widgetsManager)
GameEventsManager
.
rfDynHUD
- the main RFDynHUD
instancewidgetsManager
- the widgets managerMethod Detail |
---|
public final boolean hasWaitingWidgets()
public final ConfigurationLoader getConfigurationLoader()
public void setGameData(LiveGameData gameData, WidgetsManager renderListenersManager)
gameData
- renderListenersManager
- public void beforeWidgetsConfigurationCleared(WidgetsConfiguration widgetsConfig)
beforeWidgetsConfigurationCleared
in interface WidgetsConfiguration.ConfigurationLoadListener
public void afterWidgetsConfigurationLoaded(WidgetsConfiguration widgetsConfig)
afterWidgetsConfigurationLoaded
in interface WidgetsConfiguration.ConfigurationLoadListener
public void onStartup(boolean isEditorMode)
isEditorMode
- public final void onStartup()
public void onShutdown(boolean isEditorMode)
isEditorMode
- public final void onShutdown()
public final boolean isRunning()
public void fireOnInputStateChanged(InputMapping mapping, boolean state, int modifierMask, long when, boolean isEditorMode)
mapping
- state
- modifierMask
- when
- isEditorMode
- public byte reloadConfigAndSetupTexture(boolean force)
force
- force reload ignoring, whether it is already in action?
public byte onSessionStarted(boolean isEditorMode)
isEditorMode
- editor mode?
public byte onSessionStarted()
public void onSessionEnded(boolean isEditorMode)
isEditorMode
- editor mode?public final void onSessionEnded()
public final boolean isSessionRunning()
public byte onRealtimeEntered(boolean isEditorMode)
isEditorMode
- editor mode?
public final byte onRealtimeEntered()
public void onRealtimeExited(boolean isEditorMode)
isEditorMode
- public final byte onRealtimeExited()
public final byte onGraphicsInfoUpdated(short viewportX, short viewportY, short viewportWidth, short viewportHeight)
viewportX
- the left coordinate of the viewportviewportY
- the top coordinate of the viewportviewportWidth
- the width of the viewportviewportHeight
- the height of the viewport
public final byte onTelemetryDataUpdated(boolean isEditorMode)
isEditorMode
- editor mode?
public final byte onTelemetryDataUpdated()
public final byte onScoringInfoUpdated(boolean isEditorMode)
isEditorMode
- editor mode?
public final byte onScoringInfoUpdated()
public final void checkRaceRestart(long updateTimestamp)
updateTimestamp
- the timestamp at the updatepublic final void checkAndFireOnLapStarted(boolean isEditorMode)
isEditorMode
- editor mode?
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |