|
@@ -222,7 +222,7 @@ void print_info(){
|
|
|
}
|
|
|
|
|
|
|
|
|
-int choose_level(double& shootr, int& refresh_t, boss& boss1, char& level,int* commands) //returns ENEMY_NUM
|
|
|
+void choose_level(double& shootr, int& refresh_t, boss& boss1, char& level,int* commands)
|
|
|
{
|
|
|
std::string phrase;
|
|
|
phrase=choose_phrase();
|
|
@@ -297,7 +297,7 @@ int choose_level(double& shootr, int& refresh_t, boss& boss1, char& level,int* c
|
|
|
bossname=bossname+RECORD_DIR+BOSS_FILE1+".dat";
|
|
|
boss1.loadpicture(bossname.c_str());
|
|
|
ENEMY_NUM=30;
|
|
|
- return ENEMY_NUM;
|
|
|
+ break;
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
@@ -309,7 +309,7 @@ int choose_level(double& shootr, int& refresh_t, boss& boss1, char& level,int* c
|
|
|
bossname=bossname+RECORD_DIR+BOSS_FILE2+".dat";
|
|
|
boss1.loadpicture(bossname.c_str());
|
|
|
ENEMY_NUM=40;
|
|
|
- return ENEMY_NUM;
|
|
|
+ break;
|
|
|
}
|
|
|
case 3:
|
|
|
{
|
|
@@ -321,7 +321,7 @@ int choose_level(double& shootr, int& refresh_t, boss& boss1, char& level,int* c
|
|
|
bossname=bossname+RECORD_DIR+BOSS_FILE3+".dat";
|
|
|
boss1.loadpicture(bossname.c_str());
|
|
|
ENEMY_NUM=45;
|
|
|
- return ENEMY_NUM;
|
|
|
+ break;
|
|
|
}
|
|
|
case 4:
|
|
|
{
|
|
@@ -333,12 +333,9 @@ int choose_level(double& shootr, int& refresh_t, boss& boss1, char& level,int* c
|
|
|
bossname=bossname+RECORD_DIR+BOSS_FILE4+".dat";
|
|
|
boss1.loadpicture(bossname.c_str());
|
|
|
ENEMY_NUM=50;
|
|
|
- return ENEMY_NUM;
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- return 0;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
void change_commands(int* commands){
|