|
static bool | CheckSideCollisions (Character character, int requiredHits, RaycastType types) |
| Utility method which checks for side collissions. More...
|
|
virtual void | PostInit () |
| Init this instance. More...
|
|
virtual bool | CheckLocation (BasicAttackData attackData) |
| Is the character in the right place for the given attack. More...
|
|
virtual bool | CheckInput (BasicAttackData attackData) |
| Is the input correct for the given attack. This implmenetation is simple a key press, but another could be more complex (queueable combo attacks, or complex key combinations). More...
|
|
virtual bool | CheckAmmo (BasicAttackData attackData) |
| Checks that the player has enough ammo to fire. More...
|
|
virtual bool | CheckConditions () |
| Checks any additional conditions. More...
|
|
virtual void | ConsumeAmmo (BasicAttackData attackData) |
| Consumes ammo. More...
|
|
virtual void | StartAttack (int attackIndex) |
| Starts the given attack. More...
|
|
virtual IEnumerator | DoAttack (int attackIndex) |
| Do a melee attack. More...
|
|
virtual IEnumerator | DoAnimationSyncedAttack (int attackIndex) |
| Do a melee attack with length controlled by the animation. More...
|
|
virtual void | DoAttackStart (int attackIndex) |
| Start an attack. More...
|
|
virtual void | DoAttackEnd (int attackIndex) |
| Finish an attack. More...
|
|
virtual IEnumerator | DoProjectileAttack (int attackIndex) |
| Do a projectile attack. More...
|
|
virtual void | DoPrepare (Projectile projectile, int index) |
| Prepares a projectile ready for firing. More...
|
|
void | AssignReferences (Character character) |
| Initialise this movement and return a reference to the ready to use movement. More...
|
|
int | currentAttack |
| Index of the current attack or -1 if no current attack. More...
|
|
float | currentAttackTimer |
| The timer for the current attack. More...
|
|
ProjectileAimer | projectileAimer |
| Cached reference to a projectile aimer, or null if there is no aimer. More...
|
|
int | deferredAttackIndex |
| The index of the deferred attack. More...
|
|
ItemManager | itemManager |
| Cached reference to the item manager used for ammo. More...
|
|
float[] | cooldownTimers |
| The cooldown timers. More...
|
|
float[] | chargeTimers |
| The charge timers. More...
|
|
Projectile | preparedProjectile |
| Cached projectile ready to be fired by animation event. More...
|
|
Vector2 | preparedDirection |
| Cached direction ready to be used when projectile fired by animation event. More...
|
|
int | preparedAttackData |
| Cached attack data index ready to be used when projectile fired by animation event. More...
|
|
bool | attackAnimationStarted |
| Tracks if the state named for the current attacks animation has started playing in the animator. More...
|
|
Character | character |
| Cached reference to the character. More...
|
|
AdditionalCondition[] | conditions |
| Cached list of all additional conditions. More...
|
|
new static MovementInfo | Info [get] |
| Static movement info used by the editor. More...
|
|
virtual bool | IsAttacking [get] |
| Gets a value indicating whether this instance is attacking. More...
|
|
virtual string | ActiveAttackName [get] |
| Gets the name of the active attack or null if no attack is aactive. More...
|
|
virtual float | ActiveAttackNormalisedTime [get] |
| Gets the normalised time of the active attack or -1 if no attack is aactive. More...
|
|
Animator | AttackAnimator [get, set] |
| Animator used for calculating attack time. More...
|
|
int | AttackAnimatorLayer [get, set] |
| Layer to use for attack animations. More...
|
|
virtual AttackLocation | ActiveAttackLocation [get] |
| Gets the active attack location or ANY if no activeattack. More...
|
|
virtual bool | ActiveAttackHasHit [get] |
| Returns true if the current attacks hit box has hit an enemy. More...
|
|
virtual bool | CanHaveMultipleAttacks [get] |
| Used by the inspector to determine if a given attack can have multiple attacks defined in it. More...
|
|
virtual bool | CanUserSetAttackType [get] |
| Used by the inspector to determine if a given attack can have multiple attacks defined in it. More...
|
|
virtual float | Charge [get] |
| Gets the cahrge amount. More...
|
|
override AnimationState | AnimationState [get] |
| Gets the animation state that this movement wants to set. More...
|
|
override int | AnimationPriority [get] |
| Gets the priority of the animation state that this movement wants to set. More...
|
|
override string | OverrideState [get] |
| Gets the animation override state that this movement wants to set. More...
|
|
override bool | ShouldApplyGravity [get] |
| Gets a value indicating whether this PlatformerPro.Movement expects gravity to be applied after its movement finishes. More...
|
|
virtual Character | Character [get] |
| Sets the character for this movement. More...
|
|
virtual bool | Enabled [get, set] |
| A custom enable which base movements can use to pass on enable values. More...
|
|
virtual Movement | Implementation [get] |
| Gets the underlying implementation (if not overridden return itself). More...
|
|
virtual bool | ShouldApplyGravity [get] |
| Gets a value indicating whether this PlatformerPro.Movement expects gravity to be applied after its movement finishes. More...
|
|
virtual float | CurrentGravity [get] |
| Gets a value indicating the current gravity, only used if this movement doesn't apply the default gravity. - See also
- ShouldApplyGravity()
More...
|
|
virtual RaycastType | ShouldDoBaseCollisions [get] |
| Gets a value indicating whether this PlatformerPro.Movement expects the base collisions to be executed after its movement finishes. More...
|
|
virtual bool | ShouldDoRotations [get] |
| Gets a value indicating whether this PlatformerPro.Movement expects the rotations to be calculated and applied by the character. More...
|
|
virtual AnimationState | AnimationState [get] |
| Gets the animation state that this movement wants to set. More...
|
|
virtual string | OverrideState [get] |
| Gets the animation override state that this movement wants to set. More...
|
|
virtual int | AnimationPriority [get] |
| Gets the priority of the animation state that this movement wants to set. More...
|
|
virtual int | FacingDirection [get] |
| Returns the direction the character is facing. 0 for none, 1 for right, -1 for left. More...
|
|
virtual bool | PreventXVelocityReset [get] |
| If true then don't allow base collisions to reset velocity in X. More...
|
|
static MovementInfo | Info [get] |
| Static movement info used by the editor. More...
|
|
virtual VelocityType | VelocityType [get] |
| How does this movement use Velocity. More...
|
|
An extension to BasicAttacks which does a block.