movecharacterstate

package
v0.0.0-...-bf68151 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameState

type GameState interface {
	MapPassableAt(through bool, x, y int, ignoreCharacters bool) bool
	VariableValue(id int) int64
	RandomValue(min, max int) int
	Character(mapID, roomID, eventID int) *character.Character
}

type State

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

func New

func New(gameState GameState, mapID, roomID, eventID int, args *data.CommandArgsMoveCharacter, routeSkip bool) *State

func (*State) DecodeMsgpack

func (s *State) DecodeMsgpack(dec *msgpack.Decoder) error

func (*State) EncodeMsgpack

func (s *State) EncodeMsgpack(enc *msgpack.Encoder) error

func (*State) IsTerminated

func (s *State) IsTerminated(gameState GameState) bool

func (*State) Update

func (s *State) Update(gameState GameState)

Jump to

Keyboard shortcuts

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