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

Pattern to fire a fan of bullets out of Schmitty Doop's ears. More...

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

Public Attributes

CoopBall ballPrefab
 
CoopBall goodBallPrefab
 
Range probabilityOfGoodBallRange
 
Range numberOfBallsRange
 
Range numberOfGoodBallsRange
 
Range waitTimeRange
 
Range velocityRange
 
Range maxItemsRange
 

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 ()
 Select the values to use from the ranges in the set of attacks. 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 to fire a fan of bullets out of Schmitty Doop's ears.

The idea was to have a chance for some of the bullets to be good balls to force the player to move in specific positions. However, Schmitty Doop shooting good balls isn't actually done in the final game.

Member Function Documentation

◆ GetItem()

override CoopActionInformation CoopShotgunAttackPattern.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 CoopShotgunAttackPattern.GetMaxItems ( )
protectedvirtual
Returns
The number of actions in the pattern.

Implements CoopBaseActionPattern.

◆ OnReset()

override void CoopShotgunAttackPattern.OnReset ( )
protectedvirtual

Select the values to use from the ranges in the set of attacks.

Implements CoopBaseActionPattern.

Member Data Documentation

◆ ballPrefab

CoopBall CoopShotgunAttackPattern.ballPrefab

The bad ball prefab that should be used.

◆ goodBallPrefab

CoopBall CoopShotgunAttackPattern.goodBallPrefab

The good ball prefab that should be used.

◆ maxItemsRange

Range CoopShotgunAttackPattern.maxItemsRange

Minimum and maximum number of waves in the pattern.

◆ numberOfBallsRange

Range CoopShotgunAttackPattern.numberOfBallsRange

Minimum and maximum number of total balls to shoot.

◆ numberOfGoodBallsRange

Range CoopShotgunAttackPattern.numberOfGoodBallsRange

Minimum and maximum number of good balls to shoot.

◆ probabilityOfGoodBallRange

Range CoopShotgunAttackPattern.probabilityOfGoodBallRange

Minimum and maximum probability of spawning a good ball.

◆ velocityRange

Range CoopShotgunAttackPattern.velocityRange

Minimum and maximum speed the balls should travel.

◆ waitTimeRange

Range CoopShotgunAttackPattern.waitTimeRange

Minimum and maximum time between shotgun waves.


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