ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
UArticyCondition Class Reference

#include <ArticyScriptFragment.h>

Inheritance diagram for UArticyCondition:
UArticyNode IArticyConditionProvider UArticyObject IArticyInputPinsProvider IArticyOutputPinsProvider UArticyPrimitive IArticyFlowObject IArticyFlowObject UArticyBaseObject IArticyReflectable IArticyReflectable IArticyReflectable

Public Member Functions

UArticyScriptConditionGetCondition () const
EArticyPausableType GetType () override
bool Evaluate (class UArticyGlobalVariables *GV=nullptr, class UObject *MethodProvider=nullptr) override
void Explore (UArticyFlowPlayer *Player, TArray< FArticyBranch > &OutBranches, const uint32 &Depth) override
Public Member Functions inherited from UArticyNode
EArticyPausableType GetType () override
 Gets the type of this node.
void Explore (UArticyFlowPlayer *Player, TArray< FArticyBranch > &OutBranches, const uint32 &Depth) override
 Explores the node's output pins.
Public Member Functions inherited from UArticyObject
FName GetTechnicalName () const
UArticyObjectGetParent () const
TArray< TWeakObjectPtr< UArticyObject > > GetChildren () const
FArticyId GetParentID () const
TArray< FArticyIdGetChildrenIDs () const
Public Member Functions inherited from UArticyPrimitive
FArticyId GetId () const
uint32 GetCloneId () const
void SetCloneID (uint32 cCloneId)
Public Member Functions inherited from UArticyBaseObject
bool WasLoaded () const
void Initialize ()
UArticyPrimitiveGetSubobject (FArticyId Id) const
FArticyType GetArticyType () const
Public Member Functions inherited from IArticyReflectable
template<typename TValue>
TValue SetProp (FName Property, TValue Value, int32 ArrayIndex=0)
template<typename TValue>
TValue & GetProp (FName Property, int32 ArrayIndex=0)
template<typename TValue>
const TValue & GetProp (FName Property, int32 ArrayIndex=0) const
template<typename TValue>
TValue * GetPropPtr (FName Property, int32 ArrayIndex=0) const
FProperty * GetProperty (FName Property) const
virtual UClass * GetObjectClass () const
Public Member Functions inherited from IArticyInputPinsProvider
bool TrySubmerge (class UArticyFlowPlayer *Player, TArray< FArticyBranch > &OutBranches, const uint32 &Depth, const bool bForceShadowed)
 Tries to submerge into InputPins and explore connections.
const TArray< UArticyInputPin * > * GetInputPinsPtr () const
 Retrieves a pointer to the InputPins array.
TArray< UArticyInputPin * > GetInputPins () const
 Retrieves the input pins for this object.
TArray< UArticyInputPin * > GetInputPins_Implementation () const
 Implementation of the GetInputPins function.
Public Member Functions inherited from IArticyFlowObject
virtual void Execute (class UArticyGlobalVariables *GV=nullptr, class UObject *MethodProvider=nullptr)
Public Member Functions inherited from IArticyOutputPinsProvider
const TArray< UArticyOutputPin * > * GetOutputPinsPtr () const
 Retrieves the output pins of the provider.
TArray< UArticyOutputPin * > GetOutputPins () const
 Blueprint callable event to retrieve output pins.
TArray< UArticyOutputPin * > GetOutputPins_Implementation () const
 Provides the implementation for retrieving output pins.

Additional Inherited Members

Static Public Member Functions inherited from IArticyReflectable
static bool HasProperty (const UClass *Class, const FName &Property)
Public Attributes inherited from UArticyBaseObject
FArticyType ArticyType
Public Attributes inherited from IArticyReflectable
FReportChangedDelegate ReportChanged
Protected Member Functions inherited from UArticyObject
void InitFromJson (TSharedPtr< FJsonValue > Json) override
Protected Member Functions inherited from UArticyPrimitive
void InitFromJson (TSharedPtr< FJsonValue > Json) override
Protected Member Functions inherited from UArticyBaseObject
void AddSubobject (UArticyPrimitive *Obj)
FText GetPropertyText (const FText Property)
Protected Attributes inherited from UArticyObject
FArticyId Parent
TArray< FArticyIdChildren
FString TechnicalName
Protected Attributes inherited from UArticyPrimitive
FArticyId Id
int32 CloneId = 0
Protected Attributes inherited from UArticyBaseObject
TMap< FArticyId, UArticyPrimitive * > Subobjects

Detailed Description

A condition node, which has a script condition.

Member Function Documentation

◆ Evaluate()

bool UArticyCondition::Evaluate ( class UArticyGlobalVariables * GV = nullptr,
class UObject * MethodProvider = nullptr )
overridevirtual

Evaluates the condition node.

Parameters
GVA pointer to the global variables used for evaluation.
MethodProviderA pointer to the method provider object.
Returns
True if the condition evaluates to true, false otherwise.

Evaluates the condition node. If a script condition is set, it delegates the evaluation to the script condition's Evaluate method.

Parameters
GVA pointer to the global variables used for evaluation.
MethodProviderA pointer to the method provider object.
Returns
True if the condition evaluates to true, false otherwise.

Reimplemented from IArticyConditionProvider.

◆ Explore()

void UArticyCondition::Explore ( UArticyFlowPlayer * Player,
TArray< FArticyBranch > & OutBranches,
const uint32 & Depth )
overridevirtual

Explores the condition node and appends the resulting branches to the output array.

Parameters
PlayerA pointer to the flow player handling the exploration.
OutBranchesAn array to which the resulting branches are appended.
DepthThe current depth of exploration.

Explores the condition node and appends the resulting branches to the output array. The exploration follows the output pins based on the condition evaluation result.

Parameters
PlayerA pointer to the flow player handling the exploration.
OutBranchesAn array to which the resulting branches are appended.
DepthThe current depth of exploration.

Implements IArticyFlowObject.

◆ GetCondition()

UArticyScriptCondition * UArticyCondition::GetCondition ( ) const

Retrieves the script condition associated with this condition node.

Returns
A pointer to the script condition.

Retrieves the script condition associated with this condition node. If the condition has not been previously loaded, it is retrieved from the property.

Returns
A pointer to the script condition.

◆ GetType()

EArticyPausableType UArticyCondition::GetType ( )
inlineoverridevirtual

Retrieves the type of the node as a condition.

Returns
The type of the node.

Implements IArticyFlowObject.


The documentation for this class was generated from the following files: