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 ¶
- type AnimationHandler
- func (h *AnimationHandler) CanQueueNextAction() bool
- func (h *AnimationHandler) CurrentState() action.AnimationState
- func (h *AnimationHandler) IsAnimationLocked(next action.Action) bool
- func (h *AnimationHandler) SetActionUsed(char int, act action.Action, evt *action.ActionInfo)
- func (h *AnimationHandler) Tick()
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 (*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()
Click to show internal directories.
Click to hide internal directories.