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

Pattern that shoots balls that will then split into other balls. More...

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

Public Attributes

CoopBallSplitter splitterPrefab
 
float splitterVelocity
 
float badBallVelocity
 
float delay
 
int numberOfItems
 
int numberOfSplitters
 
int numberOfBadBalls
 

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 that shoots balls that will then split into other balls.

Member Function Documentation

◆ GetItem()

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

Implements CoopBaseActionPattern.

◆ OnReset()

override void CoopBallSplitterPattern.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

◆ badBallVelocity

float CoopBallSplitterPattern.badBallVelocity

The speed of the balls once the splitter breaks apart.

◆ delay

float CoopBallSplitterPattern.delay

The amount of time to wait before the next attack.

◆ numberOfBadBalls

int CoopBallSplitterPattern.numberOfBadBalls

The number of balls the splitter should split into.

◆ numberOfItems

int CoopBallSplitterPattern.numberOfItems

The number of waves in the pattern

◆ numberOfSplitters

int CoopBallSplitterPattern.numberOfSplitters

The number of splitters to shoot per wave.

◆ splitterPrefab

CoopBallSplitter CoopBallSplitterPattern.splitterPrefab

The ball splitter prefab that should be used to spawn bullets.

◆ splitterVelocity

float CoopBallSplitterPattern.splitterVelocity

The speed the initial splitter should travel.


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