Documentation ¶
Index ¶
- Constants
- type Character
- func (c *Character) BaseFrame() int
- func (c *Character) ChangeOpacity(opacity int, count int)
- func (c *Character) DecodeMsgpack(dec *msgpack.Decoder) error
- func (c *Character) Dir() data.Dir
- func (c *Character) DirCount() int
- func (c *Character) DirFix() bool
- func (c *Character) Draw(screen *ebiten.Image, offsetX, offsetY int)
- func (c *Character) DrawFootPosition() (int, int)
- func (c *Character) DrawPosition() (int, int)
- func (c *Character) EncodeMsgpack(enc *msgpack.Encoder) error
- func (c *Character) Erase()
- func (c *Character) Erased() bool
- func (c *Character) EventID() int
- func (c *Character) FrameCount() int
- func (c *Character) HasStoredState() bool
- func (c *Character) ImageSize() (int, int)
- func (c *Character) IsChangingOpacity() bool
- func (c *Character) IsMoving() bool
- func (c *Character) Loop() bool
- func (c *Character) Move(dir data.Dir)
- func (c *Character) Position() (int, int)
- func (c *Character) RestoreStoredState()
- func (c *Character) SetDir(dir data.Dir)
- func (c *Character) SetDirFix(dirFix bool)
- func (c *Character) SetFrame(frame int)
- func (c *Character) SetImage(imageType data.ImageType, imageName string)
- func (c *Character) SetSizeForTesting(w, h int)
- func (c *Character) SetSpeed(speed data.Speed)
- func (c *Character) SetStepping(stepping bool)
- func (c *Character) SetThrough(through bool)
- func (c *Character) SetVisibility(visible bool)
- func (c *Character) SetWalking(walking bool)
- func (c *Character) Size() (int, int)
- func (c *Character) Speed() data.Speed
- func (c *Character) StoreState()
- func (c *Character) Through() bool
- func (c *Character) TransferImmediately(x, y int)
- func (c *Character) Turn(dir data.Dir)
- func (c *Character) Update()
- func (c *Character) UpdateWithPage(page *data.Page)
- type ImageInfo
- type StoredState
Constants ¶
View Source
const (
PlayerEventID = -1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct {
// contains filtered or unexported fields
}
func (*Character) ChangeOpacity ¶
func (*Character) DrawFootPosition ¶
func (*Character) DrawPosition ¶
func (*Character) FrameCount ¶
func (*Character) HasStoredState ¶
func (*Character) IsChangingOpacity ¶
func (*Character) RestoreStoredState ¶
func (c *Character) RestoreStoredState()
RestoreStoredState restores the last stored state. It is useful for reviving the character state after a temporary change.
func (*Character) SetSizeForTesting ¶
func (*Character) SetStepping ¶
func (*Character) SetThrough ¶
func (*Character) SetVisibility ¶
func (*Character) SetWalking ¶
func (*Character) StoreState ¶
func (c *Character) StoreState()
StoreState stores a subset of character state. It can be restored by calling RestoreStoredState.
func (*Character) TransferImmediately ¶
func (*Character) UpdateWithPage ¶
type StoredState ¶
type StoredState struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.