Added All GOAP Action Combos
This commit is contained in:
parent
a0cd9f02fa
commit
19cfc6a0d2
@ -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);
|
||||
}
|
@ -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);
|
||||
}
|
@ -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;
|
||||
};
|
@ -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);
|
||||
}
|
@ -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;
|
||||
};
|
@ -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);
|
||||
}
|
@ -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;
|
||||
};
|
@ -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);
|
||||
}
|
@ -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;
|
||||
};
|
@ -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);
|
||||
}
|
@ -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;
|
||||
};
|
@ -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);
|
||||
}
|
@ -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;
|
||||
};
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user