LsE1

case class LsE1(canv: CanvasPlatform) extends CmdBarGui

E Series lessons deal with games. E1 is a super simple single player turn game.

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

Value members

Concrete methods

def frame(): Unit

frame refers to the screen output. In the same way that a movie is constructed from a number of still frames. So we create the "action" in a graphical application through a series of frames. Unlike in the movies our display may not change for significant periods of time. Where we can it is simpler to create the whole screen out, to create each from a blank slate so to speak rather than just painting the parts of the dsplay that have been modified.

frame refers to the screen output. In the same way that a movie is constructed from a number of still frames. So we create the "action" in a graphical application through a series of frames. Unlike in the movies our display may not change for significant periods of time. Where we can it is simpler to create the whole screen out, to create each from a blank slate so to speak rather than just painting the parts of the dsplay that have been modified.

def newTurn(): Unit

Inherited methods

def addPanel(clipPoly: Polygon, cover: Boolean): Panel
Inherited from:
CanvasPanelled
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
Inherited from:
CmdBarGui
Inherited from:
CmdBarGui
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
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 textBox(str: String, cmd: AnyRef): PolygonCompound
Inherited from:
CmdBarGui

Concrete fields

Inherited fields

Inherited from:
CmdBarGui
Inherited from:
CmdBarGui
Inherited from:
CanvasPanelled
var selected: Arr[AnyRef]
Inherited from:
CmdBarGui

The text for the status field of the command bar.

The text for the status field of the command bar.

Inherited from:
CmdBarGui
Inherited from:
CanvasUser
Inherited from:
CmdBarGui