record TPHXAnimationState

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TPHXAnimationState = record

Description

Contains the state for a animation

Overview

Fields

Animation: TPHXAnimation;
Queued: TPHXAnimation;
Active: Boolean;
Finished: Boolean;
Time: Single;
Frame: Integer;
Name: String;
Pattern: Integer;

Methods

class function Create(AAnimation: TPHXAnimation): TPHXAnimationState; static;
procedure Reset; overload;
procedure Update(const DeltaTime: Double);
procedure Draw(const X, Y: Integer); overload;
procedure Draw(const Transform: TMatrix4); overload;

Description

Fields

Animation: TPHXAnimation;

The current animation

Queued: TPHXAnimation;

The queued animation, when the current animation is finished this will start

Active: Boolean;

The animation is active

Finished: Boolean;

The animation is finished (only true if not looped)

Time: Single;

Elased time

Frame: Integer;

Current frame index

Name: String;

Current pattern name

Pattern: Integer;

Current pattern index

Methods

class function Create(AAnimation: TPHXAnimation): TPHXAnimationState; static;

Create a new animation state

procedure Reset; overload;

Reset the animation state

procedure Update(const DeltaTime: Double);

Update the animation state

procedure Draw(const X, Y: Integer); overload;

Draw the animation at a coordinate

procedure Draw(const Transform: TMatrix4); overload;

Draw the animation using a transformation matrix


Generated by PasDoc 0.13.0 on 2013-08-26 11:02:38