diff --git a/Project Source Files/Actions.h b/Project Source Files/Actions.h index 65b148a..06ed5fe 100644 --- a/Project Source Files/Actions.h +++ b/Project Source Files/Actions.h @@ -3,6 +3,7 @@ #include using namespace std; + void Run (supermario &man) {cout << "Run fn is called for the supermario at ( " << man.pos.x << " , " << man.pos.y << " )\n"; @@ -11,6 +12,7 @@ void Run (supermario &man) man.pos.y += 1; } + // to kill the enemy (affect the power of the enemy, and the points of the supermario ) // to kill supermario (affect the health of the supermario) void fire (supermario &man,Enemy &Enemy1,holes &h) @@ -37,16 +39,63 @@ void fire (supermario &man,Enemy &Enemy1,holes &h) } +void Jump (supermario &man, const holes &hole) { + cout<<"Jump fn is called for supermario at ("< 0) + cout << "Wow Wow Wow >>> You did a great job" << endl; + // score of points + man.points = man.points + (MushroomPoints * numMushroom); + // Show score of points + cout << "Congratulations :) score of points : " << man.points << endl; +}