GOneGui

ostrat.gOne.GOneGui
case class GOneGui(canv: CanvasPlatform, scenStart: OneScen, viewIn: HGView) 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 CmdBarGui
class Object
trait Matchable
class Any

Members list

Concise view

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

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.

Attributes

Draws the tiles sides (or edges).

Draws the tiles sides (or edges).

Attributes

This is the graphical display of the planned move orders.

This is the graphical display of the planned move orders.

Attributes

Draws the tiles sides (or edges).

Draws the tiles sides (or edges).

Attributes

Draws the tiles sides (or edges).

Draws the tiles sides (or edges).

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
def focusAdj(uniStr: String)(f: (Vec2, Double) => Vec2): PolygonCompound

Attributes

Inherited from:
TGridSysGui

Attributes

Inherited from:
TGridSysGui

Attributes

Inherited from:
TGridSysGui

Attributes

Inherited from:
TGridSysGui

Attributes

Inherited from:
TGridSysGui

Attributes

Inherited from:
CmdBarGui

Attributes

Inherited from:
CmdBarGui

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

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Pixels per Tile. The number of pixels from a side of a tile to the opposite side of the tile.

Pixels per Tile. The number of pixels from a side of a tile to the opposite side of the tile.

Attributes

Inherited from:
HGridSysGui
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:
TGridSysGui
def textBox(str: String, cmd: AnyRef): PolygonCompound

Attributes

Inherited from:
CmdBarGui

Attributes

Inherited from:
TGridSysGui

Attributes

Inherited from:
TGridSysGui

Attributes

Inherited from:
TGridSysGui

Concrete fields

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.

Attributes

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

val urect: Rect

Inherited fields

Attributes

Inherited from:
CmdBarGui

The number of pixels displayed per c column coordinate.

The number of pixels displayed per c column coordinate.

Attributes

Inherited from:
TGridSysGui
var focus: Vec2

Attributes

Inherited from:
TGridSysGui

Attributes

Inherited from:
CmdBarGui

Attributes

Inherited from:
CanvasPanelled

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

Attributes

Inherited from:
CanvasUser

Attributes

Inherited from:
CmdBarGui

Implicits

Implicits

implicit def gridSys: HGridSys

Tile grid system this gui displays.

Tile grid system this gui displays.

Attributes

implicit val proj: HSysProjection