JianWei Lee
/
project_game
Meteor defense project
Diff: Spawn/Spawn.h
- Revision:
- 46:abb046536524
- Parent:
- 45:1a013017ae92
--- a/Spawn/Spawn.h Wed May 03 23:41:41 2017 +0000 +++ b/Spawn/Spawn.h Thu May 04 09:46:59 2017 +0000 @@ -29,7 +29,7 @@ /**Initialise Spawn * - *@brief The health and spawn rate of the spawn depends on the number of level + *@brief The health and spawn rate of the spawn depends on the number of level \n *@brief Randomise the seed to make the spawning pattern different for every level *@param w - the number of level */ @@ -37,7 +37,7 @@ /**Summon Spawn * - *@brief Spawn A and C takes turn to be summoned to prevent collision (summon spawn A this row and spawn C the next row) + *@brief Spawn A and C takes turn to be summoned to prevent collision (summon spawn A this row and spawn C the next row) \n *@brief Spawn B and DE will be summoned randomly depends solely on the spawn rate *@param Arr[][Rows] - int Array to store spawn health *@param cArr2[][Rows] - char Array to store the spawn character @@ -66,10 +66,10 @@ /**Movement of Spawn D&E * - *@brief Spawn D & E moves diagonally - *@brief Spawn D - move left & down - *@brief Spawn E - move right & down - *@brief It moves in the other direction when hit 'L' or 'R' of spawnC and walls. + *@brief Spawn D & E moves diagonally \n + *@brief Spawn D - move left & down \n + *@brief Spawn E - move right & down \n + *@brief It moves in the other direction when hit 'L' or 'R' of spawnC and walls. \n *@brief It jumps over Spawn A and Spawn B *@param Arr[][Rows] - the int Array in sync with the char Array to be scanned *@param Arr2[][Rows] - int Array to be updated @@ -80,7 +80,7 @@ /**Update spawn * - *@brief This function to update spawn from secondary array to main array after taking damage & after moving spawn + *@brief This function to update spawn from secondary array to main array after taking damage & after moving spawn \n *@brief It also prints the spawn on LCD *@param Arr[][Rows] - int Array to be updated *@param Arr2[][Rows] - the int Array in sync with the char Array to be scanned @@ -91,7 +91,7 @@ /*Delete spawn * - *@brief Spawn that has 0 health will be deleted (cleaning tool) + *@brief Spawn that has 0 health will be deleted (cleaning tool) \n *http://stackoverflow.com/questions/10289197/how-to-empty-a-2d-char-array-in-c *@param x - the x co-ordinate of the spawn (0 to 83) *@param y - the y co-ordinate of the spawn (0 to 47)