aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/testing/TestScript.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-11-22 23:11:42 +0100
committer GitHub <noreply@github.com>2023-11-22 23:11:42 +0100
commita54898b7770e0d66b729216173960686c67e58bb (patch)
treeaf8ed836a4789ef94c5bfed27abb713922f45af3 /src/openvic-simulation/testing/TestScript.hpp
parente76336cd92639f4ec71088fc4c80aea4c25528cd (diff)
parent738a203e0d8b4df87c42888043b99c13d5d97511 (diff)
Merge pull request #78 from OpenVicProject/property-macro
Refactoring (*mostly* related to the property macro)
Diffstat (limited to 'src/openvic-simulation/testing/TestScript.hpp')
-rw-r--r--src/openvic-simulation/testing/TestScript.hpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/openvic-simulation/testing/TestScript.hpp b/src/openvic-simulation/testing/TestScript.hpp
index bfc2e95..b41246e 100644
--- a/src/openvic-simulation/testing/TestScript.hpp
+++ b/src/openvic-simulation/testing/TestScript.hpp
@@ -9,8 +9,8 @@ namespace OpenVic {
class TestScript {
std::vector<Requirement*> requirements = std::vector<Requirement*>();
- GameManager* game_manager;
- std::string script_name;
+ GameManager* PROPERTY_RW(game_manager);
+ std::string PROPERTY_RW(script_name);
public:
// expects an overriden method that performs arbitrary code execution
@@ -26,14 +26,10 @@ namespace OpenVic {
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_game_manager(GameManager* in_game_manager);
- void set_script_name(std::string in_script_name);
// Methods
void pass_or_fail_req_with_actual_and_target_values(