Documentation ¶
Index ¶
- Variables
- type Option
- func (enum Option) AltString() string
- func (enum Option) EnsureValid() Option
- func (enum Option) Key() string
- func (enum Option) MarshalText() (text []byte, err error)
- func (enum Option) String() string
- func (enum Option) Swing(strength int) *dice.Dice
- func (enum Option) Thrust(strength int) *dice.Dice
- func (enum *Option) UnmarshalText(text []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Options = []Option{ BasicSet, KnowingYourOwnStrength, NoSchoolGrognardDamage, ThrustEqualsSwingMinus2, SwingEqualsThrustPlus2, Tbone1, Tbone1Clean, Tbone2, Tbone2Clean, PhoenixFlameD3, }
Options holds all possible values.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option byte
Option controls how Thrust and Swing are calculated.
const ( BasicSet Option = iota KnowingYourOwnStrength NoSchoolGrognardDamage ThrustEqualsSwingMinus2 SwingEqualsThrustPlus2 Tbone1 Tbone1Clean Tbone2 Tbone2Clean PhoenixFlameD3 )
Possible values.
const LastOption Option = PhoenixFlameD3
LastOption is the last valid value.
func ExtractOption ¶
ExtractOption extracts the value from a string.
func (Option) EnsureValid ¶
EnsureValid ensures this is of a known value.
func (Option) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Option) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.