ScummVM API documentation
TwinE::Movements Class Reference

Public Member Functions

 Movements (TwinEEngine *engine)
 
void setActionNormal (bool actionNormal)
 
void update ()
 
bool shouldExecuteAction () const
 
IVec3 getShadow (const IVec3 &pos)
 
void initRealAngle (int16 startAngle, int16 endAngle, int16 stepAngle, ActorMoveStruct *movePtr)
 
void clearRealAngle (ActorStruct *actorPtr)
 
void setActorAngle (int16 startAngle, int16 endAngle, int16 stepAngle, ActorMoveStruct *movePtr)
 
int32 getAngle (int32 x1, int32 z1, int32 x2, int32 z2)
 
int32 getAngle (const IVec3 &v1, const IVec3 &v2)
 
void initRealAngleConst (int32 start, int32 end, int32 duration, ActorMoveStruct *movePtr) const
 
void doDir (int32 actorIdx)
 

Public Attributes

bool _lastJoyFlag = false
 
int32 _targetActorDistance = 0
 

Member Function Documentation

◆ shouldExecuteAction()

bool TwinE::Movements::shouldExecuteAction ( ) const
inline

Hero executes the current action of the trigger zone

◆ getShadow()

IVec3 TwinE::Movements::getShadow ( const IVec3 pos)

Get shadow position

Parameters
posShadow coordinates

◆ initRealAngle()

void TwinE::Movements::initRealAngle ( int16  startAngle,
int16  endAngle,
int16  stepAngle,
ActorMoveStruct movePtr 
)

Set actor safe angle

Parameters
startAnglestart angle
endAngleend angle
stepAnglenumber of steps
movePtrtime pointer to update

◆ clearRealAngle()

void TwinE::Movements::clearRealAngle ( ActorStruct actorPtr)

Clear actors safe angle

Parameters
actorPtractor pointer

◆ setActorAngle()

void TwinE::Movements::setActorAngle ( int16  startAngle,
int16  endAngle,
int16  stepAngle,
ActorMoveStruct movePtr 
)

Set actor safe angle

Parameters
startAnglestart angle
endAngleend angle
stepAnglenumber of steps
movePtrtime pointer to update

◆ getAngle()

int32 TwinE::Movements::getAngle ( int32  x1,
int32  z1,
int32  x2,
int32  z2 
)

Get actor angle

Parameters
x1Actor 1 X
z1Actor 1 Z
x2Actor 2 X
z2Actor 2 Z

◆ initRealAngleConst()

void TwinE::Movements::initRealAngleConst ( int32  start,
int32  end,
int32  duration,
ActorMoveStruct movePtr 
) const

Move actor around the scene

Parameters
startCurrent actor angle
endAngle to rotate
durationRotate speed
movePtrPointer to process movements

The documentation for this class was generated from the following file: