player

package
v0.0.0-...-8da5bc9 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoanShark

type LoanShark struct {
	// contains filtered or unexported fields
}

type Player

type Player struct {
	Name, Region string
	Health       int8
	Cash, Week   int
	Inventory    map[string]int
	Table        *table.Table
}

func New

func New(name string) *Player

func (*Player) Bribe

func (p *Player) Bribe(amount int) bool

func (*Player) BuyWeapon

func (p *Player) BuyWeapon(s *store.Store, w *store.Weapon, qty int) error

func (*Player) Damage

func (p *Player) Damage(value int8)

func (*Player) Escape

func (p *Player) Escape() bool

func (*Player) Move

func (p *Player) Move(region string) error

func (*Player) SellWeapon

func (p *Player) SellWeapon(s *store.Store, w *store.Weapon, qty int) error

func (*Player) UpdateTable

func (p *Player) UpdateTable()

Jump to

Keyboard shortcuts

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