statusoptype

package
v0.0.0-...-d7572e3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	None      StatusOpType = iota //
	AddHP                         //
	AddSP                         //
	AddHPRate                     //
	AddSPRate                     //
	//
	ModSight // change sight for 1 turn
	//
	RndFaction   // change to random faction
	IncFaction   // change to next faction
	SetFaction   // set faction to arg
	ResetFaction // reset to born faction
	//
	NegBias         // neg bias value
	RotateBiasRight // rotate bias right
	RotateBiasLeft  // rotate bias left
	//
	SetCondition // set condition for 1 turn
	//
	ForgetFloor    // forget this floor tiles
	ForgetOneFloor // forget visited floor tiles

	StatusOpType_Count int = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OpArg

type OpArg struct {
	Op  StatusOpType
	Arg interface{}
}

func Repeat

func Repeat(n int, oa OpArg) []OpArg

func RepeatShift

func RepeatShift(n int, shift int, oa OpArg) []OpArg

type StatusOpType

type StatusOpType uint8

func String2StatusOpType

func String2StatusOpType(s string) (StatusOpType, bool)

func (StatusOpType) Color24

func (sot StatusOpType) Color24() htmlcolors.Color24

func (StatusOpType) CommentString

func (e StatusOpType) CommentString() string

func (StatusOpType) String

func (e StatusOpType) String() string

Jump to

Keyboard shortcuts

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