GOneGui

case
class GOneGui(canv: CanvasPlatform, scenStart: OneScen) extends HexMapGui

Graphical user interface for GOne example game.

trait Serializable
trait Product
trait Equals
class HexMapGui
class CmdBarGui
class Object
trait Matchable
class Any

Value members

Concrete methods

There are mo moves set. The Gui is reset to this state at the start of every turn.

There are mo moves set. The Gui is reset to this state at the start of every turn.

Creates the turn button and the action to commit on mouse click.

Creates the turn button and the action to commit on mouse click.

TextGraphics to display the HCen coordinate in the tiles that have no unit counters.

TextGraphics to display the HCen coordinate in the tiles that have no unit counters.

This is the graphical display of the planned move orders.

This is the graphical display of the planned move orders.

def thisTop(): Unit

The frame to refresh the top command bar. Note it is a ref so will change with scenario state.

The frame to refresh the top command bar. Note it is a ref so will change with scenario state.

We could of used the mapHCen method and produced the units and the hexstrs graphics at the same time, but its easier to keep them separate.

We could of used the mapHCen method and produced the units and the hexstrs graphics at the same time, but its easier to keep them separate.

Inherited methods

def addPanel(clipPoly: Polygon, cover: Boolean): Panel
Inherited from
CanvasPanelled
def mainHeight: Double
Inherited from
CmdBarGui
def mainMouseUp: (MouseButton, Arr[AnyRef], Pt2) => Unit
Inherited from
CmdBarGui
def mainMouseUp_=(f: (MouseButton, Arr[AnyRef], Pt2) => Unit): Unit
Inherited from
CmdBarGui
def mainRepaint(els: Arr[GraphicElem]): Unit
Inherited from
CmdBarGui
def mainRepaints(els: GraphicElem*): Unit
Inherited from
CmdBarGui
def mainWidth: Double
Inherited from
CmdBarGui

This reverses the order of the GraphicActive List. Method paints objects to screen as side effect.

This reverses the order of the GraphicActive List. Method paints objects to screen as side effect.

Inherited from
CanvasUser
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def reTop(commands: Arr[GraphicBounded]): Unit

repaints the top command bar

repaints the top command bar

Inherited from
CmdBarGui
def refresh(): Unit
Inherited from
CanvasPanelled
def refreshPanel(panel: Panel): Unit

This method creates a new frame for the panel. It clips the painting area. Paints the Panel with the back colour, translates the GraphicElems from their positions relative to the Panel's centre to their absolute positions on the canvas. It stores the active object shapes with their absolute positions on the panels active object list. Finally it unclips the painting area.

This method creates a new frame for the panel. It clips the painting area. Paints the Panel with the back colour, translates the GraphicElems from their positions relative to the Panel's centre to their absolute positions on the canvas. It stores the active object shapes with their absolute positions on the panels active object list. Finally it unclips the painting area.

Inherited from
CanvasPanelled
def repaint(): Unit
Inherited from
TileMapGui
def scaleStr: String
Inherited from
TileMapGui
def textBox(str: String, cmd: AnyRef): PolygonCompound
Inherited from
CmdBarGui
override
def tileScale: Double
Definition Classes
Inherited from
HexMapGui
Inherited from
TileMapGui

Concrete fields

This is the planned moves or orders for the next turn. Note this is just a record of the planned moves it is not graphical display of those moves. This data is state for the Gui.

This is the planned moves or orders for the next turn. Note this is just a record of the planned moves it is not graphical display of those moves. This data is state for the Gui.

Draws the tiles sides (or edges).

Draws the tiles sides (or edges).

This makes the tiles active. They respond to mouse clicks. It does not paint or draw the tiles.

This makes the tiles active. They respond to mouse clicks. It does not paint or draw the tiles.

var yScale: Double

Inherited fields

val barWidth: Int
Inherited from
CmdBarGui
Inherited from
CmdBarGui
Inherited from
CanvasPanelled
var selected: Arr[AnyRef]
Inherited from
CmdBarGui
var statusText: String

The text for the status field of the command bar.

The text for the status field of the command bar.

Inherited from
CmdBarGui
val title: String
Inherited from
CanvasUser
Inherited from
CmdBarGui

Implicits

Implicits

implicit
def grid: HGrid