G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
UAIGroup_Combat_Base Class Reference

Public Member Functions

Functions
float32 GetFitnessOf (AGothicCharacter Character) const
float32 CalcStrengthRatioOf (AGothicCharacter Character) const
void FullyRecalculateGroupMemberStrengths ()
TArray< ECombatRole > GatherAvailableRolesOf (AGothicCharacter Character) const
TArray< ECombatRole > GetAvailableRolesOf (AGothicCharacter Character) const
float32 CalcFitnessOf (AGothicCharacter Character) const
float32 GetStrengthRatioOf (AGothicCharacter Character) const
void ScheduleAvailableRoleUpdates ()
void ScheduleFitnessUpdates ()
Public Member Functions inherited from UGothicAIGroup
void HandleMemberJoined (AGothicCharacter Character)
 Called when a group member dropped unconscious.
void DebugDrawGroup (float32 LifeTimeSeconds) const
 Outputs 3D debug drawing to show where the group is.
void DisplayImGui (AGothicCharacter ContextCharacter)
 Display debugging information for the given character.
TArray< AGothicCharacter > GetConsciousJoinedCharacters () const
 Returns all joined characters who are neither dead nor defeated.
FBox GetGroupBoundingBox () const
 Computes the bounding box of all characters that have joined this group.
FVector GetGroupCenterLocation () const
 Returns the average position of all characters that have joined this group.
TArray< AActor > GetGroupTargets () const
TArray< AGothicCharacter > GetJoinedCharactersWithTags (FGameplayTagContainer Included, FGameplayTagContainer Excluded) const
 Returns all joined characters who match the given tag containers.
void HandleMemberDied (AGothicCharacter Character)
 Called when a group member died.
UCharacterAIState GetMemberAIStateByClass (const AGothicCharacter Member, TSubclassOf< UCharacterAIState > StateClass) const
void HandleMemberLeft (AGothicCharacter Character)
 Called when a group member dropped unconscious.
void HandleMemberUnconscious (AGothicCharacter Character)
 Called when a group member dropped unconscious.
bool HasCharacterJoinedGroup (AGothicCharacter Character) const
 Returns true if the given character has joined this group.
bool IsCharacterAllowedToJoin (AGothicCharacter Character)
 Return whether the given character is allowed to join this group.
void MakeCharacterJoinGroup (AGothicCharacter Character)
 Adds the given character to this group. Does not check if it's allowed to do so.
void MakeCharacterLeaveGroup (AGothicCharacter Character)
 Removes the given character from this group.
Public Member Functions inherited from UObject
bool MarkPackageDirty () const
void RemoveFromRoot ()
bool GetIsRooted () const
bool IsTransient () const
bool Modify (bool bAlwaysMarkDirty=true)
void SetTransactional (bool bTransactional)
bool IsSupportedForNetworking () const
UClass GetClass () const
UObject GetOuter () const
UObject GetTypedOuter (TSubclassOf< UObject > Target) const
 Traverses the outer chain searching for the next object of a certain type.
UPackage GetOutermost () const
UPackage GetPackage () const
void AddToRoot ()
UWorld GetWorld () const
FName GetName () const
FString GetFullName (const UObject StopOuter=nullptr) const
FString GetPathName (const UObject StopOuter=nullptr) const
bool IsA (const UClass Class) const
 Returns true if this object is of the specified type, or a child of that type.
void SaveConfig ()
void LoadConfig ()
void ReloadConfig ()
void CopyScriptPropertiesFrom (const UObject OtherObject)
void opCast (?&Address) const
FString ToString () const

Static Public Member Functions

Static Functions
static UClass StaticClass ()
Static Public Member Functions inherited from UGothicAIGroup
static UClass StaticClass ()
static TArray< UGothicAIGroup > GetAllActiveGroupsOfClass (TSubclassOf< UGothicAIGroup > GroupClass)
 Return whether the given character is allowed to join this group.
Static Public Member Functions inherited from UObject
static UClass StaticClass ()

Public Attributes

AIGroup_Combat_Base
TMap< AGothicCharacter, float32 > StrengthRatioOfGroupMembers
TMap< AGothicCharacter, float32 > FitnessOfGroupMembers
 Fitness of all characters in the group. Sorted Lowest->Highest.
float32 HighestStrengthInGroup
float32 HighestLevelInGroup
float32 HighestHealthInGroup
AGothicCharacter WeakestMember
Public Attributes inherited from UGothicAIGroup
TArray< AGothicCharacter > JoinedCharacters
 Characters that have joined this group.
TArray< FGameplayAttribute > ListenToAttributeChangesOf
 Call the HandleMemberAttributeChanged function whenever a characters attribute was changed.
FGameplayTagContainer OwnedTagsToAddToMembers
 These tags will be added to all Members as OwnedTags.
const FBox GroupBoundingBox
 Computes the bounding box of all characters that have joined this group.
const FVector GroupCenterLocation
 Returns the average position of all characters that have joined this group.
const TArray< AActor > GroupTargets
const TArray< AGothicCharacter > ConsciousJoinedCharacters
 Returns all joined characters who are neither dead nor defeated.
Public Attributes inherited from UObject
const UClass Class
const UObject Outer
const UPackage Outermost
const UPackage Package
const UWorld World
const FName Name
const bool IsRooted

Member Function Documentation

◆ CalcFitnessOf()

float32 CalcFitnessOf ( AGothicCharacter Character) const

◆ CalcStrengthRatioOf()

float32 CalcStrengthRatioOf ( AGothicCharacter Character) const

◆ FullyRecalculateGroupMemberStrengths()

void FullyRecalculateGroupMemberStrengths ( )

◆ GatherAvailableRolesOf()

TArray< ECombatRole > GatherAvailableRolesOf ( AGothicCharacter Character) const

◆ GetAvailableRolesOf()

TArray< ECombatRole > GetAvailableRolesOf ( AGothicCharacter Character) const

◆ GetFitnessOf()

float32 GetFitnessOf ( AGothicCharacter Character) const

◆ GetStrengthRatioOf()

float32 GetStrengthRatioOf ( AGothicCharacter Character) const

◆ ScheduleAvailableRoleUpdates()

void ScheduleAvailableRoleUpdates ( )

◆ ScheduleFitnessUpdates()

void ScheduleFitnessUpdates ( )

◆ StaticClass()

UClass StaticClass ( )
static

Member Data Documentation

◆ FitnessOfGroupMembers

TMap<AGothicCharacter,float32> FitnessOfGroupMembers

Fitness of all characters in the group. Sorted Lowest->Highest.

◆ HighestHealthInGroup

float32 HighestHealthInGroup

◆ HighestLevelInGroup

float32 HighestLevelInGroup

◆ HighestStrengthInGroup

float32 HighestStrengthInGroup

◆ StrengthRatioOfGroupMembers

TMap<AGothicCharacter,float32> StrengthRatioOfGroupMembers

◆ WeakestMember

AGothicCharacter WeakestMember