blockudoku.models

Members list

Type members

Classlikes

case class Element(structure: List[Point], slot: Int, colors: Int)

Represents a placeable element in the game.

Represents a placeable element in the game.

Value parameters

colors

Index of the color of the element.

slot

The slot the element is in.

structure

List of points that make up the element.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Grid(xLength: Int, yLength: Int, tiles: List[Tile])

Represents the state of the grid.

Represents the state of the grid.

Value parameters

tiles

list of tiles that make up the grid.

xLength

size of the grid in the x-axis.

yLength

size of the grid in the y-axis.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Point(xPos: Int, yPos: Int)

Represents a point in a 2D space.

Represents a point in a 2D space.

Value parameters

xPos

The x position of the point.

yPos

The y position of the point.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Score(value: Int)

Represents the score of the player.

Represents the score of the player.

Value parameters

value

the value of the score

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Tile(index: Int, position: Point, colors: Int, state: TileState)

Represents a tile in a grid.

Represents a tile in a grid.

Value parameters

colors

The colors of the tile.

index

The index of the tile.

position

The position of the tile.

state

The state of the tile.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum TileState

Represents the state of a tile.

Represents the state of a tile.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all