C# Class NScumm.Scumm.Actor

Mostrar archivo Open project: scemino/nscumm Class Usage Examples

Public Properties

Property Type Description
BoxScale ushort
Charset byte
Cost CostumeData
ForceClip byte
ScaleX byte
Top int
Width uint

Protected Properties

Property Type Description
_scumm ScummEngine
_speedx uint
_targetFacing ushort
_walkdata ActorWalkData

Private Properties

Property Type Description
AdjustActorPos void
FindPathTowards bool
IsInClass bool
RemapDirection int
StartWalkAnim void

Public Methods

Method Description
Actor ( ScummEngine scumm, byte id ) : System
ActorHitTest ( System.Point p ) : bool
AdjustXYToBeInBox ( System.Point dst ) : AdjustBoxResult
Animate ( int anim ) : void
AnimateCostume ( ) : void
AnimateLimb ( int limb, int f ) : void
ClassChanged ( ObjectClass cls, bool value ) : void
DrawCostume ( bool hitTestMode = false ) : void
FaceToObject ( int obj ) : void
GetAnimVar ( int var ) : int
Hide ( ) : void
Init ( int mode ) : void
PutActor ( ) : void
PutActor ( System.Point pos ) : void
PutActor ( System.Point pos, byte newRoom ) : void
PutActor ( byte room ) : void
RemapActorPalette ( int r_fact, int g_fact, int b_fact, int threshold ) : void
ResetFrames ( ) : void
RunActorTalkScript ( int f ) : void
RunTalkScript ( int frame ) : void
SaveOrLoad ( Serializer serializer ) : void
SetActorCostume ( ushort costume ) : void
SetActorWalkSpeed ( uint newSpeedX, uint newSpeedY ) : void
SetAnimSpeed ( byte newAnimSpeed ) : void
SetAnimVar ( int var, int value ) : void
SetDirection ( int direction ) : void
SetPalette ( int idx, ushort val ) : void
SetScale ( int sx, int sy ) : void
Show ( ) : void
StartAnimActor ( int frame ) : void
StartWalk ( System.Point dest, int dir ) : void
StopActorMoving ( ) : void
TurnToDirection ( int newdir ) : void
Walk ( ) : void

Protected Methods

Method Description
ActorWalkStep ( ) : bool
CalcMovementFactor ( System.Point next ) : bool
PrepareDrawActorCostume ( ICostumeRenderer bcr ) : void
SetBox ( byte box ) : void
SetupActorScale ( ) : void
UpdateActorDirection ( bool isWalking ) : int

Private Methods

Method Description
AdjustActorPos ( ) : void
FindPathTowards ( byte box1nr, byte box2nr, byte box3nr, System.Point &foundPath ) : bool
IsInClass ( ObjectClass cls ) : bool
RemapDirection ( int dir, bool isWalking ) : int
StartWalkAnim ( int cmd, int angle ) : void

Method Details

Actor() public method

public Actor ( ScummEngine scumm, byte id ) : System
scumm ScummEngine
id byte
return System

ActorHitTest() public method

public ActorHitTest ( System.Point p ) : bool
p System.Point
return bool

ActorWalkStep() protected method

protected ActorWalkStep ( ) : bool
return bool

AdjustXYToBeInBox() public method

public AdjustXYToBeInBox ( System.Point dst ) : AdjustBoxResult
dst System.Point
return AdjustBoxResult

Animate() public method

public Animate ( int anim ) : void
anim int
return void

AnimateCostume() public method

public AnimateCostume ( ) : void
return void

AnimateLimb() public method

public AnimateLimb ( int limb, int f ) : void
limb int
f int
return void

CalcMovementFactor() protected method

protected CalcMovementFactor ( System.Point next ) : bool
next System.Point
return bool

ClassChanged() public method

public ClassChanged ( ObjectClass cls, bool value ) : void
cls ObjectClass
value bool
return void

DrawCostume() public method

public DrawCostume ( bool hitTestMode = false ) : void
hitTestMode bool
return void

FaceToObject() public method

public FaceToObject ( int obj ) : void
obj int
return void

GetAnimVar() public method

public GetAnimVar ( int var ) : int
var int
return int

Hide() public method

public Hide ( ) : void
return void

Init() public method

public Init ( int mode ) : void
mode int
return void

PrepareDrawActorCostume() protected method

protected PrepareDrawActorCostume ( ICostumeRenderer bcr ) : void
bcr ICostumeRenderer
return void

PutActor() public method

public PutActor ( ) : void
return void

PutActor() public method

public PutActor ( System.Point pos ) : void
pos System.Point
return void

PutActor() public method

public PutActor ( System.Point pos, byte newRoom ) : void
pos System.Point
newRoom byte
return void

PutActor() public method

public PutActor ( byte room ) : void
room byte
return void

RemapActorPalette() public method

public RemapActorPalette ( int r_fact, int g_fact, int b_fact, int threshold ) : void
r_fact int
g_fact int
b_fact int
threshold int
return void

ResetFrames() public method

public ResetFrames ( ) : void
return void

RunActorTalkScript() public method

public RunActorTalkScript ( int f ) : void
f int
return void

RunTalkScript() public method

public RunTalkScript ( int frame ) : void
frame int
return void

SaveOrLoad() public method

public SaveOrLoad ( Serializer serializer ) : void
serializer NScumm.Scumm.IO.Serializer
return void

SetActorCostume() public method

public SetActorCostume ( ushort costume ) : void
costume ushort
return void

SetActorWalkSpeed() public method

public SetActorWalkSpeed ( uint newSpeedX, uint newSpeedY ) : void
newSpeedX uint
newSpeedY uint
return void

SetAnimSpeed() public method

public SetAnimSpeed ( byte newAnimSpeed ) : void
newAnimSpeed byte
return void

SetAnimVar() public method

public SetAnimVar ( int var, int value ) : void
var int
value int
return void

SetBox() protected method

protected SetBox ( byte box ) : void
box byte
return void

SetDirection() public method

public SetDirection ( int direction ) : void
direction int
return void

SetPalette() public method

public SetPalette ( int idx, ushort val ) : void
idx int
val ushort
return void

SetScale() public method

public SetScale ( int sx, int sy ) : void
sx int
sy int
return void

SetupActorScale() protected method

protected SetupActorScale ( ) : void
return void

Show() public method

public Show ( ) : void
return void

StartAnimActor() public method

public StartAnimActor ( int frame ) : void
frame int
return void

StartWalk() public method

public StartWalk ( System.Point dest, int dir ) : void
dest System.Point
dir int
return void

StopActorMoving() public method

public StopActorMoving ( ) : void
return void

TurnToDirection() public method

public TurnToDirection ( int newdir ) : void
newdir int
return void

UpdateActorDirection() protected method

protected UpdateActorDirection ( bool isWalking ) : int
isWalking bool
return int

Walk() public method

public Walk ( ) : void
return void

Property Details

BoxScale public_oe property

public ushort BoxScale
return ushort

Charset public_oe property

public byte Charset
return byte

Cost public_oe property

public CostumeData,NScumm.Scumm Cost
return CostumeData

ForceClip public_oe property

public byte ForceClip
return byte

ScaleX public_oe property

public byte ScaleX
return byte

Top public_oe property

public int Top
return int

Width public_oe property

public uint Width
return uint

_scumm protected_oe property

protected ScummEngine,NScumm.Scumm _scumm
return ScummEngine

_speedx protected_oe property

protected uint _speedx
return uint

_targetFacing protected_oe property

protected ushort _targetFacing
return ushort

_walkdata protected_oe property

protected ActorWalkData _walkdata
return ActorWalkData