DoopelPonger
Public Member Functions | List of all members
CoopPlayerAnimatorDelegate Class Referenceabstract

Parent class of all animations for the player. All implementations of this class will have the methods triggerd by CoopPlayerAnimatorController. More...

Inheritance diagram for CoopPlayerAnimatorDelegate:
Inheritance graph
[legend]
Collaboration diagram for CoopPlayerAnimatorDelegate:
Collaboration graph
[legend]

Public Member Functions

abstract void Init (Animator playerAnimator)
 Initialize the animator. More...
 
abstract void PowerUpChargeChange (float percentCharge, bool prematureActivation)
 The amount of charge the player has has changed. More...
 
abstract void PlayerBadBallHit ()
 The player has been hit with a bad ball. More...
 
abstract void PlayerGoodBallHit ()
 The player has been hit with a good ball. More...
 
abstract void PowerUpActivated ()
 The player has activated a power up. More...
 
abstract void PowerUpDeactivated ()
 The player has had their power up run out. More...
 

Detailed Description

Parent class of all animations for the player. All implementations of this class will have the methods triggerd by CoopPlayerAnimatorController.

Member Function Documentation

◆ Init()

abstract void CoopPlayerAnimatorDelegate.Init ( Animator  playerAnimator)
pure virtual

Initialize the animator.

Parameters
playerAnimatorThe Unity animator component on the CoopPlayer gameObject.

Implemented in CoopPlayerScaleAnimatorDelegate, CoopPlayerLightAnimatorDelegate, and CoopPlayerColorAnimatorDelegate.

◆ PlayerBadBallHit()

abstract void CoopPlayerAnimatorDelegate.PlayerBadBallHit ( )
pure virtual

The player has been hit with a bad ball.

Implemented in CoopPlayerScaleAnimatorDelegate, CoopPlayerLightAnimatorDelegate, and CoopPlayerColorAnimatorDelegate.

◆ PlayerGoodBallHit()

abstract void CoopPlayerAnimatorDelegate.PlayerGoodBallHit ( )
pure virtual

The player has been hit with a good ball.

Implemented in CoopPlayerScaleAnimatorDelegate, CoopPlayerLightAnimatorDelegate, and CoopPlayerColorAnimatorDelegate.

◆ PowerUpActivated()

abstract void CoopPlayerAnimatorDelegate.PowerUpActivated ( )
pure virtual

The player has activated a power up.

Implemented in CoopPlayerScaleAnimatorDelegate, CoopPlayerLightAnimatorDelegate, and CoopPlayerColorAnimatorDelegate.

◆ PowerUpChargeChange()

abstract void CoopPlayerAnimatorDelegate.PowerUpChargeChange ( float  percentCharge,
bool  prematureActivation 
)
pure virtual

The amount of charge the player has has changed.

Parameters
chargePercentThe amount of charge the player has from 0 to 1
prematureActivationMeans that the player tried to use their power up before actually having a full charge.

Implemented in CoopPlayerScaleAnimatorDelegate, CoopPlayerLightAnimatorDelegate, and CoopPlayerColorAnimatorDelegate.

◆ PowerUpDeactivated()

abstract void CoopPlayerAnimatorDelegate.PowerUpDeactivated ( )
pure virtual

The player has had their power up run out.

Implemented in CoopPlayerScaleAnimatorDelegate, CoopPlayerLightAnimatorDelegate, and CoopPlayerColorAnimatorDelegate.


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