Documentation ¶
Index ¶
- Variables
- func FormatColorString(str string, c *color.Color) string
- func OutputOtherScene(str string, scene *sgc7game.GameScene)
- func OutputResults(str string, result *sgc7game.PlayResult, isResult FuncIsResult, ...)
- func OutputScene(str string, scene *sgc7game.GameScene, mapSymbolColor *SymbolColorMap)
- func SelectColor(onselect FuncOnSelectColor, c1 *color.Color, c2 *color.Color) *color.Color
- func StartGame(game sgc7game.IGame, stake *sgc7game.Stake, onResult FuncOnResult, ...) error
- type FuncGetSymbolString
- type FuncIsResult
- type FuncOnGetChar
- type FuncOnResult
- type FuncOnSelectColor
- type SymbolColorMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ColorExitKey *color.Color
View Source
var ColorKey *color.Color
View Source
var ColorLose *color.Color
View Source
var ColorNumber *color.Color
View Source
var ColorWin *color.Color
Functions ¶
func OutputOtherScene ¶
func OutputResults ¶
func OutputResults(str string, result *sgc7game.PlayResult, isResult FuncIsResult, mapSymbolColor *SymbolColorMap)
func OutputScene ¶
func OutputScene(str string, scene *sgc7game.GameScene, mapSymbolColor *SymbolColorMap)
func SelectColor ¶
Types ¶
type FuncGetSymbolString ¶
type FuncOnResult ¶
type FuncOnResult func(*sgc7game.PlayResult, []*sgc7game.PlayResult, interface{})
type FuncOnSelectColor ¶
type FuncOnSelectColor func() bool
type SymbolColorMap ¶
type SymbolColorMap struct { MapSymbols map[int]*color.Color PayTables *sgc7game.PayTables OnGetSymbolString FuncGetSymbolString }
func NewSymbolColorMap ¶
func NewSymbolColorMap(paytables *sgc7game.PayTables) *SymbolColorMap
func (*SymbolColorMap) AddSymbolColor ¶
func (mapSymbolColor *SymbolColorMap) AddSymbolColor(s int, c *color.Color)
func (*SymbolColorMap) GetSymbolString ¶
func (mapSymbolColor *SymbolColorMap) GetSymbolString(s int) string
Click to show internal directories.
Click to hide internal directories.