Documentation ¶
Index ¶
- type BoardProp
- func (p BoardProp) CalculateDown() (score int)
- func (p BoardProp) CalculateLeft() (score int)
- func (p BoardProp) CalculateRight() (score int)
- func (p BoardProp) CalculateUp() (score int)
- func (p BoardProp) CanMakeMove(lst []int) bool
- func (p *BoardProp) MoveDown()
- func (p *BoardProp) MoveLeft()
- func (p *BoardProp) MoveRight()
- func (p *BoardProp) MoveUp()
- func (p *BoardProp) NewTile() (idx int, prop TileProp)
- func (p *BoardProp) ResolveIndexByFieldCoordinates(x, y int) (idx int)
- func (p *BoardProp) ResolveScreenPositionByIndex(idx int) (pos image.Point)
- func (p *BoardProp) SerializeList() (res []int)
- func (p BoardProp) UpdateMergedTiles(idx1 int, idx2 int, sum int, lst []int)
- type FieldProps
- type Metrics
- type TileProp
- type TilePropWrap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoardProp ¶
type BoardProp struct { Name string Description string Score int Step int NoMove bool Speed int State common.BoardState Color common.ColorPair Size image.Point BoardRect image.Rectangle Direction common.Direction FieldProps *FieldProps List []*TileProp Agent agent.Agent IsFinished bool Mode common.PlayMode }
func (BoardProp) CalculateDown ¶
func (BoardProp) CalculateLeft ¶
func (BoardProp) CalculateRight ¶
func (BoardProp) CalculateUp ¶
func (BoardProp) CanMakeMove ¶
func (*BoardProp) ResolveIndexByFieldCoordinates ¶
func (*BoardProp) ResolveScreenPositionByIndex ¶
func (*BoardProp) SerializeList ¶
type FieldProps ¶
type TilePropWrap ¶
type TilePropWrap struct {
Ptr *TileProp
}
Click to show internal directories.
Click to hide internal directories.