Added Test Actions
This commit is contained in:
parent
279669ebcd
commit
6309db6a55
@ -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);
|
||||
}
|
@ -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;
|
||||
};
|
@ -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);
|
||||
}
|
@ -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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user