CAST II Game Engine

   MAIN       FEATURES       SCREENSHOTS       FORUMS       MANUAL       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TSkeletonResource

Unit

C2Anim

Declaration

type TSkeletonResource = class(TArrayResource)

Description

Animation skeleton resource. Stores bones hierarchy as well as all per-bone static data.

Hierarchy

TArrayResource > TResource > TItem > TBaseItem

Fields

 NameDescription
PublicElementNamesBone names
ProtectedFTotalBonesInternal bone counter
PublicHeadBone hierarchy head
PublicOffsTransformOffset transformations

Methods

Overview

Publicdestructor Destroy; override;
Protectedprocedure AddElementProperties(Element: PSkeletonElement; const Result: Props.TProperties; const Prefix: AnsiString); virtual;
Publicprocedure AddProperties(const Result: Props.TProperties); override;
Publicprocedure DoRotate(Amount: TVector3s);
Publicprocedure DoScale(Amount: TVector3s);
Publicfunction GetElementSize: Integer; override;
Publicfunction NewSkeletonElement: PSkeletonElement;
Protectedprocedure SetElementProperties(Element: PSkeletonElement; Properties: Props.TProperties; const Prefix: AnsiString); virtual;
Publicprocedure SetProperties(Properties: Props.TProperties); override;
Protectedprocedure SetTotalBones(ATotalBones: Integer);

Description

Publicdestructor Destroy; override;

 

Protectedprocedure AddElementProperties(Element: PSkeletonElement; const Result: Props.TProperties; const Prefix: AnsiString); virtual;

Called by AddProperties for each bone. Can be used to specify custom properties in descendant skeleton types.

Publicprocedure AddProperties(const Result: Props.TProperties); override;

 

Publicprocedure DoRotate(Amount: TVector3s);

Rotates the skeleton by the given amount

Publicprocedure DoScale(Amount: TVector3s);

Scales the skeleton by the given amount

Publicfunction GetElementSize: Integer; override;

 

Publicfunction NewSkeletonElement: PSkeletonElement;

Creates and returns a new amination skeleton element

Protectedprocedure SetElementProperties(Element: PSkeletonElement; Properties: Props.TProperties; const Prefix: AnsiString); virtual;

Called by SetProperties for each bone. Can be used to handle custom properties in descendant skeleton types.

Publicprocedure SetProperties(Properties: Props.TProperties); override;

 

Protectedprocedure SetTotalBones(ATotalBones: Integer);

Sets total number of bones

Properties

Overview

Publicproperty TotalBones: Integer;

Description

Publicproperty TotalBones: Integer;

Total number of bones

Last modified: Jan 6, 2010
Copyright (C) 2006-2010, casteng.com