Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultFullscreen() bool
- func GetLocale() (string, error)
- func LoadBytes(p string) []byte
- func LoadLocale(forceLanguage *language.Tag) error
- func LoadOGG(context *audio.Context, p string) *audio.Player
- func LoadWAV(context *audio.Context, p string) *audio.Player
- func NewBoard() *board
- func NewLobby() *lobby
- func NewTutorialWidget() *tutorialWidget
- func ReplayDir() string
- type BoardBackgroundWidget
- type BoardDraggedWidget
- type BoardMovingWidget
- type BoardWidget
- type ClickableText
- type Client
- type Dialog
- type DieButton
- type Game
- type Input
- type Label
- type NumericInput
- type SoundEffect
- type Sprite
- type Sprites
Constants ¶
View Source
const ( AppVersion = "v1.4.7" MaxDebug = 2 DefaultServerAddress = "wss://ws.bgammon.org:1338" )
View Source
const ( ShowServerSettings = false ShowQuitDialog = true )
Variables ¶
View Source
var (
SoundDie1, SoundDie2, SoundDie3 *audio.Player
SoundDice1, SoundDice2, SoundDice3, SoundDice4 *audio.Player
SoundMove1, SoundMove2, SoundMove3 *audio.Player
SoundHomeSingle *audio.Player
SoundHomeMulti1, SoundHomeMulti2 *audio.Player
SoundJoinLeave *audio.Player
SoundSay *audio.Player
)
View Source
var AppLanguage = "en"
View Source
var (
AppName = appName()
)
View Source
var (
Debug int8
)
View Source
var (
ImgIconAlt image.Image
)
Functions ¶
func DefaultFullscreen ¶ added in v1.4.1
func DefaultFullscreen() bool
func LoadLocale ¶ added in v1.1.1
func NewTutorialWidget ¶ added in v1.2.1
func NewTutorialWidget() *tutorialWidget
Types ¶
type BoardBackgroundWidget ¶ added in v1.4.4
func NewBoardBackgroundWidget ¶ added in v1.4.4
func NewBoardBackgroundWidget() *BoardBackgroundWidget
func (*BoardBackgroundWidget) Draw ¶ added in v1.4.4
func (w *BoardBackgroundWidget) Draw(screen *ebiten.Image) error
type BoardDraggedWidget ¶ added in v1.3.4
func NewBoardDraggedWidget ¶ added in v1.3.4
func NewBoardDraggedWidget() *BoardDraggedWidget
func (*BoardDraggedWidget) Draw ¶ added in v1.3.4
func (w *BoardDraggedWidget) Draw(screen *ebiten.Image) error
type BoardMovingWidget ¶ added in v1.3.4
func NewBoardMovingWidget ¶ added in v1.3.4
func NewBoardMovingWidget() *BoardMovingWidget
func (*BoardMovingWidget) Draw ¶ added in v1.3.4
func (w *BoardMovingWidget) Draw(screen *ebiten.Image) error
type BoardWidget ¶ added in v1.1.0
func NewBoardWidget ¶ added in v1.1.0
func NewBoardWidget() *BoardWidget
func (*BoardWidget) HandleMouse ¶ added in v1.1.0
type ClickableText ¶ added in v1.1.2
func (*ClickableText) Cursor ¶ added in v1.4.1
func (t *ClickableText) Cursor() ebiten.CursorShapeType
func (*ClickableText) HandleMouse ¶ added in v1.1.2
type Client ¶
type Client struct { Address string Username string Password string Events chan interface{} Out chan []byte // contains filtered or unexported fields }
func (*Client) Disconnect ¶ added in v1.4.0
func (c *Client) Disconnect()
type Dialog ¶ added in v1.4.2
func (*Dialog) Background ¶ added in v1.4.6
type DieButton ¶ added in v1.1.5
func NewDieButton ¶ added in v1.1.5
type Game ¶
type Game struct { ServerAddress string Email string Username string Password string JoinGame int Mute bool Instant bool Fullscreen bool LoadReplay []byte *sync.Mutex // contains filtered or unexported fields }
func (*Game) ConnectLocal ¶ added in v1.1.6
func (*Game) HandleReplay ¶ added in v1.2.0
type NumericInput ¶ added in v1.4.1
func (*NumericInput) HandleKeyboard ¶ added in v1.4.1
func (i *NumericInput) HandleKeyboard(key ebiten.Key, r rune) (handled bool, err error)
type SoundEffect ¶ added in v1.0.5
type SoundEffect int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.