Added Test Actions

This commit is contained in:
Philip W 2023-03-20 07:30:55 +00:00
parent 279669ebcd
commit 6309db6a55
4 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "Combo_P.h"
void UCombo_P::Init()
{
PreConditions.Add("PlayerHealth", 15);
PreConditions.Add("ProbertiumResource", 5);
Effects.Add("PlayerHealth", 15);
Effects.Add("ProbertiumResource", 5);
}

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_P.generated.h"
/**
*
*/
UCLASS()
class COMP250_1_2101327_AI_API UCombo_P : public UGOAPAction
{
GENERATED_BODY()
public:
virtual void Init() override;
};

View File

@ -0,0 +1,11 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "DefaultAttack.h"
void UDefaultAttack::Init()
{
ActionCost = 2.0f;
PreConditions.Add("PlayerHealth", 10);
Effects.Add("PlayerHealth", 10);
}

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 "DefaultAttack.generated.h"
/**
*
*/
UCLASS()
class COMP250_1_2101327_AI_API UDefaultAttack : public UGOAPAction
{
GENERATED_BODY()
public:
virtual void Init() override;
};