class Piece extends AnyRef
Small image piece (8x8 pixels) abstraction.
- Alphabetic
- By Inheritance
- Piece
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEqual(that: Any): Boolean
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Piece → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getPixels: Seq[Seq[Colour]]
Returns a two-dimensional 8x8 array of pixel colours that was used to initialize this object.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toHiRes(palette: Palette, backgroundColour: Option[Byte] = None): (Seq[Byte], Byte)
Converts piece data into HiRes image using provided colour palette and optional background colour.
Converts piece data into HiRes image using provided colour palette and optional background colour.
- palette
colour palette to be used during conversion process
- backgroundColour
enforce usage of a constant background colour to a target image data (0x00..0x0f)
- returns
a tuple of 8 bitmap and 1 screen data bytes
-
def
toMultiColour(palette: Palette, backgroundColour: Byte): (Seq[Byte], Byte, Byte)
Converts piece data into MultiColour image using provided colour palette and background colour.
Converts piece data into MultiColour image using provided colour palette and background colour.
- palette
colour palette to be used during conversion process
- backgroundColour
background colour of a target image data (0x00..0x0f)
- returns
a tuple of 8 bitmap, 1 screen and 1 colour data bytes
-
def
toString(): String
- Definition Classes
- Piece → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )