DoopelPonger
Public Attributes | Protected Member Functions | List of all members
CoopGoodBallFirstAttack Class Reference

Pattern used by SchmittyDoop to fire bullets that will charge the player's power up meter. More...

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

Public Attributes

CoopBall goodBallPrefab
 
int maxItems
 
Range offsetRange
 
int numberOfBalls
 
float longDelay
 
float shortDelay
 
float ballVelocity
 

Protected Member Functions

override CoopActionInformation GetItem (int itemPosition)
 Called when Schmitty Doop is looking for a new action to perform. More...
 
override int GetMaxItems ()
 
override void OnReset ()
 Called when the pattern is initialized or should put itself in a state as if it has never been used. More...
 

Additional Inherited Members

- Public Member Functions inherited from CoopBaseActionPattern
void Awake ()
 Reset the state of the pattern when instantiated. More...
 
bool MoveNext ()
 
void Reset ()
 Set the state of the pattern as if it has never been used. More...
 
void Dispose ()
 
- Properties inherited from CoopBaseActionPattern
CoopActionInformation Current [get]
 

Detailed Description

Pattern used by SchmittyDoop to fire bullets that will charge the player's power up meter.

Member Function Documentation

◆ GetItem()

override CoopActionInformation CoopGoodBallFirstAttack.GetItem ( int  itemPosition)
protectedvirtual

Called when Schmitty Doop is looking for a new action to perform.

Parameters
itemPositionThe number of times Schmitty Doop has asked to an action while using this pattern.
Returns
The action SchmittyDoop should perform.

Implements CoopBaseActionPattern.

◆ GetMaxItems()

override int CoopGoodBallFirstAttack.GetMaxItems ( )
protectedvirtual
Returns
The number of actions in the pattern.

Implements CoopBaseActionPattern.

◆ OnReset()

override void CoopGoodBallFirstAttack.OnReset ( )
protectedvirtual

Called when the pattern is initialized or should put itself in a state as if it has never been used.

Implements CoopBaseActionPattern.

Member Data Documentation

◆ ballVelocity

float CoopGoodBallFirstAttack.ballVelocity

The speed of the balls coming out.

◆ goodBallPrefab

CoopBall CoopGoodBallFirstAttack.goodBallPrefab

Prefab that should be used to spawn the balls.

◆ longDelay

float CoopGoodBallFirstAttack.longDelay

The first wave shot will have a longer delay before any other waves shot.

◆ maxItems

int CoopGoodBallFirstAttack.maxItems

Maximum amount of times the good balls should be fired in the pattern.

◆ numberOfBalls

int CoopGoodBallFirstAttack.numberOfBalls

The number of balls to fire in each wave of shots.

◆ offsetRange

Range CoopGoodBallFirstAttack.offsetRange

Minimum and maximum starting rotation of the balls fired.

◆ shortDelay

float CoopGoodBallFirstAttack.shortDelay

The delay before each wave.


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