animation

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

package animation provides a simple way of tracking the current animation state at any given frame, as well as if the current frame is in animation lock or not

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimationHandler

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

func New

func New(f *int, debug bool, log glog.Logger, events event.Eventter, tasks task.Tasker) *AnimationHandler

func (*AnimationHandler) CanQueueNextAction

func (h *AnimationHandler) CanQueueNextAction() bool

CanQueue returns true if we can start looking for the next action to queue on the current frame, false otherwise

func (*AnimationHandler) CurrentState

func (h *AnimationHandler) CurrentState() action.AnimationState

func (*AnimationHandler) IsAnimationLocked

func (h *AnimationHandler) IsAnimationLocked(next action.Action) bool

IsAnimationLocked returns true if the next action can be executed on the current frame; false otherwise

func (*AnimationHandler) SetActionUsed

func (h *AnimationHandler) SetActionUsed(char int, act action.Action, evt *action.ActionInfo)

func (*AnimationHandler) Tick

func (h *AnimationHandler) Tick()

Jump to

Keyboard shortcuts

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