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

Pattern to move SchmittyDoop randomly on the screen. I don't think this is actually used anywhere, but was originally used for testing. More...

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

Public Attributes

float delayBetweenActions
 
int maxItems
 
float alphaChangeRate = 6f
 
Range positionRange
 
Range rotationRange
 

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 to move SchmittyDoop randomly on the screen. I don't think this is actually used anywhere, but was originally used for testing.

Member Function Documentation

◆ GetItem()

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

Implements CoopBaseActionPattern.

◆ OnReset()

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

◆ alphaChangeRate

float CoopRandomMovementPattern.alphaChangeRate = 6f

How fast Schmitty Doop should become visible/invisible.

◆ delayBetweenActions

float CoopRandomMovementPattern.delayBetweenActions

The delay between actions in the pattern.

◆ maxItems

int CoopRandomMovementPattern.maxItems

The numbers of actions in the pattern.

◆ positionRange

Range CoopRandomMovementPattern.positionRange

The random range Schmitty Doop should move.

◆ rotationRange

Range CoopRandomMovementPattern.rotationRange

The random range Schmitty Doop should rotate.


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