diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_AAA.cpp b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_AAA.cpp index bba660a..7a7effb 100644 --- a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_AAA.cpp +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_AAA.cpp @@ -8,6 +8,6 @@ void UCOMBO_AAA::Init() ActionCost = 1.0f; ActionName = "AAA"; PreConditions.Add("AzosResource", 3); - Effects.Add("PlayerHealth", 15); + Effects.Add("PlayerHealth", 20); Effects.Add("AzosResource", 3); } \ No newline at end of file diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_E.cpp b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_E.cpp new file mode 100644 index 0000000..900a1ba --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_E.cpp @@ -0,0 +1,13 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "COMBO_E.h" + +void UCOMBO_E::Init() +{ + ActionCost = 3.0f; + ActionName = "E"; + PreConditions.Add("EisResource", 1); + Effects.Add("PlayerHealth", 5); + Effects.Add("EisResource", 1); +} \ No newline at end of file diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_E.h b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_E.h new file mode 100644 index 0000000..ee9182e --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_E.h @@ -0,0 +1,19 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "../GOAPAction.h" +#include "COMBO_E.generated.h" + +/** + * + */ +UCLASS() +class COMP250_1_2101327_AI_API UCOMBO_E : public UGOAPAction +{ + GENERATED_BODY() + +public: + virtual void Init() override; +}; diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EE.cpp b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EE.cpp new file mode 100644 index 0000000..4f02667 --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EE.cpp @@ -0,0 +1,13 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "COMBO_EE.h" + +void UCOMBO_EE::Init() +{ + ActionCost = 2.0f; + ActionName = "EE"; + PreConditions.Add("EisResource", 2); + Effects.Add("PlayerHealth", 10); + Effects.Add("EisResource", 2); +} \ No newline at end of file diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EE.h b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EE.h new file mode 100644 index 0000000..3576966 --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EE.h @@ -0,0 +1,19 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "../GOAPAction.h" +#include "COMBO_EE.generated.h" + +/** + * + */ +UCLASS() +class COMP250_1_2101327_AI_API UCOMBO_EE : public UGOAPAction +{ + GENERATED_BODY() + +public: + virtual void Init() override; +}; diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EEE.cpp b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EEE.cpp new file mode 100644 index 0000000..9f95724 --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EEE.cpp @@ -0,0 +1,13 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "COMBO_EEE.h" + +void UCOMBO_EEE::Init() +{ + ActionCost = 1.0f; + ActionName = "EEE"; + PreConditions.Add("EisResource", 3); + Effects.Add("PlayerHealth", 20); + Effects.Add("EisResource", 3); +} \ No newline at end of file diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EEE.h b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EEE.h new file mode 100644 index 0000000..0e21a4b --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_EEE.h @@ -0,0 +1,19 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "../GOAPAction.h" +#include "COMBO_EEE.generated.h" + +/** + * + */ +UCLASS() +class COMP250_1_2101327_AI_API UCOMBO_EEE : public UGOAPAction +{ + GENERATED_BODY() + +public: + virtual void Init() override; +}; diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_I.cpp b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_I.cpp new file mode 100644 index 0000000..b8f3a84 --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_I.cpp @@ -0,0 +1,13 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "COMBO_I.h" + +void UCOMBO_I::Init() +{ + ActionCost = 3.0f; + ActionName = "I"; + PreConditions.Add("IroquoidResource", 1); + Effects.Add("PlayerHealth", 5); + Effects.Add("IroquoidResource", 1); +} \ No newline at end of file diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_I.h b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_I.h new file mode 100644 index 0000000..26c6c2e --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_I.h @@ -0,0 +1,19 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "../GOAPAction.h" +#include "COMBO_I.generated.h" + +/** + * + */ +UCLASS() +class COMP250_1_2101327_AI_API UCOMBO_I : public UGOAPAction +{ + GENERATED_BODY() + +public: + virtual void Init() override; +}; diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_II.cpp b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_II.cpp new file mode 100644 index 0000000..8a22bd9 --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_II.cpp @@ -0,0 +1,13 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "COMBO_II.h" + +void UCOMBO_II::Init() +{ + ActionCost = 2.0f; + ActionName = "II"; + PreConditions.Add("IroquoidResource", 2); + Effects.Add("PlayerHealth", 10); + Effects.Add("IroquoidResource", 2); +} \ No newline at end of file diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_II.h b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_II.h new file mode 100644 index 0000000..286d539 --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_II.h @@ -0,0 +1,19 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "../GOAPAction.h" +#include "COMBO_II.generated.h" + +/** + * + */ +UCLASS() +class COMP250_1_2101327_AI_API UCOMBO_II : public UGOAPAction +{ + GENERATED_BODY() + +public: + virtual void Init() override; +}; diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_III.cpp b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_III.cpp new file mode 100644 index 0000000..586cfc1 --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_III.cpp @@ -0,0 +1,13 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "COMBO_III.h" + +void UCOMBO_III::Init() +{ + ActionCost = 1.0f; + ActionName = "III"; + PreConditions.Add("IroquoidResource", 3); + Effects.Add("PlayerHealth", 20); + Effects.Add("IroquoidResource", 3); +} \ No newline at end of file diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_III.h b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_III.h new file mode 100644 index 0000000..7d4ee04 --- /dev/null +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_III.h @@ -0,0 +1,19 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "../GOAPAction.h" +#include "COMBO_III.generated.h" + +/** + * + */ +UCLASS() +class COMP250_1_2101327_AI_API UCOMBO_III : public UGOAPAction +{ + GENERATED_BODY() + +public: + virtual void Init() override; +}; diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_PPP.cpp b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_PPP.cpp index b2ee97d..be4090e 100644 --- a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_PPP.cpp +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/GOAP/Actions/COMBO_PPP.cpp @@ -8,6 +8,6 @@ void UCOMBO_PPP::Init() ActionCost = 1.0f; ActionName = "PPP"; PreConditions.Add("ProbertiumResource", 3); - Effects.Add("PlayerHealth", 15); + Effects.Add("PlayerHealth", 20); Effects.Add("ProbertiumResource", 3); }