C# Class Ultima.Animations

Datei anzeigen Open project: polserver/poltools Class Usage Examples

Public Methods

Method 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

Method 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 method

Returns Animationcount in given animfile
public static GetAnimCount ( int fileType ) : int
fileType int
return int

GetAnimLength() public static method

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

GetAnimation() public static method

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

GetAnimation() public static method

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
return Ultima.Frame[]

GetFileName() public static method

Returns Filename body is in
public static GetFileName ( int body ) : string
body int
return string

IsActionDefined() public static method

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

IsAnimDefinied() public static method

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
return bool

Reload() public static method

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

Translate() public static method

Translates body (body.def)
public static Translate ( int &body ) : void
body int
return void

Translate() public static method

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