V-Gears 0
Free Final Fantasy VII engine.
XmlBattleCharactersFile.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 std::string model;
38
42 std::string name;
43 };
44
49
53 int id;
54
58 std::vector<BattleCharacterModel> models;
59 };
60
68 explicit XmlBattleCharactersFile(const Ogre::String& file);
69
74
80 std::vector<BattleCharacter> GetCharacters();
81
82 private:
83
84 std::vector<BattleCharacter> list_;
85
86};
Handles battle character model list xml files.
Definition: XmlBattleCharactersFile.h:25
virtual ~XmlBattleCharactersFile()
Destructor.
Definition: XmlBattleCharactersFile.cpp:53
std::vector< BattleCharacter > GetCharacters()
Retrieves the battle character list.
Definition: XmlBattleCharactersFile.cpp:55
XmlBattleCharactersFile(const Ogre::String &file)
Constructor.
Definition: XmlBattleCharactersFile.cpp:19
std::vector< BattleCharacter > list_
Definition: XmlBattleCharactersFile.h:84
Handles XML files.
Definition: XmlFile.h:28
Ogre::String String
Definition: TypeDefine.h:37
Information about each character model.
Definition: XmlBattleCharactersFile.h:32
std::string model
Model file.
Definition: XmlBattleCharactersFile.h:37
std::string name
Descriptive name of the model.
Definition: XmlBattleCharactersFile.h:42
Relation of character and it's models.
Definition: XmlBattleCharactersFile.h:48
int id
Character id.
Definition: XmlBattleCharactersFile.h:53
std::vector< BattleCharacterModel > models
Character models.
Definition: XmlBattleCharactersFile.h:58