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

Action to fire a cluster of bullets one after the other. More...

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

Public Attributes

CoopBall badBallPrefab
 
Range maxBulletsRange
 
Range angleOffsetChangeRange
 
Range angleOffsetRange
 
Range delayRange
 
Range ballVelocityRange
 
int numberOfBalls
 

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 ()
 Determine the angle offset, angle change rate, velocity, and delay rate based on the input ranges. 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

Action to fire a cluster of bullets one after the other.

The public variables take a range of configuration values, but once the action has been reset, the values are chosen from the range to be used while launching the bullets.

Member Function Documentation

◆ GetItem()

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

Implements CoopBaseActionPattern.

◆ OnReset()

override void CoopBadSingleLinePattern.OnReset ( )
protectedvirtual

Determine the angle offset, angle change rate, velocity, and delay rate based on the input ranges.

Implements CoopBaseActionPattern.

Member Data Documentation

◆ angleOffsetChangeRange

Range CoopBadSingleLinePattern.angleOffsetChangeRange

The minimum and maximum amount of angle change between the bullets fired.

◆ angleOffsetRange

Range CoopBadSingleLinePattern.angleOffsetRange

The minimum and maximum angle the first bullet should be fired at.

◆ badBallPrefab

CoopBall CoopBadSingleLinePattern.badBallPrefab

The prefab of the bullet that should be fired.

◆ ballVelocityRange

Range CoopBadSingleLinePattern.ballVelocityRange

The minimum and maximum speed for the bullets spawned.

◆ delayRange

Range CoopBadSingleLinePattern.delayRange

The minimum and maximum amount of wait time between bullets being fired.

◆ maxBulletsRange

Range CoopBadSingleLinePattern.maxBulletsRange

The minimum and maximum amount of bullets to choose from.

◆ numberOfBalls

int CoopBadSingleLinePattern.numberOfBalls

The number of balls to fire.


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