#include <BattleSceneFile.h>
◆ BattleSceneFile()
BattleSceneFile::BattleSceneFile |
( |
const unsigned int |
id, |
|
|
File |
file |
|
) |
| |
Constructor.
Reads data from a file.
- Parameters
-
[in] | id | ID of the file, the position at which it is found. |
[in] | file | File to read from. |
◆ ~BattleSceneFile()
BattleSceneFile::~BattleSceneFile |
( |
| ) |
|
◆ GetAttacks()
std::vector< Attack > BattleSceneFile::GetAttacks |
( |
| ) |
|
Retrieves the attacks found in the scene.
- Returns
- The list of attacks.
◆ GetEnemies()
std::vector< Enemy > BattleSceneFile::GetEnemies |
( |
| ) |
|
Retrieves the enemies found in the scene.
- Returns
- The list of enemies.
◆ GetFormations()
std::vector< Formation > BattleSceneFile::GetFormations |
( |
| ) |
|
Retrieves the formations found in the scene.
- Returns
- The list of formations.
◆ LocationToString()
std::string BattleSceneFile::LocationToString |
( |
const int |
id | ) |
|
|
staticprivate |
Retrieves a location name from it's ID.
- Parameters
-
- Returns
- The location name, or "UNKNOWN Location" if the ID is invalid.
◆ Read()
void BattleSceneFile::Read |
( |
File |
file | ) |
|
|
private |
Reads data from a file.
- Parameters
-
[in] | file | File to read from. |
◆ attacks_
std::vector<Attack> BattleSceneFile::attacks_ |
|
private |
Attacks found in the scene.
◆ enemies_
std::vector<Enemy> BattleSceneFile::enemies_ |
|
private |
Enemies found in the scene.
◆ formations_
std::vector<Formation> BattleSceneFile::formations_ |
|
private |
Formations found in the scene.
◆ id_
unsigned int BattleSceneFile::id_ |
|
private |
◆ scene_
Scene BattleSceneFile::scene_ |
|
private |
The documentation for this class was generated from the following files: