Documentation ¶
Index ¶
- Constants
- func ResourceForCollectible(mType CollectibleType) fyne.Resource
- func ResourceForMover(mType MoverType) fyne.Resource
- func ResourceForWall() fyne.Resource
- type Attacker
- type AttackerType
- type BaseCharacter
- type CharacterType
- type Coin
- type Collectible
- type CollectibleType
- type GhostBlue
- type GhostOrange
- type GhostRed
- type GhostWhite
- type Mover
- type MoverType
- type Player
Constants ¶
View Source
const (
PlayerHealth = 2
)
Variables ¶
This section is empty.
Functions ¶
func ResourceForCollectible ¶
func ResourceForCollectible(mType CollectibleType) fyne.Resource
func ResourceForMover ¶
func ResourceForMover(mType MoverType) fyne.Resource
func ResourceForWall ¶
func ResourceForWall() fyne.Resource
Types ¶
type AttackerType ¶
type AttackerType int8
const ( NoneAttackerType AttackerType = iota LowAttackerType MediumAttackerType HighAttackerType )
type BaseCharacter ¶
type BaseCharacter interface { CharacterImage() fyne.Resource Type() CharacterType SetType(CharacterType) InitCharacter(*board.Position) SetCharacterPosition(*board.Position) Position() *board.Position }
func NewCharacter ¶
func NewCharacter(mType CharacterType) BaseCharacter
type CharacterType ¶
type CharacterType struct { MoverType MoverType CollectibleType CollectibleType }
type Coin ¶
type Coin struct { BaseCharacter // contains filtered or unexported fields }
type Collectible ¶
type Collectible interface { Collect() Value() int }
type CollectibleType ¶
type CollectibleType int8
const ( NoneCollectibleType CollectibleType = iota CoinType )
type GhostBlue ¶
type GhostBlue struct { BaseCharacter // contains filtered or unexported fields }
type GhostOrange ¶
type GhostOrange struct { BaseCharacter // contains filtered or unexported fields }
type GhostRed ¶
type GhostRed struct { BaseCharacter // contains filtered or unexported fields }
type GhostWhite ¶
type GhostWhite struct { BaseCharacter // contains filtered or unexported fields }
type Player ¶
type Player struct { BaseCharacter // contains filtered or unexported fields }
func (*Player) AddScore ¶
func (char *Player) AddScore(c Collectible)
func (*Player) MapKeyCodeToDirection ¶
func (char *Player) MapKeyCodeToDirection(k fyne.KeyEvent)
func (*Player) SetDirection ¶
Click to show internal directories.
Click to hide internal directories.