Space Plunder
Loading...
Searching...
No Matches
CompanionInterface.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "UObject/Interface.h"
8#include "CompanionInterface.generated.h"
9
10// This class does not need to be modified.
11UINTERFACE(MinimalAPI, meta = (CannotImplementInterfaceInBlueprint))
12class UCompanionInterface : public UInterface
13{
14 GENERATED_BODY()
15};
16
17class AITOOLKIT_API ICompanionInterface
18{
19 GENERATED_BODY()
20
21public:
22
23 //- Commands //
24
25 UFUNCTION(BlueprintCallable, Category="Companions")
26 virtual void SetMaster(AActor* MasterActor) = 0;
27 UFUNCTION(BlueprintCallable, Category="Companions")
28 virtual void Follow() = 0;
29 UFUNCTION(BlueprintCallable, Category="Companions")
30 virtual void Pickup(AActor* TargetActor) = 0;
31 //@ TODO seperate, for Grabbing component stuff //
32 // UFUNCTION(BlueprintCallable, Category="Companions")
33 // virtual void Fetch(UPrimitiveComponent* ComponentToGrab) = 0;
34
35 UFUNCTION(BlueprintCallable, Category="Companions")
36 virtual void Interact(AActor* TargetActor) = 0;
37 UFUNCTION(BlueprintCallable, Category="Companions")
38 virtual void StartCombat(AActor* TargetEnemy) = 0;
39 UFUNCTION(BlueprintCallable, Category="Companions")
40 virtual void Wait(const FVector& TargetLocation) = 0;
41 UFUNCTION(BlueprintCallable, Category="Companions")
42 virtual void GrabObject() = 0;
44 // UFUNCTION(BlueprintCallable, Category="Companions")
45 // virtual FString GetDisplayName() = 0;
46
47 UFUNCTION(BlueprintCallable, Category="Companions")
48 virtual void AskToCrouch(const bool bValue) = 0;
49
50
51 UFUNCTION(BlueprintCallable, Category="Companions")
52 virtual FCompanionData GetCompanionData(const bool bValue) = 0;
53
54 //@ newer todo, ?? Why do i need this, check in the Sample project for what this is for..
55 // todo Move to Character Interface in Custom ALS
56 //- AI Control //
57 // UFUNCTION(BlueprintCallable, Category="Companions")
58 // virtual void Attack() = 0;
59
60 //-@TODO Temp for Demo ///
61 UFUNCTION(BlueprintCallable, Category="Companions")
62 virtual bool GetIsReadyToCommand() const = 0;
63
64};
Definition CompanionInterface.h:18
Definition CompanionInterface.h:13
Definition CompanionDataTypes.h:27