character

package
v0.0.0-...-71e6931 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Boss

type Boss struct {
	Character
}

func NewBoss

func NewBoss(hp, damage int) *Boss

type Character

type Character struct {
	Name            string
	HP, Armor, Mana int
	Damage          int
}

func (*Character) Print

func (c *Character) Print()

type Player

type Player struct {
	Character
}

func NewPlayer

func NewPlayer(hp, mana int) *Player

Jump to

Keyboard shortcuts

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