Package com.starpoints.painter.arena2D
Class PainterLeagueFigure
- java.lang.Object
-
- com.starpoints.painter.arena2D.PainterThing
-
- com.starpoints.painter.arena2D.PainterFigure
-
- com.starpoints.painter.arena2D.PainterLeagueFigure
-
public class PainterLeagueFigure extends PainterFigure
Painter for league figures.
-
-
Field Summary
-
Fields inherited from class com.starpoints.painter.arena2D.PainterFigure
figureImages
-
-
Constructor Summary
Constructors Constructor Description PainterLeagueFigure(PainterFactory painterFactory)
Creates a PainterPlayerFigure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getFigureImage(FigureState f)
Returns the current figure Image for the given figure, depending on it's energy level.void
paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the figure.protected void
paintFigureImage(Graphics g, FigureState f, GameState state, int xc, int yc, double factor)
Paints the figures image.-
Methods inherited from class com.starpoints.painter.arena2D.PainterFigure
calculateRocketX, calculateRocketY, createFigureImages, Figure_drawText, Figure_performExploding, getAnimatedXCoordinate, getAnimatedYCoordinate, getImageScalingFactor, getRamPowerImageIndex, getRocketXFactor, getRocketYFactor, getShieldingFactor, paintEnergyTransformerRegeneration, paintExplosionBlackened, paintExplosionBombed, paintExplosionEnergyLoss, paintExplosionExploded, paintExplosionOverheated, paintExplosionRammed, paintExplosionRocketed, paintFigureItem, paintFigureRegeneration, paintNumber, paintOverlay, paintRocketOnFigure, paintShielding, paintStunFx
-
Methods inherited from class com.starpoints.painter.arena2D.PainterThing
calculateAngle, checkForLevelChange, drawShaded, drawStringCentered, Figure_drawText, getController, getSplitIndex, getXCoordinate, getYCoordinate, initializeForNewLevel, modifyHoverXCoordinate, modifyHoverYCoordinate, paintOval
-
-
-
-
Constructor Detail
-
PainterLeagueFigure
public PainterLeagueFigure(PainterFactory painterFactory)
Creates a PainterPlayerFigure.- Parameters:
painterFactory
- The factory.
-
-
Method Detail
-
paint
public void paint(Graphics g, ThingState t, GameState state, int xCenter, int yCenter, int repaintCounter)
Paints the figure.- Overrides:
paint
in classPainterFigure
- Parameters:
g
- The graphics.t
- The figure.state
- The GameState.xCenter
- The x center coordinate.yCenter
- The y center coordinate.repaintCounter
- The repaint counter.
-
paintFigureImage
protected void paintFigureImage(Graphics g, FigureState f, GameState state, int xc, int yc, double factor)
Paints the figures image.- Overrides:
paintFigureImage
in classPainterFigure
- Parameters:
g
- The graphics.f
- The figure.state
- The GameState.xc
- The x center coordinate.yc
- The y center coordinate.factor
- Scaling factor.
-
getFigureImage
protected java.lang.String getFigureImage(FigureState f)
Returns the current figure Image for the given figure, depending on it's energy level.- Overrides:
getFigureImage
in classPainterFigure
- Parameters:
f
- The figure to get the image for.- Returns:
- The image.
-
-