diff options
Diffstat (limited to 'src/openvic-simulation/testing/TestScript.hpp')
-rw-r--r-- | src/openvic-simulation/testing/TestScript.hpp | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/openvic-simulation/testing/TestScript.hpp b/src/openvic-simulation/testing/TestScript.hpp index c41767b..874e083 100644 --- a/src/openvic-simulation/testing/TestScript.hpp +++ b/src/openvic-simulation/testing/TestScript.hpp @@ -1,12 +1,15 @@ #pragma once #include <testing/Requirement.hpp> #include <vector> +#include <GameManager.hpp> namespace OpenVic { class TestScript { - std::vector<Requirement> requirements = std::vector<Requirement>(); + std::vector<Requirement*> requirements = std::vector<Requirement*>(); + GameManager* game_manager; + std::string script_name; public: @@ -17,14 +20,19 @@ namespace OpenVic { virtual void execute_script() = 0; // Getters - std::vector<Requirement> get_requirements(); - Requirement get_requirement_at_index(int index); - Requirement get_requirement_by_id(std::string id); - std::vector<Requirement> get_passed_requirements(); - std::vector<Requirement> get_failed_requirements(); + std::vector<Requirement*> get_requirements(); + Requirement* get_requirement_at_index(int index); + Requirement* get_requirement_by_id(std::string id); + std::vector<Requirement*> get_passed_requirements(); + std::vector<Requirement*> get_failed_requirements(); + std::vector<Requirement*> get_untested_requirements(); + GameManager* get_game_manager(); + std::string get_script_name(); // Setters - void set_requirements(std::vector<Requirement> in_requirements); - void add_requirement(Requirement req); + void set_requirements(std::vector<Requirement*> in_requirements); + void add_requirement(Requirement* req); + void set_game_manager(GameManager* in_game_manager); + void set_script_name(std::string in_script_name); }; } |