DoopelPonger
Public Types | Public Member Functions | Public Attributes | List of all members
CoopBallManager Class Reference

A class full of helper methods for spawning balls from Schmitty Doop. More...

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

Public Types

enum  SpawnLocation { SpawnLocation.EARS, SpawnLocation.MOUTH }
 The starting position of the balls being spawned. More...
 

Public Member Functions

delegate void BallMovementInitialize< T > (T ballMovement)
 
delegate void BallMovementInitialize (CoopBallMovement ballMovement)
 
void Awake ()
 Initialize the references needed by the CoopBallManager. More...
 
void ShootLaser (CoopLaserAttack laserPrefab, CoopLaserAttackInformation attackInformation, Transform parent)
 Spawns two lasers out of Schmitty Doop's ears at the same time. More...
 
void SpawnBallSplitter (CoopBallSplitterAttackInformation attackInformation)
 Creates a splitter ball based on the information passed in. More...
 
void SpawnBalls (CoopShotgunAttackInformation attackInformation)
 Spawn a fan of bullets from Schmitty Doop. More...
 
void SpawnBalls (CoopBall ballPrefab, CoopBallAttackInformation attackInformation)
 Spawn bullets to be fired by Schmitty Doop. More...
 

Public Attributes

Transform mouthTransform
 
Transform rightEarTransform
 
Transform leftEarTransform
 

Detailed Description

A class full of helper methods for spawning balls from Schmitty Doop.

Member Enumeration Documentation

◆ SpawnLocation

The starting position of the balls being spawned.

Enumerator
EARS 
MOUTH 

Member Function Documentation

◆ Awake()

void CoopBallManager.Awake ( )

Initialize the references needed by the CoopBallManager.

◆ BallMovementInitialize()

delegate void CoopBallManager.BallMovementInitialize ( CoopBallMovement  ballMovement)

◆ BallMovementInitialize< T >()

delegate void CoopBallManager.BallMovementInitialize< T > ( ballMovement)
Type Constraints
T :CoopBallMovement 

◆ ShootLaser()

void CoopBallManager.ShootLaser ( CoopLaserAttack  laserPrefab,
CoopLaserAttackInformation  attackInformation,
Transform  parent 
)

Spawns two lasers out of Schmitty Doop's ears at the same time.

Parameters
laserPrefabThe copy of laserPrefab that should be used to create the laser objects.
attackInformationConfigurable data about the laser, like length, speed, etc.
parentThe new spawned lasers will be children of the parent object.

◆ SpawnBalls() [1/2]

void CoopBallManager.SpawnBalls ( CoopShotgunAttackInformation  attackInformation)

Spawn a fan of bullets from Schmitty Doop.

Parameters
attackInformationData about the fan of bullets that should be spawned, like speed, number of balls, etc.

◆ SpawnBalls() [2/2]

void CoopBallManager.SpawnBalls ( CoopBall  ballPrefab,
CoopBallAttackInformation  attackInformation 
)

Spawn bullets to be fired by Schmitty Doop.

Parameters
ballPrefabThe copy of ballPrefab that should be used to create the ball objects.
attackInformationData about the bullets that should be created, like speed, number of balls, movement type, etc.

◆ SpawnBallSplitter()

void CoopBallManager.SpawnBallSplitter ( CoopBallSplitterAttackInformation  attackInformation)

Creates a splitter ball based on the information passed in.

Parameters
attackInformationData about the ball to spawn, like speed, number of balls to split into, etc.

Member Data Documentation

◆ leftEarTransform

Transform CoopBallManager.leftEarTransform

The location of the left ear that the balls will spawn from.

◆ mouthTransform

Transform CoopBallManager.mouthTransform

The location of the mouth that the balls will spawn from.

◆ rightEarTransform

Transform CoopBallManager.rightEarTransform

The location of the right ear that the balls will spawn from.


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