Documentation ¶
Index ¶
Constants ¶
View Source
const PieceCount = 5
PieceCount is the total amount of pieces
Variables ¶
This section is empty.
Functions ¶
func PieceTiles ¶
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
func (*Board) AllTilesFilled ¶ added in v0.4.0
func (b *Board) AllTilesFilled(pieces [PieceCount]*Piece) bool
type PauseDialog ¶ added in v0.4.2
type PauseDialog struct {
*Dialog
}
func NewPauseDialog ¶ added in v0.4.2
func NewPauseDialog(screenSize image.Point) (*PauseDialog, error)
func (*PauseDialog) SetOnBack ¶ added in v0.4.2
func (p *PauseDialog) SetOnBack(pressed func())
func (*PauseDialog) SetOnResume ¶ added in v0.4.2
func (p *PauseDialog) SetOnResume(pressed func())
type Piece ¶
type Piece struct {
// contains filtered or unexported fields
}
func (*Piece) GetPosition ¶
func (*Piece) SetPosition ¶
type WinDialog ¶ added in v0.4.0
type WinDialog struct {
*Dialog
}
func NewWinDialog ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.