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

Column of invader. More...

#include <invadersGrid.h>

Inheritance diagram for InvadersColumn:
Collaboration diagram for InvadersColumn:

Public Member Functions

bool hasNoValid () const
 tells if the column contains no non type NONE invader More...
 
unsigned getOutterInvader () const
 gives the index of the last valid (type different than NONE) invader More...
 
unsigned randomValidInv () const
 

Detailed Description

Column of invader.

Definition at line 33 of file invadersGrid.h.

Member Function Documentation

◆ getOutterInvader()

unsigned InvadersColumn::getOutterInvader ( ) const

gives the index of the last valid (type different than NONE) invader

Returns
index of the last valid invader if found, else size of the column

Definition at line 18 of file invaderGrids.cpp.

Here is the caller graph for this function:

◆ hasNoValid()

bool InvadersColumn::hasNoValid ( ) const

tells if the column contains no non type NONE invader

Returns
True if there's only type NONE invader, False elsewise

Definition at line 14 of file invaderGrids.cpp.

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

◆ randomValidInv()

unsigned InvadersColumn::randomValidInv ( ) const

Definition at line 30 of file invaderGrids.cpp.


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