DoopelPonger
Public Member Functions | Protected Member Functions | Properties | List of all members
CoopBaseActionPattern Class Referenceabstract

The parent class for a collection of actions Schmitty Doop should perform. More...

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

Public Member Functions

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 ()
 

Protected Member Functions

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

Properties

CoopActionInformation Current [get]
 

Detailed Description

The parent class for a collection of actions Schmitty Doop should perform.

A single attack or movement that Schmitty Doop does is called an action. When multiple actions are strung together then it becomes a pattern. This class is used by Schmitty Doop to be told what to do.

Member Function Documentation

◆ Awake()

void CoopBaseActionPattern.Awake ( )

Reset the state of the pattern when instantiated.

◆ Dispose()

void CoopBaseActionPattern.Dispose ( )

◆ GetItem()

abstract CoopActionInformation CoopBaseActionPattern.GetItem ( int  itemPosition)
protectedpure virtual

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.

Implemented in CoopBadSlowDownBurst, CoopShotgunAttackPattern, CoopBadSingleLinePattern, CoopBaseLaserAttackPattern, CoopGoodBallFirstAttack, CoopBallSplitterPattern, CoopSmoothMovementPattern, CoopRandomMovementPattern, and CoopArrayActionPattern.

◆ GetMaxItems()

abstract int CoopBaseActionPattern.GetMaxItems ( )
protectedpure virtual

◆ MoveNext()

bool CoopBaseActionPattern.MoveNext ( )
Returns
True if there are still actions in the pattern to perform. False if the pattern is finished.

◆ OnReset()

abstract void CoopBaseActionPattern.OnReset ( )
protectedpure virtual

◆ Reset()

void CoopBaseActionPattern.Reset ( )

Set the state of the pattern as if it has never been used.

Property Documentation

◆ Current

CoopActionInformation CoopBaseActionPattern.Current
get
Returns
The action that schmitty Doop should perform right now.

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