#include <AIControllerCore.h>
|
| virtual void | BeginPlay () override |
| |
| virtual void | OnPossess (APawn *InPawn) override |
| |
| int32 | GetTeamID () const |
| |
| void | LogDebugError (const FString &Message) const |
| |
| void | LogDebugError (const FString &Message, const int32 Value) const |
| |
| void | LogDebugError (const FString &Message, const float Value) const |
| |
| void | LogDebugWarning (const FString &Message) const |
| |
| void | LogDebugWarning (const FString &Message, const int32 Value) const |
| |
| void | LogDebugWarning (const FString &Message, const float Value) const |
| |
| void | LogDebugMessage (const FString &Message, const bool bWarning=false, const bool bError=false) const |
| |
| void | LogDebugMessage (const FString &Message, const int32 Value, const bool bWarning=false, const bool bError=false) const |
| |
| void | LogDebugMessage (const FString &Message, const float Value, const bool bWarning=false, const bool bError=false) const |
| |
| void | LogDebugMessage (const FString &Message, const bool bValue, const bool bWarning, const bool bError) const |
| |
| void | LogOnScreenMessage (const int32 Key, const FString &Message, FColor Color=FColor::Green) const |
| |
| void | SetCategoryName (const FLogCategoryBase &Category) |
| |
◆ AAIControllerCore()
| AAIControllerCore::AAIControllerCore |
( |
| ) |
|
9{
10 PrimaryActorTick.bCanEverTick = true;
11}
◆ BeginPlay()
| void AAIControllerCore::BeginPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ GetTeamAttitudeTowards()
| ETeamAttitude::Type AAIControllerCore::GetTeamAttitudeTowards |
( |
const AActor & | Other | ) |
const |
|
overridevirtual |
Reimplemented from AAIControllerBase.
31{
32 if(
const APawn* OtherPawn = Cast<APawn>(&
Other))
33 {
34 if(const IGenericTeamAgentInterface* TeamAgent = Cast<IGenericTeamAgentInterface>(OtherPawn->GetController()))
35 {
36 const FGenericTeamId OtherTeamID = TeamAgent->GetGenericTeamId();
38 bool bSuccess = false;
39
40
41
43 if(bSuccess)
44 {
46 {
49 return ETeamAttitude::Friendly;
53 return ETeamAttitude::Neutral;
56 return ETeamAttitude::Hostile;
57 }
58 }
59 }
60 }
61 return ETeamAttitude::Neutral;
62}
EFactionType
Definition AIDataTypes.h:103
EFactionType Faction
Definition AIControllerCore.h:42
static EFactionType GetFactionFromTeamID(const uint8 TeamID)
Definition AIBPLib.cpp:120
static FFactionRelationship GetFactionRelationship(const UObject *WorldContextObject, const EFactionType Faction, const EFactionType TargetFaction, bool &bSuccess, UDataTable *DataTable=nullptr)
Definition AIBPLib.cpp:339
Definition AIDataTypes.h:279
ERelationshipStatus RelationshipStatus
Definition AIDataTypes.h:284
◆ OnPossess()
| void AAIControllerCore::OnPossess |
( |
APawn * | InPawn | ) |
|
|
overrideprotectedvirtual |
◆ Tick()
| void AAIControllerCore::Tick |
( |
float | DeltaTime | ) |
|
|
overridevirtual |
26{
27 Super::Tick(DeltaTime);
28}
◆ Faction
The documentation for this class was generated from the following files:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/AIToolKit/Source/AIToolKit/Public/Controllers/AIControllerCore.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/AIToolKit/Source/AIToolKit/Private/Controllers/AIControllerCore.cpp