Package com.prineside.tdi2
Class Game
java.lang.Object
com.badlogic.gdx.Game
com.prineside.tdi2.Game
- All Implemented Interfaces:
ApplicationListener
- Direct Known Subclasses:
HeadlessNetTestingGame
,HeadlessReplayValidationGame
,NormalGame
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
void
create()
Called when theApplication
is first created.void
dispose()
Called when theApplication
is destroyed.static void
exit()
static long
long
static long
static long
static int
boolean
boolean
static boolean
isLoaded()
Safe to call on any thread at any timevoid
notifyVisibleDisplayFrameChanged
(int x, int y, int width, int height) Launcher вызывает этот метод в случае, если не весь экран виденvoid
pause()
Called when theApplication
is paused, usually when it's not active or visible on-screen.void
render()
Called when theApplication
should render itself.void
resize
(int width, int height) Called when theApplication
is resized.void
resume()
Called when theApplication
is resumed from a paused state, usually when it regains focus.
-
Field Details
-
i
-
preferencesManager
-
screenManager
-
abilityManager
-
achievementManager
-
analyticsManager
-
authManager
-
basicLevelManager
-
buffManager
-
dailyQuestManager
-
debugManager
-
enemyManager
-
gameValueManager
-
gateManager
-
httpManager
-
researchManager
-
itemManager
-
localeManager
-
leaderBoardManager
-
mapManager
-
messageManager
-
minerManager
-
modifierManager
-
networkManager
-
progressManager
-
purchaseManager
-
ratingManager
-
renderingManager
-
replayManager
-
resourceManager
-
assetManager
-
scriptManager
-
shapeManager
-
soundManager
-
statisticsManager
-
secretCodeManager
-
settingsManager
-
tileManager
-
towerManager
-
towerStatManager
-
triggeredActionManager
-
trophyManager
-
unitManager
-
uiManager
-
userMapManager
-
musicManager
-
managers
-
defaultSmallFuturaFont
-
actionResolver
-
gameSyncLoader
-
events
-
-
Constructor Details
-
Game
-
-
Method Details
-
checkConfiguredForProduction
public static void checkConfiguredForProduction() -
exit
public static void exit() -
isLoaded
public static boolean isLoaded()Safe to call on any thread at any time- Returns:
- true when all the managers are created and set up
-
isInMainThread
public boolean isInMainThread() -
assertInMainThread
public void assertInMainThread() -
create
public void create()Description copied from interface:com.badlogic.gdx.ApplicationListener
Called when theApplication
is first created. -
pause
public void pause()Description copied from interface:com.badlogic.gdx.ApplicationListener
Called when theApplication
is paused, usually when it's not active or visible on-screen. An Application is also paused before it is destroyed.- Specified by:
pause
in interfaceApplicationListener
- Overrides:
pause
in classGame
-
resume
public void resume()Description copied from interface:com.badlogic.gdx.ApplicationListener
Called when theApplication
is resumed from a paused state, usually when it regains focus.- Specified by:
resume
in interfaceApplicationListener
- Overrides:
resume
in classGame
-
isDisposed
public boolean isDisposed() -
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.ApplicationListener
Called when theApplication
is destroyed. Preceded by a call toApplicationListener.pause()
.- Specified by:
dispose
in interfaceApplicationListener
- Overrides:
dispose
in classGame
-
getRealTickCount
public static long getRealTickCount()- Returns:
- microseconds (1 / 1,000,000 s) (1 / 1,000 ms) с запуска игры
-
getTimestampSeconds
public static int getTimestampSeconds() -
getTimestampMillis
public static long getTimestampMillis() -
getMillisTillGameStart
public long getMillisTillGameStart() -
notifyVisibleDisplayFrameChanged
public void notifyVisibleDisplayFrameChanged(int x, int y, int width, int height) Launcher вызывает этот метод в случае, если не весь экран виден -
getVisibleDisplayFrame
-
render
public void render()Description copied from interface:com.badlogic.gdx.ApplicationListener
Called when theApplication
should render itself.- Specified by:
render
in interfaceApplicationListener
- Overrides:
render
in classGame
-
resize
public void resize(int width, int height) Description copied from interface:com.badlogic.gdx.ApplicationListener
Called when theApplication
is resized. This can happen at any point during a non-paused state but will never happen before a call toApplicationListener.create()
.- Specified by:
resize
in interfaceApplicationListener
- Overrides:
resize
in classGame
- Parameters:
width
- the new width in pixelsheight
- the new height in pixels
-
getFreeHeapSpaceSize
public static long getFreeHeapSpaceSize()
-