groups

package
Version: v0.3.1-0...-ca91996 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group interface {
	Heroes() HeroList
}

Group describes a group.

type Hero

type Hero interface {
	// Name of the hero
	Name() string
	// ID of the hero
	ID() string
	// Short description (e.g. class/race/etc)
	Description() string
}

Hero describes a hero (player character).

type HeroChangeAction

type HeroChangeAction int

HeroChangeAction is an enum describing a change in the list of heroes

const (
	// HeroAdded describes the action of adding a hero to the list of heroes
	HeroAdded HeroChangeAction = iota
	// HeroModified describes the action of modifying a hero's data
	HeroModified
	// HeroDeleted describes the action of deleting a hero from the list of heroes
	HeroDeleted
)

type HeroList

type HeroList interface {
	Hero(index int) Hero
	NumHeroes() int
}

HeroList describes the list of heroes.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL