player

package
v0.0.0-...-ba309c1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 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 CharacterSheet

type CharacterSheet struct {
	PlayerName string
	Class      string
	Level      int
	CurrentHP  int
	TotalHP    int

	Str int
	Dex int
	Con int
	Int int
	Wis int
	Cha int
}

func (*CharacterSheet) String

func (cs *CharacterSheet) String() string

type DNDBeyondJSON

type DNDBeyondJSON struct {
	ID               int           `json:id`
	Name             string        `json:name`
	BaseHitPoints    int           `json:baseHitPoints`
	RemovedHitPoints int           `json:removedHitPoints`
	Stats            []PlayerStats `json:stats`
	Modifiers        Modifiers     `json:modifiers`
	Classes          []PlayerClass
}

type Modifier

type Modifier struct {
	ID          string `json:id`
	EntityID    int    `json:entityId`
	SubType     string `json:subType`
	TypeName    string `json:friendlyTypeName`
	SubTypeName string `json:friendlySubtypeName`
	Value       int    `json:value`
}

type Modifiers

type Modifiers struct {
	Race  []Modifier `json:race`
	Class []Modifier `json:class`
}

type PlayerClass

type PlayerClass struct {
	Level      int                   `json:level`
	Definition PlayerClassDefinition `json:definition`
}

type PlayerClassDefinition

type PlayerClassDefinition struct {
	Name    string `json:name`
	HitDice int    `json:hitDice`
}

type PlayerHandler

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

PlayerHandler implements the BaeSayHandler interface for player character sheets.

func NewPlayerHandler

func NewPlayerHandler(playerIDs []int) *PlayerHandler

func (*PlayerHandler) SayWithBae

func (ph *PlayerHandler) SayWithBae(db baepi.DiceBae, e *baepi.Baevent) (*baepi.Baesponse, error)

func (*PlayerHandler) ShouldSay

func (ph *PlayerHandler) ShouldSay(db baepi.DiceBae, e *baepi.Baevent) bool

type PlayerStats

type PlayerStats struct {
	ID    int `json:id`
	Value int `json:value`
}

type SpellSlots

type SpellSlots struct {
	Level     int `json:level`
	Used      int `json:used`
	Available int `json:available`
}

Jump to

Keyboard shortcuts

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