Package com.prineside.tdi2
Class Game
java.lang.Object
com.badlogic.gdx.Game
com.prineside.tdi2.Game
- All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener
- Direct Known Subclasses:
HeadlessNetTestingGame,HeadlessReplayCleanupGame,HeadlessReplayValidationGame,NormalGame
public abstract class Game
extends com.badlogic.gdx.Game
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ActionResolvercom.badlogic.gdx.graphics.g2d.BitmapFontstatic Gamefinal com.badlogic.gdx.utils.Array<Manager>static Registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(Game.GameListener listener) voidvoidstatic voidvoidcreate()Called when theApplicationis first created.voiddispose()Called when theApplicationis destroyed.static voidexit()static longlongstatic longstatic longstatic intcom.badlogic.gdx.math.RectanglebooleanbooleanbooleanisLoaded()voidnotifyVisibleDisplayFrameChanged(int x, int y, int width, int height) Launcher вызывает этот метод в случае, если не весь экран виденvoidpause()Called when theApplicationis paused, usually when it's not active or visible on-screen.voidremoveListener(Game.GameListener listener) voidvoidrender()Called when theApplicationshould render itself.voidresize(int width, int height) Called when theApplicationis resized.voidresume()Called when theApplicationis resumed from a paused state, usually when it regains focus.Methods inherited from class com.badlogic.gdx.Game
getScreen, setScreen
-
Field Details
-
i
-
r
-
preferencesManager
-
screenManager
-
abilityManager
-
achievementManager
-
authManager
-
basicLevelManager
-
buffManager
-
dailyQuestManager
-
debugManager
-
enemyManager
-
explosionManager
-
gameValueManager
-
gateManager
-
httpManager
-
researchManager
-
itemManager
-
localeManager
-
leaderBoardManager
-
mapManager
-
messageManager
-
minerManager
-
modifierManager
-
networkManager
-
progressManager
-
projectileManager
-
purchaseManager
-
ratingManager
-
renderingManager
-
replayManager
-
resourceManager
-
assetManager
-
scriptManager
-
shapeManager
-
soundManager
-
statisticsManager
-
secretCodeManager
-
settingsManager
-
tileManager
-
towerManager
-
towerStatManager
-
triggeredActionManager
-
trophyManager
-
unitManager
-
uiManager
-
userMapManager
-
musicManager
-
waveManager
-
managers
-
defaultSmallFuturaFont
public com.badlogic.gdx.graphics.g2d.BitmapFont defaultSmallFuturaFont -
actionResolver
-
gameSyncLoader
-
-
Constructor Details
-
Game
-
-
Method Details
-
getOkSdkHandler
-
checkConfiguredForProduction
public static void checkConfiguredForProduction() -
exit
public static void exit() -
isLoaded
public boolean isLoaded() -
isInMainThread
public boolean isInMainThread() -
assertInMainThread
public void assertInMainThread() -
create
public void create()Description copied from interface:com.badlogic.gdx.ApplicationListenerCalled when theApplicationis first created. -
pause
public void pause()Description copied from interface:com.badlogic.gdx.ApplicationListenerCalled when theApplicationis paused, usually when it's not active or visible on-screen. An Application is also paused before it is destroyed.- Specified by:
pausein interfacecom.badlogic.gdx.ApplicationListener- Overrides:
pausein classcom.badlogic.gdx.Game
-
resume
public void resume()Description copied from interface:com.badlogic.gdx.ApplicationListenerCalled when theApplicationis resumed from a paused state, usually when it regains focus.- Specified by:
resumein interfacecom.badlogic.gdx.ApplicationListener- Overrides:
resumein classcom.badlogic.gdx.Game
-
isDisposed
public boolean isDisposed() -
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.ApplicationListenerCalled when theApplicationis destroyed. Preceded by a call toApplicationListener.pause().- Specified by:
disposein interfacecom.badlogic.gdx.ApplicationListener- Overrides:
disposein classcom.badlogic.gdx.Game
-
addListener
-
removeListener
-
addScreenResizeListener
-
removeScreenResizeListener
-
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
public com.badlogic.gdx.math.Rectangle getVisibleDisplayFrame() -
render
public void render()Description copied from interface:com.badlogic.gdx.ApplicationListenerCalled when theApplicationshould render itself.- Specified by:
renderin interfacecom.badlogic.gdx.ApplicationListener- Overrides:
renderin classcom.badlogic.gdx.Game
-
resize
public void resize(int width, int height) Description copied from interface:com.badlogic.gdx.ApplicationListenerCalled when theApplicationis resized. This can happen at any point during a non-paused state but will never happen before a call toApplicationListener.create().- Specified by:
resizein interfacecom.badlogic.gdx.ApplicationListener- Overrides:
resizein classcom.badlogic.gdx.Game- Parameters:
width- the new width in pixelsheight- the new height in pixels
-
getFreeHeapSpaceSize
public static long getFreeHeapSpaceSize()
-