Created
February 20, 2013 20:48
-
-
Save MarianoGnu/4999477 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////// | |
// This file is part of EasyRPG Player. | |
// | |
// EasyRPG Player is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
// EasyRPG Player is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
// GNU General Public License for more details. | |
// | |
// You should have received a copy of the GNU General Public License | |
// along with EasyRPG Player. If not, see <http://www.gnu.org/licenses/>. | |
///////////////////////////////////////////////////////////////////////////// | |
//////////////////////////////////////////////////////////// | |
// Headers | |
//////////////////////////////////////////////////////////// | |
#include "scene_battle.h" | |
#include "scene_battle2k.h" | |
#include "scene_battle2k3.h" | |
#include "player.h" | |
//////////////////////////////////////////////////////////// | |
Scene_Battle::Scene_Battle() { | |
Scene::type = Scene::Null; | |
} | |
//////////////////////////////////////////////////////////// | |
Scene_Battle::~Scene_Battle() { | |
} | |
void Scene_Battle::Start() { | |
Push(create_battle_scene(), true); | |
} | |
void Scene_Battle::Update() { | |
Pop(); | |
} | |
typedef EASYRPG_SHARED_PTR<Scene> SceneRef; | |
SceneRef Scene_Battle::create_battle_scene() { | |
/*return (Player::engine == Player::EngineRpg2k) | |
? EASYRPG_MAKE_SHARED<Scene_Battle2k>() | |
: EASYRPG_MAKE_SHARED<Scene_Battle2k3>(); | |
droped because an error (help me takecheze) */ | |
if (Player::engine == Player::EngineRpg2k) | |
return EASYRPG_MAKE_SHARED<Scene_Battle2k>(); | |
else | |
return EASYRPG_MAKE_SHARED<Scene_Battle2k3>(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////// | |
// This file is part of EasyRPG Player. | |
// | |
// EasyRPG Player is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
// EasyRPG Player is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
// GNU General Public License for more details. | |
// | |
// You should have received a copy of the GNU General Public License | |
// along with EasyRPG Player. If not, see <http://www.gnu.org/licenses/>. | |
///////////////////////////////////////////////////////////////////////////// | |
#ifndef _Scene_Battle_H_ | |
#define _Scene_Battle_H_ | |
//////////////////////////////////////////////////////////// | |
// Headers | |
//////////////////////////////////////////////////////////// | |
#include "scene.h" | |
//////////////////////////////////////////////////////////// | |
/// Scene_Battle class. | |
/// Manages the battle Scene selection | |
//////////////////////////////////////////////////////////// | |
class Scene_Battle : public Scene { | |
public: | |
Scene_Battle(); | |
~Scene_Battle(); | |
void Start(); | |
void Update(); | |
private: | |
typedef EASYRPG_SHARED_PTR<Scene> SceneRef; | |
SceneRef create_battle_scene(); | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
class scope end needs ";" like "};"