C# Class Ultima.Animations

Afficher le fichier Open project: polserver/poltools Class Usage Examples

Méthodes publiques

Méthode Description
GetAnimCount ( int fileType ) : int

Returns Animationcount in given animfile

GetAnimLength ( int body, int fileType ) : int

Actioncount of given Body in given anim file

GetAnimation ( int body, int action, int direction, int fileType ) : Ultima.Frame[]
GetAnimation ( int body, int action, int direction, int &hue, bool preserveHue, bool FirstFrame ) : Ultima.Frame[]

Returns Framelist

GetFileName ( int body ) : string

Returns Filename body is in

IsActionDefined ( int body, int action, int direction ) : bool

Is Body with action and direction definied

IsAnimDefinied ( int body, int action, int dir, int fileType ) : bool

Is Animation in given animfile definied

Reload ( ) : void

Rereads AnimX files and bodyconv, body.def

Translate ( int &body ) : void

Translates body (body.def)

Translate ( int &body, int &hue ) : void

Translates body and hue (body.def)

Private Methods

Méthode Description
GetFileIndex ( int body, int action, int direction, int fileType, FileIndex &fileIndex, int &index ) : void

Gets Fileseek index based on fileType,body,action,direction

LoadTable ( ) : void

Method Details

GetAnimCount() public static méthode

Returns Animationcount in given animfile
public static GetAnimCount ( int fileType ) : int
fileType int
Résultat int

GetAnimLength() public static méthode

Actioncount of given Body in given anim file
public static GetAnimLength ( int body, int fileType ) : int
body int
fileType int
Résultat int

GetAnimation() public static méthode

public static GetAnimation ( int body, int action, int direction, int fileType ) : Ultima.Frame[]
body int
action int
direction int
fileType int
Résultat Ultima.Frame[]

GetAnimation() public static méthode

Returns Framelist
public static GetAnimation ( int body, int action, int direction, int &hue, bool preserveHue, bool FirstFrame ) : Ultima.Frame[]
body int
action int
direction int
hue int
preserveHue bool No Hue override
FirstFrame bool
Résultat Ultima.Frame[]

GetFileName() public static méthode

Returns Filename body is in
public static GetFileName ( int body ) : string
body int
Résultat string

IsActionDefined() public static méthode

Is Body with action and direction definied
public static IsActionDefined ( int body, int action, int direction ) : bool
body int
action int
direction int
Résultat bool

IsAnimDefinied() public static méthode

Is Animation in given animfile definied
public static IsAnimDefinied ( int body, int action, int dir, int fileType ) : bool
body int
action int
dir int
fileType int
Résultat bool

Reload() public static méthode

Rereads AnimX files and bodyconv, body.def
public static Reload ( ) : void
Résultat void

Translate() public static méthode

Translates body (body.def)
public static Translate ( int &body ) : void
body int
Résultat void

Translate() public static méthode

Translates body and hue (body.def)
public static Translate ( int &body, int &hue ) : void
body int
hue int
Résultat void