turnaction

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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PassTurn    TurnAction = iota // no action just trigger turn
	Rebirth                       //
	MoveFloor                     // tower cmd
	Meditate                      // rest and recover HP,SP
	KillSelf                      //
	Move                          // move 8way near tile
	Attack                        // attack near 1 tile
	AttackWide                    // attack near 3 tile
	AttackLong                    // attack 3 tile to direction
	Pickup                        // pickup carryobj
	Drop                          // drop carryobj
	Equip                         // equip equipable carryobj
	UnEquip                       // unequip equipable carryobj
	DrinkPotion                   //
	ReadScroll                    //
	Recycle                       // sell carryobj
	EnterPortal                   //
	ActTeleport                   //

	TurnAction_Count int = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TurnAction

type TurnAction uint8

func String2TurnAction

func String2TurnAction(s string) (TurnAction, bool)

func (TurnAction) CommentString

func (e TurnAction) CommentString() string

func (TurnAction) NeedTurn

func (cmd TurnAction) NeedTurn() float64

NeedTurn need turn to act

func (TurnAction) SleepBlockAct

func (cmd TurnAction) SleepBlockAct() bool

SleepBlockAct sleep condition prevent act

func (TurnAction) String

func (e TurnAction) String() string

func (TurnAction) TriggerTurn

func (cmd TurnAction) TriggerTurn() bool

TriggerTurn trigger tower/floor turn

Jump to

Keyboard shortcuts

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