DoopelPonger
Public Member Functions | List of all members
CoopSchmittyDoopIncrementalMovement Class Referenceabstract

Parent class used by Schmitty Doop to move it when the action is of movement type. More...

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

Public Member Functions

abstract void Init (Vector3 currentPosition, float currentRotation)
 Initialize the movement object based on Schmitty Doop's current position and rotation. More...
 
abstract Vector3 GetNewPosition (Vector3 currentPosition, float deltaTime)
 Get the new position Schmitty Doop should be at. More...
 
abstract float GetNewRotation (float currentRotation, float deltaTime)
 Get the new rotation Schmitty Doop should be at. More...
 
abstract bool IsFinished ()
 

Detailed Description

Parent class used by Schmitty Doop to move it when the action is of movement type.

Member Function Documentation

◆ GetNewPosition()

abstract Vector3 CoopSchmittyDoopIncrementalMovement.GetNewPosition ( Vector3  currentPosition,
float  deltaTime 
)
pure virtual

Get the new position Schmitty Doop should be at.

Parameters
currentPositionThe position Schmitty Doop is at.
deltaTimeTime time since this method was last called.
Returns
The new position Schmitty Should be at.

Implemented in CoopSchmittyDoopLinearMovement, and CoopSchmittyDoopSmoothMovement.

◆ GetNewRotation()

abstract float CoopSchmittyDoopIncrementalMovement.GetNewRotation ( float  currentRotation,
float  deltaTime 
)
pure virtual

Get the new rotation Schmitty Doop should be at.

Parameters
currentRotationThe rotation Schmitty Doop is at.
deltaTimeTime time since this method was last called.
Returns
The new rotation Schmitty Should be at.

Implemented in CoopSchmittyDoopLinearMovement, and CoopSchmittyDoopSmoothMovement.

◆ Init()

abstract void CoopSchmittyDoopIncrementalMovement.Init ( Vector3  currentPosition,
float  currentRotation 
)
pure virtual

Initialize the movement object based on Schmitty Doop's current position and rotation.

Parameters
currentPositionCurrent position of Schmitty Doop
currentRotationCurrent rotation of Schmitty Doop

Implemented in CoopSchmittyDoopLinearMovement, and CoopSchmittyDoopSmoothMovement.

◆ IsFinished()

abstract bool CoopSchmittyDoopIncrementalMovement.IsFinished ( )
pure virtual
Returns
Return true if all movements from this class is finished and Schmitty Doop should move on to the next action.

Implemented in CoopSchmittyDoopLinearMovement, and CoopSchmittyDoopSmoothMovement.


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