private class HostMenu.HostPanel extends NewGameMenu.PlayerPanel
CONTENT_HEIGHT, CONTENT_WIDTH
Modifier | Constructor and Description |
---|---|
private |
HostPanel(Theme.PlayerTheme theme)
Constructs a new host panel with the given theme.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Optional<Player> |
getPlayer()
Gets the configured player for this panel if it exists.
|
protected void |
renderRemoveButton(java.awt.Graphics2D g,
double x,
double y,
java.awt.geom.Point2D mouseLoc)
Renders the remove button at the given location.
|
handleMouseClick, hasPlayer, setHuman
private HostPanel(Theme.PlayerTheme theme)
theme
- The panel theme.protected java.util.Optional<Player> getPlayer()
NewGameMenu.PlayerPanel
getPlayer
in class NewGameMenu.PlayerPanel
protected void renderRemoveButton(java.awt.Graphics2D g, double x, double y, java.awt.geom.Point2D mouseLoc)
NewGameMenu.PlayerPanel
renderRemoveButton
in class NewGameMenu.PlayerPanel
g
- The graphics context to use.x
- The x coordinate of the top left corner.y
- The y coordinate of the top left corner.mouseLoc
- The current cursor location.