2017-04-18 23:04:21 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include "src/json/json.h"
|
2017-04-22 12:07:11 +00:00
|
|
|
#include "src/loaders/loaders.h"
|
2017-04-18 23:04:21 +00:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2017-04-19 05:50:34 +00:00
|
|
|
Conf configuration = Conf("config.json");
|
|
|
|
UnitHolder unitHolder = UnitHolder( configuration.get_units_path() );
|
|
|
|
Plan plan = Plan( configuration.get_plan_path() );
|
|
|
|
|
2017-04-19 06:27:54 +00:00
|
|
|
|
2017-04-19 05:50:34 +00:00
|
|
|
for ( int i = 0; i < plan.tasks.size(); ++i )
|
|
|
|
{
|
2017-04-20 02:49:39 +00:00
|
|
|
std::string current_task_name = plan.tasks[i].get_name();
|
2017-04-20 03:11:44 +00:00
|
|
|
std::cout << "Found task name in \"" << configuration.get_plan_path() << "\":\t" << current_task_name << std::endl << std::endl;
|
2017-04-20 02:49:39 +00:00
|
|
|
|
|
|
|
Unit current_unit = unitHolder.select_unit( current_task_name );
|
|
|
|
|
2017-04-20 03:11:44 +00:00
|
|
|
std::cout << "Associated Unit name:\t\t" << current_unit.get_name() << std::endl;
|
|
|
|
std::cout << "Associated Unit target:\t\t" << current_unit.get_target() << std::endl;
|
|
|
|
std::cout << "Associated Unit healer:\t\t" << current_unit.get_rectifier() << std::endl;
|
|
|
|
std::cout << "Associated Unit heals:\t\t" << current_unit.get_rectify() << std::endl << std::endl;
|
2017-04-19 05:54:34 +00:00
|
|
|
}
|
2017-04-19 05:50:34 +00:00
|
|
|
|
2017-04-18 23:04:21 +00:00
|
|
|
return 0;
|
|
|
|
}
|