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

The CoopBallSplitter is a ball that moves for a set amount of time, once that time is met the ball will split into several other balls. More...

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

Public Attributes

float splitTimer
 
CoopBall splitObject
 
int copies
 
float splitterVelocity
 
float badBallVelocity
 
- Public Attributes inherited from CoopBall
Color particleColor
 
CoopBallMovement ballMovement
 
float verticalRatio = .8f
 
float verticalChangeRate = .5f
 
CoopBallHitParticle hitParticleSystem
 

Protected Member Functions

override void OnAwake ()
 Called when the child class should initialize any class level references. More...
 
override void OnInit ()
 Called when the child class should initialize any class level values. More...
 
- Protected Member Functions inherited from CoopBadBall
bool PlayerHit (CoopPlayer player)
 
- Protected Member Functions inherited from CoopBall
delegate bool PlayerHitAction (CoopPlayer player)
 
void DoNothing ()
 Used by the fixedUpdateAction when nothing should be done during the fixed update tick. More...
 
bool DoNothingAction (CoopPlayer player)
 Do nothng special when the ball hits the player and always destroy the ball. More...
 

Additional Inherited Members

- Public Member Functions inherited from CoopBall
void Awake ()
 
void Start ()
 
void Init ()
 
void FixedUpdate ()
 
void OnCollisionEnter2D (Collision2D collision)
 
void PlayHitParticle ()
 Force the ball to play the particle used when the ball hits a player. Used in cases where an external collision wants to destroy the ball, like hitting the player's shield. More...
 
void ReturnBallMovement ()
 Force the ball to return the movement controller to the object pooler. Used in cases where an external collision wants to destroy the ball, like hitting the player's shield. More...
 
- Protected Attributes inherited from CoopBall
CoopObjectPooler objectPooler
 
CommonDelegates.FixedUpdateAction fixedUpdateAction
 
PlayerHitAction playerHitAction
 

Detailed Description

The CoopBallSplitter is a ball that moves for a set amount of time, once that time is met the ball will split into several other balls.

Member Function Documentation

◆ OnAwake()

override void CoopBallSplitter.OnAwake ( )
protectedvirtual

Called when the child class should initialize any class level references.

Reimplemented from CoopBadBall.

◆ OnInit()

override void CoopBallSplitter.OnInit ( )
protectedvirtual

Called when the child class should initialize any class level values.

Reimplemented from CoopBadBall.

Member Data Documentation

◆ badBallVelocity

float CoopBallSplitter.badBallVelocity

The velocity of the new balls spawned at the explosion.

◆ copies

int CoopBallSplitter.copies

The number of splitObjects that should be created.

◆ splitObject

CoopBall CoopBallSplitter.splitObject

The prefab of objects that should be spawned when the ball explodes into new balls.

◆ splitterVelocity

float CoopBallSplitter.splitterVelocity

The velocity of the initial splitter ball.

◆ splitTimer

float CoopBallSplitter.splitTimer

The amount of time after the ball spawns before exploding into several new balls.


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