SUPER Space invader : Turbo edition DX - VS GOD 1.0.0
A simple space invader ripoff
InvadersGrid Class Reference

#include <invadersGrid.h>

Inheritance diagram for InvadersGrid:
Collaboration diagram for InvadersGrid:

Public Member Functions

unsigned validColsNumber () const
 Helper function for randomValidCol() that returns the number of valid column (at least one invader in them) in the grid This is a separate function because we need to use it elsewhere. More...
 
unsigned randomValidCol () const
 Returns a random valid column in the grid. More...
 

Detailed Description

Definition at line 62 of file invadersGrid.h.

Member Function Documentation

◆ randomValidCol()

unsigned InvadersGrid::randomValidCol ( ) const

Returns a random valid column in the grid.

Returns
an index pointing to a column in the grid

Definition at line 58 of file invaderGrids.cpp.

Here is the call graph for this function:

◆ validColsNumber()

unsigned InvadersGrid::validColsNumber ( ) const

Helper function for randomValidCol() that returns the number of valid column (at least one invader in them) in the grid This is a separate function because we need to use it elsewhere.

Returns
The number of valid columns in the grid

Definition at line 50 of file invaderGrids.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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