V-Gears 0
Free Final Fantasy VII engine.
XmlBattleScenesFile.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 The V-Gears Team
3 *
4 * This file is part of V-Gears
5 *
6 * V-Gears is free software: you can redistribute it and/or modify it under
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, version 3.0 (GPLv3) of the License.
9 *
10 * V-Gears is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#pragma once
17
18#include "XmlFile.h"
19
26
27 public:
28
33
37 int id;
38
42 std::string model;
43
47 std::string description;
48 };
49
57 explicit XmlBattleScenesFile(const Ogre::String& file);
58
62 virtual ~XmlBattleScenesFile();
63
69 std::vector<BattleScene> GetScenes();
70
71 private:
72
73 std::vector<BattleScene> list_;
74
75};
Handles battle scene list xml files.
Definition: XmlBattleScenesFile.h:25
std::vector< BattleScene > list_
Definition: XmlBattleScenesFile.h:73
XmlBattleScenesFile(const Ogre::String &file)
Constructor.
Definition: XmlBattleScenesFile.cpp:19
virtual ~XmlBattleScenesFile()
Destructor.
Definition: XmlBattleScenesFile.cpp:41
std::vector< BattleScene > GetScenes()
Retrieves the battle scene list.
Definition: XmlBattleScenesFile.cpp:43
Handles XML files.
Definition: XmlFile.h:28
Ogre::String String
Definition: TypeDefine.h:37
Information about a battle scene.
Definition: XmlBattleScenesFile.h:32
std::string model
Scene model.
Definition: XmlBattleScenesFile.h:42
std::string description
Scene description;.
Definition: XmlBattleScenesFile.h:47
int id
Scene id.
Definition: XmlBattleScenesFile.h:37