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

Movement pattern class that uses smooth step to translate Schmitty Doop in the game world. More...

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

Public Attributes

int maxItems
 
float delayBetweenActions
 
float maxRotationTime
 
float rotationOffset
 
Vector3 movementOffset
 
float maxMovementTime
 

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

Movement pattern class that uses smooth step to translate Schmitty Doop in the game world.

Member Function Documentation

◆ GetItem()

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

Implements CoopBaseActionPattern.

◆ OnReset()

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

◆ delayBetweenActions

float CoopSmoothMovementPattern.delayBetweenActions

The wait time between movements.

◆ maxItems

int CoopSmoothMovementPattern.maxItems

The number of time Schmitty Doop should move.

◆ maxMovementTime

float CoopSmoothMovementPattern.maxMovementTime

The amount of time it should take Schmitty Doop to move.

◆ maxRotationTime

float CoopSmoothMovementPattern.maxRotationTime

The amount of time it should take to rotate Schmitty Doop.

◆ movementOffset

Vector3 CoopSmoothMovementPattern.movementOffset

The additive position Schmitty Doop should be at after the action is finished.

◆ rotationOffset

float CoopSmoothMovementPattern.rotationOffset

The additive rotation Schmitty Doop should be at after the action is finished.


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