void IslandControl::getInitialInput()
{
    std::string inString = "";
    std::ifstream inFile;
    while(true)
    {
        inString = getString("Enter a file name: ");
        inFile.open(inString.c_str());
        if(inFile.is_open())
        {
            inFile.close();
            break;
        }
        else
        {
            std::cout << "Bad file name. Try again."  << std::endl;
        }
    }

    loadIsland(inString);
}
Exemple #2
0
void renderScene(bool miniMapOption)
{
    light.makeLight();
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);  // limpar o depth buffer

    glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();

	if(miniMapOption)
        miniMapCam.setMiniMapCam();
    else
        cam.updateCam(game_map.player);

	loadPlayer();
	loadEnemies();
	loadIsland();
    glBindTexture(type, texture);
	renderSea();

	if(!PlaySound("Sounds\\56_Rocket_Tower_Takeover.wav", NULL, SND_ASYNC|SND_FILENAME|SND_LOOP|SND_NOSTOP ))
        PlaySound("Sounds\\56_Rocket_Tower_Takeover.wav", NULL, SND_ASYNC|SND_FILENAME|SND_LOOP|SND_NOSTOP );
}
Exemple #3
0
Island::Island(Hqr *hqr) {
	_ile = hqr;
	loadIsland();
}