C# Class NScumm.Scumm.Actor

Afficher le fichier Open project: scemino/nscumm Class Usage Examples

Méthodes publiques

Свойство Type Description
BoxScale ushort
Charset byte
Cost CostumeData
ForceClip byte
ScaleX byte
Top int
Width uint

Protected Properties

Свойство Type Description
_scumm ScummEngine
_speedx uint
_targetFacing ushort
_walkdata ActorWalkData

Private Properties

Свойство Type Description
AdjustActorPos void
FindPathTowards bool
IsInClass bool
RemapDirection int
StartWalkAnim void

Méthodes publiques

Méthode 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

Méthodes protégées

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

Private Methods

Méthode 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 méthode

public Actor ( ScummEngine scumm, byte id ) : System
scumm ScummEngine
id byte
Résultat System

ActorHitTest() public méthode

public ActorHitTest ( System.Point p ) : bool
p System.Point
Résultat bool

ActorWalkStep() protected méthode

protected ActorWalkStep ( ) : bool
Résultat bool

AdjustXYToBeInBox() public méthode

public AdjustXYToBeInBox ( System.Point dst ) : AdjustBoxResult
dst System.Point
Résultat AdjustBoxResult

Animate() public méthode

public Animate ( int anim ) : void
anim int
Résultat void

AnimateCostume() public méthode

public AnimateCostume ( ) : void
Résultat void

AnimateLimb() public méthode

public AnimateLimb ( int limb, int f ) : void
limb int
f int
Résultat void

CalcMovementFactor() protected méthode

protected CalcMovementFactor ( System.Point next ) : bool
next System.Point
Résultat bool

ClassChanged() public méthode

public ClassChanged ( ObjectClass cls, bool value ) : void
cls ObjectClass
value bool
Résultat void

DrawCostume() public méthode

public DrawCostume ( bool hitTestMode = false ) : void
hitTestMode bool
Résultat void

FaceToObject() public méthode

public FaceToObject ( int obj ) : void
obj int
Résultat void

GetAnimVar() public méthode

public GetAnimVar ( int var ) : int
var int
Résultat int

Hide() public méthode

public Hide ( ) : void
Résultat void

Init() public méthode

public Init ( int mode ) : void
mode int
Résultat void

PrepareDrawActorCostume() protected méthode

protected PrepareDrawActorCostume ( ICostumeRenderer bcr ) : void
bcr ICostumeRenderer
Résultat void

PutActor() public méthode

public PutActor ( ) : void
Résultat void

PutActor() public méthode

public PutActor ( System.Point pos ) : void
pos System.Point
Résultat void

PutActor() public méthode

public PutActor ( System.Point pos, byte newRoom ) : void
pos System.Point
newRoom byte
Résultat void

PutActor() public méthode

public PutActor ( byte room ) : void
room byte
Résultat void

RemapActorPalette() public méthode

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
Résultat void

ResetFrames() public méthode

public ResetFrames ( ) : void
Résultat void

RunActorTalkScript() public méthode

public RunActorTalkScript ( int f ) : void
f int
Résultat void

RunTalkScript() public méthode

public RunTalkScript ( int frame ) : void
frame int
Résultat void

SaveOrLoad() public méthode

public SaveOrLoad ( Serializer serializer ) : void
serializer NScumm.Scumm.IO.Serializer
Résultat void

SetActorCostume() public méthode

public SetActorCostume ( ushort costume ) : void
costume ushort
Résultat void

SetActorWalkSpeed() public méthode

public SetActorWalkSpeed ( uint newSpeedX, uint newSpeedY ) : void
newSpeedX uint
newSpeedY uint
Résultat void

SetAnimSpeed() public méthode

public SetAnimSpeed ( byte newAnimSpeed ) : void
newAnimSpeed byte
Résultat void

SetAnimVar() public méthode

public SetAnimVar ( int var, int value ) : void
var int
value int
Résultat void

SetBox() protected méthode

protected SetBox ( byte box ) : void
box byte
Résultat void

SetDirection() public méthode

public SetDirection ( int direction ) : void
direction int
Résultat void

SetPalette() public méthode

public SetPalette ( int idx, ushort val ) : void
idx int
val ushort
Résultat void

SetScale() public méthode

public SetScale ( int sx, int sy ) : void
sx int
sy int
Résultat void

SetupActorScale() protected méthode

protected SetupActorScale ( ) : void
Résultat void

Show() public méthode

public Show ( ) : void
Résultat void

StartAnimActor() public méthode

public StartAnimActor ( int frame ) : void
frame int
Résultat void

StartWalk() public méthode

public StartWalk ( System.Point dest, int dir ) : void
dest System.Point
dir int
Résultat void

StopActorMoving() public méthode

public StopActorMoving ( ) : void
Résultat void

TurnToDirection() public méthode

public TurnToDirection ( int newdir ) : void
newdir int
Résultat void

UpdateActorDirection() protected méthode

protected UpdateActorDirection ( bool isWalking ) : int
isWalking bool
Résultat int

Walk() public méthode

public Walk ( ) : void
Résultat void

Property Details

BoxScale public_oe property

public ushort BoxScale
Résultat ushort

Charset public_oe property

public byte Charset
Résultat byte

Cost public_oe property

public CostumeData,NScumm.Scumm Cost
Résultat CostumeData

ForceClip public_oe property

public byte ForceClip
Résultat byte

ScaleX public_oe property

public byte ScaleX
Résultat byte

Top public_oe property

public int Top
Résultat int

Width public_oe property

public uint Width
Résultat uint

_scumm protected_oe property

protected ScummEngine,NScumm.Scumm _scumm
Résultat ScummEngine

_speedx protected_oe property

protected uint _speedx
Résultat uint

_targetFacing protected_oe property

protected ushort _targetFacing
Résultat ushort

_walkdata protected_oe property

protected ActorWalkData _walkdata
Résultat ActorWalkData