2019-06-13 03:20:28 +01:00
|
|
|
#ifndef GUARD_WILDMONINFO_H
|
|
|
|
#define GUARD_WILDMONINFO_H
|
|
|
|
|
|
|
|
#include <QtWidgets>
|
|
|
|
|
|
|
|
struct WildPokemon {
|
|
|
|
int minLevel;
|
|
|
|
int maxLevel;
|
|
|
|
QString species;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WildMonInfo {
|
|
|
|
//
|
|
|
|
bool active = false;
|
|
|
|
int encounterRate;
|
|
|
|
QVector<WildPokemon> wildPokemon;
|
|
|
|
};
|
|
|
|
|
2019-06-13 17:14:49 +01:00
|
|
|
// for extensibility, make a QVector<WildMonInfo>
|
|
|
|
// or QMap<QString, WildMonInfo>
|
2019-06-13 03:20:28 +01:00
|
|
|
struct WildPokemonHeader {
|
2019-06-13 17:14:49 +01:00
|
|
|
QMap<QString, WildMonInfo> wildMons;
|
2019-06-13 03:20:28 +01:00
|
|
|
};
|
|
|
|
|
2019-06-25 18:52:00 +01:00
|
|
|
typedef QVector<QPair<QString, QVector<int>>> Fields;
|
|
|
|
typedef QPair<QString, QVector<int>> Field;
|
|
|
|
|
|
|
|
//class Project;
|
|
|
|
//class MonTabWidget;
|
|
|
|
//QWidget *newSpeciesTableEntry(Project *project, WildPokemon mon, int index);
|
|
|
|
//void createSpeciesTableRow(Project *, QTableWidget *, WildPokemon, int, QString);
|
2019-06-13 03:20:28 +01:00
|
|
|
void clearTabWidget(QLayout *tab);
|
2019-06-25 18:52:00 +01:00
|
|
|
//void clearTable(QTableWidget *table);
|
|
|
|
//void populateWildMonTabWidget(MonTabWidget *tabWidget, Fields /* QVector<QPair<QString, QVector<int>>> */ fields);
|
|
|
|
|
|
|
|
WildMonInfo getDefaultMonInfo(Field field);
|
2019-06-13 03:20:28 +01:00
|
|
|
|
|
|
|
#endif // GUARD_WILDMONINFO_H
|