Documentation
¶
Index ¶
- Variables
- func IdleAction(me *Action)
- func LeapAction(me *Action)
- func MoveAction(me *Action)
- func NewAction(at string) interfaces.Action
- func NewOrder(commandcode, ticknum int, actions []string, player interfaces.Player, ...) *order
- func PunchAction(me *Action)
- func PushAction(me *Action)
- type Action
Constants ¶
This section is empty.
Variables ¶
View Source
var ACTIONS = map[byte]func(partialAction *Action){ '.': IdleAction, 'm': MoveAction, 'p': PushAction, '*': PunchAction, 'l': LeapAction, }
Map of the base command string 'verbs' to which functions handle them
Functions ¶
func NewAction ¶
func NewAction(at string) interfaces.Action
Smartly creates a new action based on the given action string
func NewOrder ¶
func NewOrder(commandcode, ticknum int, actions []string, player interfaces.Player, game interfaces.Game) *order
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
func (*Action) Act ¶
func (a *Action) Act(e interfaces.Entity, g interfaces.Game) error
Wrapper around the act member to work with interfaces
func (*Action) ActionString ¶
func (*Action) AvailableDirections ¶
func (*Action) LongDescription ¶
func (*Action) ShortDescription ¶
Click to show internal directories.
Click to hide internal directories.