ScummVM API documentation
TwinE::Movements Class Reference

Public Member Functions

 Movements (TwinEEngine *engine)
 
void setActionNormal (bool actionNormal)
 
void update ()
 
bool actionNormal () const
 
IVec3 getShadow (const IVec3 &pos)
 
void initRealAngle (int16 startAngle, int16 endAngle, int16 stepAngle, RealValue *movePtr)
 
void clearRealAngle (ActorStruct *actorPtr)
 
void initRealValue (int16 startAngle, int16 endAngle, int16 stepAngle, RealValue *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, RealValue *movePtr) const
 
void doDir (int32 actorIdx)
 

Public Attributes

bool _lastJoyFlag = false
 
int32 _targetActorDistance = 0
 

Member Function Documentation

◆ actionNormal()

bool TwinE::Movements::actionNormal ( ) 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,
RealValue 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

◆ initRealValue()

void TwinE::Movements::initRealValue ( int16  startAngle,
int16  endAngle,
int16  stepAngle,
RealValue 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,
RealValue 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: