Class TPHXAnimationSet

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TPHXAnimationSet = class(TObject)

Description

The animation set handles a set of animations with support for queuing animations

Hierarchy

  • TObject
  • TPHXAnimationSet

Overview

Methods

Public constructor Create(AAnimations: TPHXAnimationList);
Public destructor Destroy; override;
Public procedure Activate(const Animation: String); overload;
Public procedure Activate(const Animation: TPHXAnimation); overload;
Public procedure Queue(const Animation: String); overload;
Public procedure Queue(const Animation: TPHXAnimation); overload;
Public procedure Start;
Public procedure Stop;
Public procedure Reset;
Public procedure Update(FrameTime: Single);
Public procedure Draw(const X, Y: Integer); overload;
Public procedure Draw(const Transform: TMatrix4); overload;

Properties

Public property Animations: TPHXAnimationList read FAnimations;
Public property Name: String read FName write FName;
Public property Active: TPHXAnimation read FActive write FActive;
Public property State: TPHXAnimationState read FState write FState;

Description

Methods

Public constructor Create(AAnimations: TPHXAnimationList);
 
Public destructor Destroy; override;
 
Public procedure Activate(const Animation: String); overload;

Activate an animation by name

Public procedure Activate(const Animation: TPHXAnimation); overload;

Activate the supplied animation, its not requred to be a member of this animationset

Public procedure Queue(const Animation: String); overload;

Queue an animation to be played after the current animation is finished

Public procedure Queue(const Animation: TPHXAnimation); overload;

AQueue an animation to be played after the current animation is finished

Public procedure Start;

Start the animation

Public procedure Stop;

Stop the animation

Public procedure Reset;

Reset a animation state to the default value

Public procedure Update(FrameTime: Single);

Update a animation state

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

Draw the animation using a specified image

Public procedure Draw(const Transform: TMatrix4); overload;

Draw the animation using a specified image

Properties

Public property Animations: TPHXAnimationList read FAnimations;
 
Public property Name: String read FName write FName;

Get and set the name of the animation set

Public property Active: TPHXAnimation read FActive write FActive;

Current, active animation

Public property State: TPHXAnimationState read FState write FState;

The animation state


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