player

package module
v0.0.0-...-e36d765 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	JwtToken    string
	Health      int
	MaxHealth   int
	Defence     int
	Level       int
	Exp         float32
	NextExp     float32
	Ambition    float32
	MaxAmbition float32
}

The player struct

func NewPlayer

func NewPlayer() Player

func (*Player) Init

func (p *Player) Init(name, password string)

func (*Player) Update

func (p *Player) Update()

Update the player

Jump to

Keyboard shortcuts

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