H7CreatureStackFlyer¶
Class in MMH7Game · MMH7Game.H7CreatureStackFlyer
Object › Actor › H7CreatureStackBaseMover › H7CreatureStackFlyer
Using it from Lua
Constants¶
| Name | Value |
|---|---|
FLY_HEIGHT_OVER_OBSTACLE | 100.0f |
HEIGHT_TO_TIME_MULT | 0.002f |
MIN_FLY_HEIGHT | 50.0f |
Properties¶
| Name | Type | Notes |
|---|---|---|
mCurrentMoveTime | float | protected |
mEndFlyDuration | float | protected |
mFlightSpeed | float | protected |
mFlyCurve | array<FH7FlyTimePoint> | protected |
mFlyInitialLoc | Vector | protected |
mFlyTargetLoc | Vector | protected |
mLandingAnimStarted | bool | protected |
mOldTurnFlight | bool | protected |
mStartFlyDuration | float | protected |
mTotalMoveTime | float | protected |
Functions¶
| Name | Declaration |
|---|---|
GetEndFlyDuration | function float GetEndFlyDuration() |
GetStartFlyDuration | function float GetStartFlyDuration() |
H7FlyTimePointSort | delegate int H7FlyTimePointSort(FH7FlyTimePoint A, FH7FlyTimePoint B) |
Initialize | function Initialize(H7Unit Stack) |
IsMoving | function bool IsMoving() |
SetEndFlyDuration | function SetEndFlyDuration(float val) |
SetStartFlyDuration | function SetStartFlyDuration(float val) |
StartElevating | function StartElevating() |
UpdateSecPerField | protected function UpdateSecPerField() |
States¶
State code replaces the class's functions while the object is in that state. Hook a state's version as MMH7Game.H7CreatureStackFlyer.<State>.<Function>.
| State | Functions |
|---|---|
| Elevating extends FlyMovement | FieldArrive, UpdateMovement |
| FlyMovement | BeginState, UpdateMovement, UpdateRotation |
| Idle | AttackStack, CalculateFlyCurve, GetHeightDecreaseModifier, GetHeightIncreaseModifier, GetMaxPathHeight, MoveStack |
| Landing extends FlyMovement | FieldArrive, UpdateMovementignores BeginState, UpdateRotation |
| Moving extends FlyMovement | FieldArrive, UpdateMovement |
| TurnToEnemy | BeginState, FieldArrive, UpdateMovement |
| WaitingElevating |
Default values¶
Inherited¶
| From | Members |
|---|---|
| H7CreatureStackBaseMover | Properties: mCurrentCell, mCurveMaxStepsAdv, mCurveMaxStepsCombat, mDestinationCell, mLerpTargetLocation, mLerpTargetRotation, mLerpTimer, mLerpTimerRotation, mLerpToLocation, mLerpToRotation, mMoveTime, mMovingRepresentation, mMovingStack, MOVEMENT_DOTS_PER_CELL, mPassedUnits, mPath, mPlayerController, mSecPerField, mStartPos, mStartRot, mTarget Functions: AddEnemyPositionToPath, AttackStack, ClearPath, DotIndexToCellIndex, GetCellLocation, GetCellOfTarget, GetOptimalTargetRotation, GetSecondsPerField, GetSmoothAdventurePath, GetSmoothCombatPath, GetSmoothPath, GetTargetRotation, Initialize, IsMoving, LerpToLocation, LerpToRotation, MoveStack, OnAttackStackFinishedFunc, OpenGateOnTargetPos, RestorePassedUnits, RotateStack, SetLerpToLocation, SetLerpToRotation, UpdateMovement, UpdateRotation |
| Actor | 156 properties, 262 functions |
| Object | 13 properties, 308 functions |