Documentation ¶
Index ¶
- func New(ac *appcontext.Context)
- type Statistics
- func (s *Statistics) GetPoints(pointsStr string) int
- func (s *Statistics) GetPrintablePoints(points int) string
- func (s *Statistics) Init()
- func (s *Statistics) PossibilityRequiredPokeballs(location int, grade int, lvl int) (float64, int)
- func (s *Statistics) SquadStatictics(squadID int) string
- func (s *Statistics) TopList(update *tgbotapi.Update, playerRaw *dbmapping.Player) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Statistics ¶
type Statistics struct{}
Statistics is a function-handling struct for package statistics.
func (*Statistics) GetPoints ¶
func (s *Statistics) GetPoints(pointsStr string) int
GetPoints returns points to use in database
func (*Statistics) GetPrintablePoints ¶
func (s *Statistics) GetPrintablePoints(points int) string
GetPrintablePoints returns to output points (ht, attack, mp...) formatted like in PokememBroBot itself.
func (*Statistics) PossibilityRequiredPokeballs ¶
PossibilityRequiredPokeballs returns possibility of catching pokememe It's based on location, grade of pokememe and current level of player
func (*Statistics) SquadStatictics ¶
func (s *Statistics) SquadStatictics(squadID int) string
SquadStatictics generates statistics message snippet. Public due to usage in chats list
Click to show internal directories.
Click to hide internal directories.