playermanager

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MultiClass       = "MultiClass"
	Class            = "Class"
	Lvl              = "Lvl"
	SubClass         = "SubClass"
	SecondClass      = "SecondClass"
	SecondLvl        = "SecondLvl"
	SecondSubClass   = "SecondSubClass"
	FeatsValue       = "FeatsValue"
	SecondFeatsValue = "SecondFeatsValue"
)

Variables

View Source
var PlayerBinding binding.Struct

PlayerBinding is a Fyne binding on the current player

Functions

func GetMasteryByLevel

func GetMasteryByLevel(lvl int) int

GetMasteryByLevel return the mastery bonus for the given lvl

func GetStatModificator

func GetStatModificator(stat int) int

GetStatModificator return the modificator to apply for the given stat value.

Types

type Player

type Player struct {
	MultiClass       bool
	Class            classmanager.Class
	Lvl              int
	SubClass         classmanager.SubClass
	SecondClass      classmanager.Class
	SecondLvl        int
	SecondSubClass   classmanager.SubClass
	FeatsValue       int
	SecondFeatsValue int
}

Player is a struct defining a user

var CurrentPlayer *Player

CurrentPlayer is the current player (aka user)

Jump to

Keyboard shortcuts

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