CPScreen
Game engine view on terminal screen.
Attributes
- bgPixel
Background pixel for the screen.
- dim
Screen dimension.
- Source:
- CPScreen.scala
- Graph
- Supertypes
Members list
Value members
Concrete methods
Adds Z-pixel at given XY-coordinate.
Adds Z-pixel at given XY-coordinate.
Attributes
- x
X-coordinate of the pixel.
- y
Y-coordinate of the pixel.
- zpx
Z-pixel to add.
- Definition Classes
- Source:
- CPScreen.scala
Gets the pixel at given XY-coordinate.
Gets the pixel at given XY-coordinate.
Attributes
- x
X-coordinate of the pixel to get.
- y
Y-coordinate of the pixel to get.
- Source:
- CPScreen.scala
Clears this screen.
Creates a new screen that is a copy of this screen.
Copies region of this screen to another screen.
Copies region of this screen to another screen.
Attributes
- other
Other screen to copy to.
- Source:
- CPScreen.scala
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation.
Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that
objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int.
(o1.hashCode.equals(o2.hashCode)
).
Attributes
- that
the object to compare against this object for equality.
- Returns:
true
if the receiver object is equivalent to the argument;false
otherwise.- Definition Classes
- Any
- Source:
- CPScreen.scala
Gets background pixel of this pane.
Gets dimension of this pane.
Gets Z-pixel at given XY-coordinate.
Gets Z-pixel at given XY-coordinate.
Attributes
- x
X-coordinate of the pixel.
- y
Y-coordinate of the pixel.
- Definition Classes
- Source:
- CPScreen.scala
Gets rectangular shape of this screen.
Creates new canvas that can be used to draw on this screen.
Creates new canvas that can be used to draw on this screen with given clipping region.
Creates new canvas that can be used to draw on this screen with given clipping region.
Attributes
- clip
Clipping region.
- Source:
- CPScreen.scala
Gets optional Z-pixel at given XY-coordinate.
Gets optional Z-pixel at given XY-coordinate.
Attributes
- x
X-coordinate of the pixel.
- y
Y-coordinate of the pixel.
- Returns:
Some
of pixel if given XY-coordinate is valid,None
otherwise.- Definition Classes
- Source:
- CPScreen.scala
Inherited methods
Adds pixel at given XY-coordinate and Z-index.
Adds pixel at given XY-coordinate and Z-index.
Attributes
- px
Pixel to add.
- x
X-coordinate of the pixel.
- y
Y-coordinate of the pixel.
- z
Z-index. Pixel with the larger or equal Z-index overrides the pixel with the smaller one.
- Inherited from:
- CPZPixelPane
- Source:
- CPZPixelPane.scala