A special movement which provides a more robust (but slightly more performance expensive) alternative to the JumpOnHeadHitBox.
More...
A special movement which provides a more robust (but slightly more performance expensive) alternative to the JumpOnHeadHitBox.
◆ CheckCollisions()
Checks the given collisions type for enemies.
- Returns
- Returns an IHurtable if found, or null if not found.
◆ CheckForJumpOnHead()
virtual bool PlatformerPro.SpecialMovement_JumpOnHead.CheckForJumpOnHead |
( |
| ) |
|
|
protectedvirtual |
Checks for jumping on head.
- Returns
true
, if character is jumping on an enmies head.
◆ CheckForKick()
virtual bool PlatformerPro.SpecialMovement_JumpOnHead.CheckForKick |
( |
| ) |
|
|
protectedvirtual |
Checks for jumping on kicking.
- Returns
true
, if character is kicking an enemy.
◆ DoMove()
override void PlatformerPro.SpecialMovement_JumpOnHead.DoMove |
( |
| ) |
|
◆ Init()
Initialise the movement with the given movement data.
- Parameters
-
◆ WantsSpecialMove()
override bool PlatformerPro.SpecialMovement_JumpOnHead.WantsSpecialMove |
( |
| ) |
|
|
virtual |
Gets a value indicating whether this movement wants to do a special move.
true
if this instance wants control; otherwise, false
.
Reimplemented from PlatformerPro.SpecialMovement.
◆ bobbleHeight
float PlatformerPro.SpecialMovement_JumpOnHead.bobbleHeight |
The height of the bobble.
◆ BobbleHeightIndex
const int PlatformerPro.SpecialMovement_JumpOnHead.BobbleHeightIndex = 1 |
|
staticprotected |
The index of the bobble height in movement data.
◆ damageAmount
int PlatformerPro.SpecialMovement_JumpOnHead.damageAmount |
The amount of damage a jump on head does.
◆ DamageAmountIndex
const int PlatformerPro.SpecialMovement_JumpOnHead.DamageAmountIndex = 0 |
|
staticprotected |
The index of the damage amount in movement data.
◆ damageInfo
DamageInfo PlatformerPro.SpecialMovement_JumpOnHead.damageInfo |
|
protected |
◆ enemyHurtBox
IHurtable PlatformerPro.SpecialMovement_JumpOnHead.enemyHurtBox |
|
protected |
Cached reference to enemy hurt box.
◆ enemyLayerMask
LayerMask PlatformerPro.SpecialMovement_JumpOnHead.enemyLayerMask |
The layers to check for enemies.
◆ EnemyLayermaskIndex
const int PlatformerPro.SpecialMovement_JumpOnHead.EnemyLayermaskIndex = 3 |
|
staticprotected |
The index of the enemy layer mask in the movement data.
◆ kickAnimationTimer
float PlatformerPro.SpecialMovement_JumpOnHead.kickAnimationTimer |
|
protected |
Timer to control how long we play the kicked animation for;
◆ kickHidingEnemies
bool PlatformerPro.SpecialMovement_JumpOnHead.kickHidingEnemies |
If true enemies in the hiding state will be 'kicked' even if the character isn't jumping.
◆ KickHidingEnemiesIndex
const int PlatformerPro.SpecialMovement_JumpOnHead.KickHidingEnemiesIndex = 2 |
|
staticprotected |
The index of kick hiding enemies in movement data.
◆ MovementVariableCount
const int PlatformerPro.SpecialMovement_JumpOnHead.MovementVariableCount = 4 |
|
staticprotected |
The size of the movement variable array.
◆ waitingToJump
bool PlatformerPro.SpecialMovement_JumpOnHead.waitingToJump |
|
protected |
Did we just jump on an an enemy.
◆ waitingToKick
bool PlatformerPro.SpecialMovement_JumpOnHead.waitingToKick |
|
protected |
Did we just kick an enemy.
◆ AnimationState
override AnimationState PlatformerPro.SpecialMovement_JumpOnHead.AnimationState |
|
get |
Gets the animation state that this movement wants to set.
◆ Info
new static MovementInfo PlatformerPro.SpecialMovement_JumpOnHead.Info |
|
staticget |
Static movement info used by the editor.
The documentation for this class was generated from the following file: