G1HGui

ostrat.gOne.h1p.G1HGui
case class G1HGui(canv: CanvasPlatform, game: G1HGame, settings: G1HGuiSettings) extends HGridSysGui

Graphical user interface for Game One example game. Each player can move one hex tile step. Any move to a tile already containing a player or that one more than one player is attempting to move to fails.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class HGridSysGui
trait CmdBarGui
trait CanvasUser
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

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

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

Attributes

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

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

Attributes

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.

Attributes

Inherited methods

def addPanel(clipPoly: Polygon, cover: Boolean): Panel

Attributes

Inherited from:
CanvasPanelled

Attributes

Inherited from:
CmdBarGui
def mainMouseUp: (MouseButton, RArr[Any], Pt2) => Unit

Attributes

Inherited from:
CmdBarGui
def mainMouseUp_=(f: (MouseButton, RArr[Any], Pt2) => Unit): Unit

Attributes

Inherited from:
CmdBarGui

Attributes

Inherited from:
CmdBarGui

Attributes

Inherited from:
CmdBarGui

Attributes

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.

Attributes

Inherited from:
CanvasUser
final def pixPerTile: Double

Attributes

Inherited from:
HGridSysGui

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def reTop(commands: RArr[GraphicBounded]): Unit

repaints the top command bar

repaints the top command bar

Attributes

Inherited from:
CmdBarGui
def refresh(): Unit

Attributes

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.

Attributes

Inherited from:
CanvasPanelled
def repaint(): Unit

Attributes

Inherited from:
HGridSysGui

Attributes

Inherited from:
CmdBarGui
def textButton(str: String, cmd: AnyRef): PolygonCompound

Attributes

Inherited from:
CmdBarGui

Attributes

Inherited from:
HGridSysGui

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.

Attributes

var scen: G1HScen

Inherited fields

Attributes

Inherited from:
CmdBarGui

Attributes

Inherited from:
CmdBarGui
var panels: RArr[Panel]

Attributes

Inherited from:
CanvasPanelled
var selected: Any

Selected takes the type Any, but the value None means nothing selected.

Selected takes the type Any, but the value None means nothing selected.

Attributes

Inherited from:
CmdBarGui

The text for the status field of the command bar.

The text for the status field of the command bar.

Attributes

Inherited from:
CmdBarGui
val title: String

Attributes

Inherited from:
HGridSysGui
val topBar: Panel

Attributes

Inherited from:
CmdBarGui

Implicits

Implicits

implicit def gridSys: HGridSys
implicit val proj: HSysProjection