Documentation ¶
Index ¶
- func CleanNick(nick string) string
- func PrintTwo(nick string, value uint64) string
- type Action
- type ActionType
- type ParseIntError
- type Player
- type PositiveError
- type WatBot
- type WatConfig
- type WatDb
- func (w *WatDb) Act(player *Player, actionType ActionType)
- func (w *WatDb) Bankruptest() []Player
- func (w *WatDb) GetTopColumn(tipe string) []Player
- func (w *WatDb) Healthiest() []Player
- func (w *WatDb) LastActed(player *Player, actionType ActionType) int64
- func (w *WatDb) Strongest() []Player
- func (w *WatDb) TopLost() []Player
- func (w *WatDb) TopTen() []Player
- func (w *WatDb) Update(upd ...interface{})
- func (w *WatDb) User(nick, host string, create bool) Player
- type WatGame
- func (g *WatGame) Balance(player *Player, fields []string) string
- func (g *WatGame) Bankrupest() string
- func (g *WatGame) Bankrupt(player *Player, fields []string) string
- func (g *WatGame) Bench(player *Player, fields []string) string
- func (g *WatGame) CanAct(player *Player, action ActionType, minTime int64) bool
- func (g *WatGame) Dice(player *Player, fields []string) string
- func (g *WatGame) Frame(player *Player, fields []string) string
- func (g *WatGame) GetTarget(player, target string) (*Player, string)
- func (g *WatGame) Heal(player *Player, fields []string) string
- func (g *WatGame) Healthiest() string
- func (g *WatGame) Int(str string) (uint64, error)
- func (g *WatGame) Leech(player *Player, fields []string) string
- func (g *WatGame) Mine(player *Player, _ []string) string
- func (g *WatGame) Msg(m *irc.Message, player *Player, fields []string)
- func (g *WatGame) Punch(player *Player, fields []string) string
- func (g *WatGame) RandInt(max int64) uint64
- func (g *WatGame) Rest(player *Player, fields []string) string
- func (g *WatGame) Riot(player *Player, fields []string) string
- func (g *WatGame) Roll(player *Player, fields []string) string
- func (g *WatGame) Send(player *Player, fields []string) string
- func (g *WatGame) Steal(player *Player, fields []string) string
- func (g *WatGame) Steroid(player *Player, fields []string) string
- func (g *WatGame) Strongest() string
- func (g *WatGame) TopLost() string
- func (g *WatGame) TopTen() string
- func (g *WatGame) Watch(player *Player, fields []string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { PlayerId uint `gorm:"primary_key;auto_increment:false"` Type ActionType `gorm:"primary_key;auto_increment:false"` Performed int64 }
type ActionType ¶
type ActionType int
const ( Action_Mine ActionType = 1 Action_Rest ActionType = 2 Action_Lift ActionType = 3 Action_Riot ActionType = 4 Action_Bankrupt ActionType = 5 )
type ParseIntError ¶
type ParseIntError struct {
// contains filtered or unexported fields
}
func (ParseIntError) Error ¶
func (e ParseIntError) Error() string
type Player ¶
type PositiveError ¶
type PositiveError struct{}
func (PositiveError) Error ¶
func (e PositiveError) Error() string
type WatDb ¶
type WatDb struct {
// contains filtered or unexported fields
}
func (*WatDb) Act ¶
func (w *WatDb) Act(player *Player, actionType ActionType)
func (*WatDb) Bankruptest ¶
func (*WatDb) GetTopColumn ¶
func (*WatDb) Healthiest ¶
type WatGame ¶
type WatGame struct {
// contains filtered or unexported fields
}
func NewWatGame ¶
func (*WatGame) Bankrupest ¶
func (*WatGame) CanAct ¶
func (g *WatGame) CanAct(player *Player, action ActionType, minTime int64) bool
func (*WatGame) Healthiest ¶
Click to show internal directories.
Click to hide internal directories.