Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultLocale() string
- 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
- type BoardWidget
- type ClickableText
- type Client
- type Game
- type Label
- type SoundEffect
- type Sprite
- type Sprites
Constants ¶
View Source
const ( DefaultServerAddress = "tcp://bgammon.org:1337" OptimizeDraw = true OptimizeSetRect = true AutoEnableTouchInput = false ShowServerSettings = false APPNAME = "boxcars" )
View Source
const MaxDebug = 2
Variables ¶
View Source
var (
SoundDie1, SoundDie2, SoundDie3 []byte
SoundDice1, SoundDice2, SoundDice3, SoundDice4 []byte
SoundMove1, SoundMove2, SoundMove3 []byte
SoundJoinLeave []byte
SoundSay []byte
)
View Source
var (
Debug int
)
Functions ¶
func DefaultLocale ¶ added in v1.1.1
func DefaultLocale() string
func LoadLocale ¶ added in v1.1.1
Types ¶
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) HandleMouse ¶ added in v1.1.2
type Client ¶
type Game ¶
type Game struct { ServerAddress string Username string Password string Watch bool TV bool Client *Client Board *board TouchInput bool // contains filtered or unexported fields }
func (*Game) EnableTouchInput ¶ added in v1.0.8
func (g *Game) EnableTouchInput()
type SoundEffect ¶ added in v1.0.5
type SoundEffect int
Click to show internal directories.
Click to hide internal directories.