Added All GOAP Action Combos

This commit is contained in:
Philip W 2023-03-22 17:11:51 +00:00
parent a0cd9f02fa
commit 19cfc6a0d2
14 changed files with 194 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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;
};

View File

@ -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);
}

View File

@ -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;
};

View File

@ -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);
}

View File

@ -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;
};

View File

@ -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);
}

View File

@ -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;
};

View File

@ -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);
}

View File

@ -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;
};

View File

@ -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);
}

View File

@ -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;
};

View File

@ -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);
}