public class PortalLordTheme extends NewTheme<PortalLordInstance>
Constructor and Description |
---|
PortalLordTheme() |
Modifier and Type | Method and Description |
---|---|
void |
drawAnimation(java.awt.Graphics g,
PortalLordInstance game)
Defines how the Theme subclass should handle animation.
|
void |
drawVertex(java.awt.Graphics2D g,
PortalLordInstance game,
Vertex v)
Dictates how a vertex should be drawn.
|
int[] |
getAnimationStage(Vertex v,
PortalLordInstance game)
Return a number or set of numbers that identifies what stage of drawing animation this vertex is at.
|
int |
getBoundingHeight()
Defines the height of the box used to determine the clickable area of a vertex.
|
int |
getBoundingWidth()
Defines the width of the box used to determine the clickable area of a vertex.
|
float |
getBrightnessFactor()
Returns the brightness factor drawing target vertices using the default drawTargetVertex method.
|
int |
getDrawingHeight()
Defines the width of the drawable area of a vertex.
|
int |
getDrawingWidth()
Defines the width of the drawable area of a vertex.
|
java.awt.Color |
getEdgeColor(PortalLordInstance game,
Vertex a,
Vertex b)
Defines the color used for drawing edges.
|
int |
getNumberAnimatingFrames() |
java.lang.String |
getThemeName() |
java.awt.Point |
getVertexCenter()
Defines the intended center point, relative to the origin (0, 0), on the image created by drawVertex.
|
void |
setupMoveAnimation(DoubleVertexEvent<?> event)
Assumes the event is a
|
draw, drawBWVertex, drawNormalVertex, drawSelectedVertex, drawTargetVertex, getAnimationFrame, getTheme, getVerticesSortedByY, isAnimatingConfig, isBlinkEdges, isDrawCurvyEdges, setAnimatingConfig, setAnimationFrame, setBlinkEdges, setDrawCurvyEdges, tick, tickIt
public java.lang.String getThemeName()
getThemeName
in class NewTheme<PortalLordInstance>
public void setupMoveAnimation(DoubleVertexEvent<?> event)
NewTheme
setupMoveAnimation
in class NewTheme<PortalLordInstance>
public int getNumberAnimatingFrames()
getNumberAnimatingFrames
in class NewTheme<PortalLordInstance>
public void drawAnimation(java.awt.Graphics g, PortalLordInstance game)
NewTheme
drawAnimation
in class NewTheme<PortalLordInstance>
public int[] getAnimationStage(Vertex v, PortalLordInstance game)
NewTheme
getAnimationStage
in class NewTheme<PortalLordInstance>
game
- TODOpublic void drawVertex(java.awt.Graphics2D g, PortalLordInstance game, Vertex v)
NewTheme
drawVertex
in class NewTheme<PortalLordInstance>
g
- The graphics object to draw ongame
- The PuzzleInstance subclass containing game datav
- The vertex to be drawnpublic java.awt.Point getVertexCenter()
NewTheme
getVertexCenter
in class NewTheme<PortalLordInstance>
public float getBrightnessFactor()
NewTheme
getBrightnessFactor
in class NewTheme<PortalLordInstance>
public int getBoundingHeight()
NewTheme
getBoundingHeight
in class NewTheme<PortalLordInstance>
public int getBoundingWidth()
NewTheme
getBoundingWidth
in class NewTheme<PortalLordInstance>
public int getDrawingHeight()
NewTheme
getDrawingHeight
in class NewTheme<PortalLordInstance>
public int getDrawingWidth()
NewTheme
getDrawingWidth
in class NewTheme<PortalLordInstance>
public java.awt.Color getEdgeColor(PortalLordInstance game, Vertex a, Vertex b)
NewTheme
getEdgeColor
in class NewTheme<PortalLordInstance>
game
- The PuzzleInstance subclass containing game dataa
- The first vertex connected by an edgeb
- The second vertex connected by this edge