statistics

package
v0.0.0-...-3723a19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ac *appcontext.Context)

New is an initialization function for appcontext

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) Init

func (s *Statistics) Init()

Init is a initialization function for package

func (*Statistics) PossibilityRequiredPokeballs

func (s *Statistics) PossibilityRequiredPokeballs(location int, grade int, lvl int) (float64, int)

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

func (*Statistics) TopList

func (s *Statistics) TopList(update *tgbotapi.Update, playerRaw *dbmapping.Player) string

TopList returns list of top users by level, money ans so on

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL