Uses of Class
com.starpoints.state.GameState
-
Packages that use GameState Package Description com.starpoints Contains main classes for StarpointArena.com.starpoints.editor Contains classes for the level editor.com.starpoints.game Contains the classes for the StarpointArena game.com.starpoints.league Contains classes for the league game.com.starpoints.network Contains network handling components and message objects.com.starpoints.painter Contains 2D painters.com.starpoints.painter.arena2D Contains special 2D painters for things.com.starpoints.painter.editor Contains 2D painters for level editor.com.starpoints.state Contains state classes for UI updates, replay and best move storage. -
-
Uses of GameState in com.starpoints
Fields in com.starpoints declared as GameState Modifier and Type Field Description protected GameState
Replayer. currentUpdate
The current update during replay.Fields in com.starpoints with type parameters of type GameState Modifier and Type Field Description java.util.List<GameState>
BestMoveManager. updateInfos
The list of UpdateInfos of the current best move.java.util.LinkedList<GameState>
Replayer. updateInfos
The list of UpdateInfos of the last rounds.Methods in com.starpoints that return GameState Modifier and Type Method Description GameState
BestMoveManager. getCurrentState()
Gets the current game state.GameState
StarpointController. getCurrentState()
Gets the current state for display purposes.GameState
Replayer. getCurrentUpdateInfo()
Gets the current update info during replay.GameState
Replayer. getNextUpdate()
Gets the next update info during replay and removes it from the updateinfo-list.GameState
Replayer. getUpdate(int n)
Gets the UpdateInfo for the given index.Methods in com.starpoints that return types with arguments of type GameState Modifier and Type Method Description java.util.List<GameState>
Replayer. getCompleteMove()
Methods in com.starpoints with parameters of type GameState Modifier and Type Method Description FigureState
StarpointController. getDisplayFigureState(GameState state)
Gets the figure state to display.void
Replayer. setNextUpdate(GameState ui)
Stores a new update information.Method parameters in com.starpoints with type arguments of type GameState Modifier and Type Method Description void
BestMoveManager. saveBestMove(java.util.List<GameState> move, java.lang.String playerName, int score)
Checks and saves a best move. -
Uses of GameState in com.starpoints.editor
Methods in com.starpoints.editor that return GameState Modifier and Type Method Description GameState
StarpointEditor. createState()
Creates a GameState object representing the current state of the game. -
Uses of GameState in com.starpoints.game
Fields in com.starpoints.game declared as GameState Modifier and Type Field Description protected GameState
Game. currentState
The current game stateMethods in com.starpoints.game that return GameState Modifier and Type Method Description protected GameState
Game. createGameStateReplay()
GameState
Game. createState()
Creates a GameState object representing the current state of the game.GameState
Game. getCurrentState()
Methods in com.starpoints.game with parameters of type GameState Modifier and Type Method Description protected void
Game. fillGameState(GameState gs)
protected void
Game. informReplayer(GameState currentState)
Update the replayer with the current game state. -
Uses of GameState in com.starpoints.league
Methods in com.starpoints.league that return GameState Modifier and Type Method Description protected GameState
LeagueGame. createGameStateReplay()
GameState
LeagueGame. createState()
Creates a GameState object representing the current state of the game.Methods in com.starpoints.league with parameters of type GameState Modifier and Type Method Description protected void
LeagueGame. informReplayer(GameState currentState)
Update the replayer with the current game state. -
Uses of GameState in com.starpoints.network
Fields in com.starpoints.network declared as GameState Modifier and Type Field Description protected GameState
StarpointNetworkHandler. currentState
Last update for server.Methods in com.starpoints.network that return GameState Modifier and Type Method Description GameState
StarpointClient. getClientUpdate()
Gets the last state received from the server.GameState
StarpointNetworkHandler. getClientUpdate()
Gets the current client update state.Methods in com.starpoints.network with parameters of type GameState Modifier and Type Method Description void
StarpointClient. firstGameStateReceived(GameState state)
Called after first GameState was received from Server.void
StarpointClient. gameStateReceived(GameState state)
Called after GameState was received from Server.void
StarpointNetworkHandler. sendUpdateInfo(GameState currentState)
Sends a new GameState to all registered network clients.void
StarpointServer. sendUpdateInfo(GameState currentState)
-
Uses of GameState in com.starpoints.painter
Fields in com.starpoints.painter declared as GameState Modifier and Type Field Description protected GameState
PainterBase. state
The game state.Methods in com.starpoints.painter with parameters of type GameState Modifier and Type Method Description protected boolean
PainterPlayerInfos. checkForScoreAnimation(GameState state, FigureState fig, int index)
Checks, if score animation is to display for this figure.protected void
PainterPlayerInfos. determineScalingConstants(GameState state)
Sets the scaling factors and sizes of single panels.protected void
PainterPlayerInfos. drawFigureInfo(Graphics g2, GameState state, FigureState fig, int offset, boolean drawScore, int index)
Draws the figure info (name, points ).protected void
PainterPlayerInfos. drawMaxEnergy(Graphics g2, GameState state, FigureState f, int offset)
Draws the max energy levelprotected void
PainterPlayerInfos. drawMaxEnergyBar(Graphics g2, GameState state, FigureState f, int offset)
Draws the max energy level as bar.protected void
Painter2DArena. drawPointHeating(Graphics g, PointState pointState, GameState state, int xCenter, int yCenter)
Paints a heating effect.protected void
PainterPlayerInfos. drawState(Graphics g2, GameState state, FigureState f, int i, int offset)
Draws shielding etc.protected void
PainterPlayerInfos. drawStateBars(Graphics g2, GameState state, FigureState f, int offset)
Draws the state indicators for shielding, hover, invisibility and invulnerability.protected int
PainterPlayerInfos. getDemoPanelCount(GameState state)
Gets the number of panels to show in demoprotected long
PainterPlayerInfos. getDisplayPointSum(GameState state, FigureState fig, int index)
Gets the point sum to display.protected int
PainterPlayerInfos. getDisplayScore(GameState state, FigureState fig, int index)
PointState
Painter2DArena. getNearestPointState(GameState state, int x, int y)
Gets the nearest point for the given screen coordinates.int
PainterInventory. getPanelCount(GameState state)
int
PainterPlayerInfos. getPanelCount(GameState state)
Checks, if the big panel should be shown.protected boolean
PainterBackground. isFlashing(GameState state)
Checks, if game is flashing level.protected boolean
PainterBackground. isPaintingBackgroundImage(GameState state)
Checks, if a background image should be shown.void
Painter. onStartGame(GameState state)
Called if new game is started.void
PainterBase. onStartGame(GameState state)
Called when a new game is started.void
PainterLeagueBoard. onStartGame(GameState state)
Called if new game is started.void
PainterPlayerInfos. onStartGame(GameState state)
Sets the game reference.void
PainterSet. onStartGame(GameState state)
Sets the game reference in al contained painters.void
AdditionalOptions. paint(Graphics g, GameState state)
Paints the additional options.void
Painter. paint(Graphics g, GameState state)
Paints on the screen.void
Painter2DArena. paint(Graphics g, GameState state)
Paints the field on the screen.void
PainterBackground. paint(Graphics g, GameState state)
Paints the background on the screenvoid
PainterBackgroundAnimation. paint(Graphics g, GameState state)
Paints the background animation on the screenabstract void
PainterBase. paint(Graphics g, GameState state)
Paints on the screen.void
PainterControlButtons. paint(Graphics g, GameState state)
Paints the touchpad.void
PainterCredits. paint(Graphics g, GameState state)
Paints the credits image to the paint area.void
PainterDimmer. paint(Graphics g, GameState state)
Paints the credits image to the paint area.void
PainterFlashAnimation. paint(Graphics g, GameState state)
Paints the image, dot (and earth image in last animation) to the paint area.void
PainterGameDimmer. paint(Graphics g, GameState state)
Paints the credits image to the paint area.void
PainterGameFinishedAnimation. paint(Graphics g, GameState state)
Paints the image, dot (and earth image in last animation) to the paint area.void
PainterGameMessage. paint(Graphics g, GameState state)
Paints the current game message.void
PainterInventory. paint(Graphics g, GameState state)
Paints to the screen.void
PainterKeyboard. paint(Graphics g, GameState state)
Paints the keyboard.void
PainterKeyboardOptions. paint(Graphics g, GameState state)
Paints the keyboard options.void
PainterLeagueBoard. paint(Graphics g, GameState state)
Paints the options menuvoid
PainterLeaguePlayers. paint(Graphics g, GameState state)
Paints the options menuvoid
PainterLevelInfo. paint(Graphics g, GameState state)
Paints timing and level name.void
PainterLevelIntro. paint(Graphics g, GameState state)
Paints the text to the screen.void
PainterLevelSetsMenu. paint(Graphics g, GameState state)
Paints the options menuvoid
PainterMainMenu. paint(Graphics g, GameState state)
Paints the menu.void
PainterMenu. paint(Graphics g, GameState state)
Paints the menu.void
PainterMessageText. paint(Graphics g, GameState state)
Paints the messagevoid
PainterNetworkMenu. paint(Graphics g, GameState state)
Paints the menu.void
PainterOptions. paint(Graphics g, GameState state)
Paints the options menuvoid
PainterPlayerInfos. paint(Graphics g, GameState state)
Paints to the screenvoid
PainterSavedGamesMenu. paint(Graphics g, GameState state)
Paints the options menuvoid
PainterSet. paint(Graphics g, GameState state)
Paints on the screen.void
PainterShop. paint(Graphics g, GameState state)
Paints the shop.void
PainterSkinSelection. paint(Graphics g, GameState state)
Paints the options menuvoid
PainterText. paint(Graphics g, GameState state)
Paints the text to the screen.void
PainterTutorial. paint(Graphics g, GameState state)
Paints the text to the screen.void
Painter2DArena. paintField(Graphics g, GameState state)
Paints the field on the given graphics object.protected void
Painter2DArena. paintFieldOverlay(Graphics g, GameState state)
Paints the field overlay on the given graphics object.protected void
PainterPlayerInfos. paintFigureState(Graphics g2, GameState state, FigureState f, int yOffset, int index)
Paints the panel for one player.protected void
PainterFlashAnimation. paintFlashAnimation(Graphics g, FlashAnimationState fai, GameState state, int xCenter, boolean isLast)
Draws the planet images and texts of the FlashInformationInfo.protected void
PainterGameFinishedAnimation. paintLeagueBoard(Graphics g, GameState state)
Paints the league finished ranks.protected void
PainterGameFinishedAnimation. paintLeagueFinish(Graphics g, GameState state)
Paints the league finished ranks and league stats.protected void
PainterGameFinishedAnimation. paintLeagueStatistics(Graphics g, GameState state)
Paints the league stats.void
Painter2DArena. paintPoint(Graphics g, PointState pointState, GameState state, int xCenter, int yCenter)
Paints the point.protected void
Painter2DArena. paintPointOverlay(Graphics g, PointState p, GameState state, int xCenter, int yCenter)
Paints the point overlay (occupant overlay, fog, explosion, target).protected void
PainterPlayerInfos. paintRoundCount(Graphics g, GameState state, Font f)
Paints the round counter.void
Painter2DArena. paintThing(Graphics g, ThingState thingState, GameState state, int xCenter, int yCenter)
Paints the thing on the screen.void
Painter2DArena. paintThingOverlay(Graphics g, ThingState thingState, GameState state, int xCenter, int yCenter)
Paints the thing overlay on the screen.protected boolean
PainterPlayerInfos. panelDesignHasChanged(GameState state)
void
PainterBackground. reInit(GameState state)
Reinitializes the background for the next round.protected void
PainterGameFinishedAnimation. setLeagueStatColor(Graphics g, int color, GameState state)
void
Painter. setState(GameState state)
Sets the game state.void
PainterBase. setState(GameState state)
Sets the game state reference during painting routine.void
PainterTutorial. switchToNextLevel(GameState state)
Switches to the next levels help texts.void
PainterPlayerInfos. updatePlayers(Graphics g2, GameState state)
Draws the figure panels to the screen -
Uses of GameState in com.starpoints.painter.arena2D
Methods in com.starpoints.painter.arena2D with parameters of type GameState Modifier and Type Method Description protected int
PainterItemDriller. animationIndex(GameState state, int repaintCounter)
Calculates the animation index based on rocket speed and frame rate.protected void
PainterThing. checkForLevelChange(GameState state)
Checks for a level change and calls the initializeForNewLevel().static void
PainterItem. drawEnergyFx(Graphics g, GameState state, ItemState itemState, int xCenter, int yCenter, double factor)
Draws the energy fx.protected static void
PainterFigure. Figure_performExploding(Graphics g, FigureState f, GameState state, int xCenter, int yCenter)
Draw the explosion image.PointState
PainterItemRocket. findNextTargetPoint(ItemState i, GameState state)
protected int
PainterFigure. getAnimatedXCoordinate(int originalX, GameState state, FigureState f, int repaintCounter)
Modifies the x coordinate depending on animation.protected int
PainterItem. getAnimatedXCoordinate(int originalX, GameState state, ItemState i, int repaintCounter)
Modifies the x coordinate depending on animation.protected int
PainterFigure. getAnimatedYCoordinate(int originalY, GameState state, FigureState f, int repaintCounter)
Modifies the y coordinate depending on animation.protected int
PainterItem. getAnimatedYCoordinate(int originalY, GameState state, ItemState t, int repaintCounter)
Modifies the y coordinate depending on animation.protected double
PainterFigure. getImageScalingFactor(FigureState f, GameState state)
Returns an image scaling factor for the figure image.protected double
PainterSwampGhost. getImageScalingFactor(FigureState t, GameState state)
Gets a key for flame thrower overlay.PointState
PainterItemRocket. getTargetPoint(ItemMove anim, GameState state)
protected int
PainterThing. modifyHoverXCoordinate(int xc, FigureState f, GameState state, int repaintCounter)
Modifies the x coordinate for hovering.protected int
PainterThing. modifyHoverYCoordinate(int yc, FigureState f, GameState state, int repaintCounter)
Modifies the y coordinate for hovering.void
PainterFigure. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the figure on the graphics.void
PainterFog. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the fog.void
PainterItem. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the item on the screen.void
PainterItemAsteroid. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the rocket.void
PainterItemBigMine. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the item.void
PainterItemBlackRain. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints a small red dot on bombs.void
PainterItemBomb. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints a small red dot on bombs.void
PainterItemChainExplosion. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the stun fx.void
PainterItemChrystalStone. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the stun fx.void
PainterItemDropRocket. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the stun fx.void
PainterItemMine. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints a small red dot on active mines.void
PainterItemPhantomPoints. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the stun fx.void
PainterItemPointLoss. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the point loss item.void
PainterItemPoints. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the item.void
PainterItemRocket. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the rocket.void
PainterItemRocketeer. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the rocketeer.void
PainterItemSatellite. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the item.void
PainterItemSecretLevel. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the item.void
PainterItemWarpPoints. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints this item.void
PainterLeagueFigure. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the figure.void
PainterPlayerFigure. paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the figure.abstract void
PainterThing. paint(Graphics g, ThingState thingState, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the thing on the screen.void
PainterItemDriller. paintDrilling(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paint the aim effect.protected static void
PainterFigure. paintEnergyTransformerRegeneration(Graphics g, FigureState f, GameState state, int xCenter, int yCenter)
Paints the regeneration effect of an EnergyTransformerprotected void
PainterFigure. paintFigureImage(Graphics g, FigureState f, GameState state, int xc, int yc, double factor)
Paints the figures image.protected void
PainterLeagueFigure. paintFigureImage(Graphics g, FigureState f, GameState state, int xc, int yc, double factor)
Paints the figures image.protected void
PainterPlayerFigure. paintFigureImage(Graphics g, FigureState f, GameState state, int xc, int yc, double factor)
Paints the figures image.protected void
PainterFigure. paintFigureItem(Graphics g, FigureState f, ItemState i, GameState state, int xCenter, int yCenter)
Paints the figures item in 2D.protected void
PainterFigure. paintFigureRegeneration(Graphics g, GameState state, int xCenter, int yCenter, int regen)
Paints a figures regeneration effect.void
PainterItem. paintItemAsInfo(Graphics g, GameState state, ItemState itemState, int xCenter, int yCenter, double factor)
Paints the thing on infopanels on the screen.void
PainterItemMine. paintItemAsInfo(Graphics g, GameState state, ItemState itemState, int xCenter, int yCenter, double factor)
Paints the thing on infopanels on the screen.void
PainterItem. paintItemOnFigure(Graphics g, FigureState f, ItemState i, GameState state, int xCenter, int yCenter)
Paints th item while on the figure.void
PainterItem. paintItemOnFigureOverlay(Graphics g, FigureState f, ItemState itemState, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints on overlay for the item while on the figure.void
PainterItemDriller. paintItemOnFigureOverlay(Graphics g, FigureState f, ItemState item, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints on overlay for the item while on the figure.void
PainterFigure. paintNumber(Graphics g, FigureState t, int xCenter, int yCenter, GameState state)
Paints the figure on the screen.void
PainterBigBoss. paintOverlay(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Repaint the figure on the graphics.void
PainterBigBossDuck. paintOverlay(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Repaint the figure on the graphics.void
PainterBlasterTank. paintOverlay(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Repaint the figure on the graphics.void
PainterChaosDuck. paintOverlay(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Repaint the figure on the graphics.void
PainterFigure. paintOverlay(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paint the figure overlay on the graphics.void
PainterFog. paintOverlay(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the fog overlay.void
PainterItem. paintOverlay(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints nothing.void
PainterLaserTower. paintOverlay(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Repaint the figure on the graphics.void
PainterSwampGhost. paintOverlay(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Repaint the figure on the graphics.abstract void
PainterThing. paintOverlay(Graphics g, ThingState thingState, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the overlay for the thing on the screen.protected boolean
PainterItemRocketeer. paintRocketOnFigure(Graphics g, ItemState f, ItemState rocket, GameState state, int xCenter, int yCenter)
Paints the rocket animation.protected static void
PainterFigure. paintStunFx(Graphics g, FigureState f, GameState state, int xCenter, int yCenter)
Draws the green stun effect.protected void
PainterItem. performExploding(Graphics g, ItemState i, GameState state, int xCenter, int yCenter)
Paints the explosion fx.protected void
PainterItem. performStunEffect(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int color, double factor)
Draws the stun effect scaled. -
Uses of GameState in com.starpoints.painter.editor
Methods in com.starpoints.painter.editor with parameters of type GameState Modifier and Type Method Description protected void
PainterFlashAnimationItems. drawMaxEnergyBar(Graphics g, GameState state)
Draws the energy maximum bar.void
PainterFlashAnimationItems. onStartGame(GameState state)
void
PainterFlashAnimationPlanets. onStartGame(GameState state)
void
PainterLevelEnemies. onStartGame(GameState state)
void
PainterLevelFogs. onStartGame(GameState state)
void
PainterLevelItems. onStartGame(GameState state)
Loads images and selects the first category.void
PainterLevelOverview. onStartGame(GameState state)
void
PainterLevelProps. onStartGame(GameState state)
void
PainterMenuHorizontal. onStartGame(GameState state)
void
PainterShopItemProps. onStartGame(GameState state)
void
PainterShopItems. onStartGame(GameState state)
void
PainterShopProps. onStartGame(GameState state)
void
PainterTabbedMenu. onStartGame(GameState state)
Called if game is started.void
PainterThingProps. onStartGame(GameState state)
void
PainterEditorHelp. paint(Graphics g, GameState state)
Paints the editor help text to the screen, if editor is showing help.void
PainterEditorMenu. paint(Graphics g, GameState state)
Paints the menu.void
PainterFieldEditor. paint(Graphics g, GameState state)
Paints the editor field.void
PainterFlashAnimationEditor. paint(Graphics g, GameState state)
Paints the editor field.void
PainterFlashAnimationItemProps. paint(Graphics g, GameState state)
Paints the menu.void
PainterFlashAnimationItems. paint(Graphics g, GameState state)
Paints the menu.void
PainterFlashAnimationPlanets. paint(Graphics g, GameState state)
Paints the menu.void
PainterLevelItems. paint(Graphics g, GameState state)
Paints the menu.void
PainterLevelOverview. paint(Graphics g, GameState state)
void
PainterLevelProps. paint(Graphics g, GameState state)
Paints the menu.void
PainterMenuHorizontal. paint(Graphics g, GameState state)
Paints the menu.void
PainterShopEditor. paint(Graphics g, GameState state)
Paints the shop images.void
PainterShopItemProps. paint(Graphics g, GameState state)
Paints the menu.void
PainterShopItems. paint(Graphics g, GameState state)
Paints the menu.void
PainterShopProps. paint(Graphics g, GameState state)
Paints the menu.void
PainterTabbedMenu. paint(Graphics g, GameState state)
Paints the menu.void
PainterThingProps. paint(Graphics g, GameState state)
Paints the menu.void
PainterFieldEditor. paintPoint(Graphics g, PointState p, GameState state, int xCenter, int yCenter)
Paints the point.void
PainterFieldEditor. paintPointOverlay(Graphics g, PointState p, GameState state, int xCenter, int yCenter)
Paints the point overlay to a 2-D Graphics. -
Uses of GameState in com.starpoints.state
Fields in com.starpoints.state declared as GameState Modifier and Type Field Description static GameState
GameState. EMPTY
An empty GameState.
-