这篇教程C++ IsPendingKill函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中IsPendingKill函数的典型用法代码示例。如果您正苦于以下问题:C++ IsPendingKill函数的具体用法?C++ IsPendingKill怎么用?C++ IsPendingKill使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了IsPendingKill函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: EndTaskvoid UAbilityTask::EndTask(){ if (!IsPendingKill()) { OnDestroy(false); }}
开发者ID:kidaa,项目名称:UnrealEngineVR,代码行数:7,
示例2: GetCharacterMovementvoid AMech_RPGCharacter::BeginPlay() { Super::BeginPlay(); GetCharacterMovement()->SetAvoidanceEnabled(true); if (IsPendingKill()) { return; } if (!UseLoadout) { //CreatePresetRole(StartingRole()); } else { SetupWithLoadout(); } if (abilities.Num() > 0) { SetCurrentAbility(abilities[0]); } //SetUpGroup(); SetUpWidgets(); if (OnPostBeginPlay.IsBound()) { OnPostBeginPlay.Broadcast(this); }}
开发者ID:belven,项目名称:Mech_RPG,代码行数:25,
示例3: PostInitializeComponentsvoid APawn::PostInitializeComponents(){ Super::PostInitializeComponents(); if (!IsPendingKill()) { GetWorld()->AddPawn( this ); // Automatically add Controller to AI Pawns if we are allowed to. if (AutoPossessPlayer == EAutoReceiveInput::Disabled) { if (AutoPossessAI != EAutoPossessAI::Disabled && Controller == NULL && GetNetMode() != NM_Client) { const bool bPlacedInWorld = (GetWorld()->bStartup); if ((AutoPossessAI == EAutoPossessAI::PlacedInWorldOrSpawned) || (AutoPossessAI == EAutoPossessAI::PlacedInWorld && bPlacedInWorld) || (AutoPossessAI == EAutoPossessAI::Spawned && !bPlacedInWorld)) { SpawnDefaultController(); } } } // update movement component's nav agent values UpdateNavAgent(); }}
开发者ID:zhaoyizheng0930,项目名称:UnrealEngine,代码行数:27,
示例4: GetMeshvoid ABaseCharacter::SetRagdollPhysics(){ USkeletalMeshComponent* Mesh3P = GetMesh(); if (Mesh3P) { Mesh3P->SetCollisionProfileName(TEXT("Ragdoll")); } SetActorEnableCollision(true); if (!IsPendingKill() || Mesh3P || Mesh3P->GetPhysicsAsset()) { Mesh3P->SetAllBodiesSimulatePhysics(true); Mesh3P->SetSimulatePhysics(true); Mesh3P->WakeAllRigidBodies(); Mesh3P->bBlendPhysics = true; SetLifeSpan(TimeAfterDeathBeforeDestroy); } else { // Immediately hide the pawn TurnOff(); SetActorHiddenInGame(true); SetLifeSpan(1.0f); } UCharacterMovementComponent* CharacterComp = Cast<UCharacterMovementComponent>(GetMovementComponent()); if (CharacterComp) { CharacterComp->StopMovementImmediately(); CharacterComp->DisableMovement(); CharacterComp->SetComponentTickEnabled(false); }}
开发者ID:1992please,项目名称:Unreal_ShooterGame,代码行数:34,
示例5: checkfvoid UActorComponent::DoDeferredRenderUpdates_Concurrent(){ checkf(!HasAnyFlags(RF_Unreachable), TEXT("%s"), *GetFullName()); checkf(!IsTemplate(), TEXT("%s"), *GetFullName()); checkf(!IsPendingKill(), TEXT("%s"), *GetFullName()); if(!IsRegistered()) { UE_LOG(LogActorComponent, Log, TEXT("UpdateComponent: (%s) Not registered, Aborting."), *GetPathName()); return; } if(bRenderStateDirty) { SCOPE_CYCLE_COUNTER(STAT_PostTickComponentRecreate); RecreateRenderState_Concurrent(); checkf(!bRenderStateDirty, TEXT("Failed to route CreateRenderState_Concurrent (%s)"), *GetFullName()); } else { SCOPE_CYCLE_COUNTER(STAT_PostTickComponentLW); if(bRenderTransformDirty) { // Update the component's transform if the actor has been moved since it was last updated. SendRenderTransform_Concurrent(); } if(bRenderDynamicDataDirty) { SendRenderDynamicData_Concurrent(); } }}
开发者ID:Tigrouzen,项目名称:UnrealEngine-4,代码行数:33,
示例6: TEXTvoid UPawnActionsComponent::DescribeSelfToVisLog(FVisualLogEntry* Snapshot) const{ static const FString Category = TEXT("PawnActions"); if (IsPendingKill()) { return; } for (int32 PriorityIndex = 0; PriorityIndex < ActionStacks.Num(); ++PriorityIndex) { const UPawnAction* Action = ActionStacks[PriorityIndex].GetTop(); if (Action == NULL) { continue; } FVisualLogStatusCategory StatusCategory; StatusCategory.Category = Category + TEXT(": ") + GetPriorityName(PriorityIndex); while (Action) { StatusCategory.Add(Action->GetName(), Action->GetStateDescription()); Action = Action->GetParentAction(); } Snapshot->Status.Add(StatusCategory); }}
开发者ID:didixp,项目名称:Ark-Dev-Kit,代码行数:29,
示例7: PostInitPropertiesvoid ANavigationData::PostInitProperties(){ Super::PostInitProperties(); if (IsPendingKill() == true) { return; } if (HasAnyFlags(RF_ClassDefaultObject)) { if (RuntimeGeneration == ERuntimeGenerationType::LegacyGeneration) { RuntimeGeneration = bRebuildAtRuntime_DEPRECATED ? ERuntimeGenerationType::Dynamic : ERuntimeGenerationType::Static; } } else { bNetLoadOnClient = (*GEngine->NavigationSystemClass != nullptr) && (GEngine->NavigationSystemClass->GetDefaultObject<UNavigationSystem>()->ShouldLoadNavigationOnClient(this)); UWorld* WorldOuter = GetWorld(); if (WorldOuter != NULL && WorldOuter->GetNavigationSystem() != NULL) { WorldOuter->GetNavigationSystem()->RequestRegistration(this); } RenderingComp = ConstructRenderingComponent(); }}
开发者ID:amyvmiwei,项目名称:UnrealEngine4,代码行数:30,
示例8: PostInitializeComponentsvoid ACharacter::PostInitializeComponents(){ Super::PostInitializeComponents(); if (!IsPendingKill()) { if (Mesh) { BaseTranslationOffset = Mesh->RelativeLocation; BaseRotationOffset = Mesh->RelativeRotation.Quaternion(); // force animation tick after movement component updates if (Mesh->PrimaryComponentTick.bCanEverTick && CharacterMovement) { Mesh->PrimaryComponentTick.AddPrerequisite(CharacterMovement, CharacterMovement->PrimaryComponentTick); } } if (CharacterMovement && CapsuleComponent) { CharacterMovement->UpdateNavAgent(*CapsuleComponent); } if (Controller == NULL && GetNetMode() != NM_Client) { if (CharacterMovement && CharacterMovement->bRunPhysicsWithNoController) { CharacterMovement->SetDefaultMovementMode(); } } }}
开发者ID:colwalder,项目名称:unrealengine,代码行数:32,
示例9: DrawDebugDataDelegatevoid AGameplayDebuggerReplicator::DrawDebugDataDelegate(class UCanvas* Canvas, class APlayerController* PC){#if ENABLED_GAMEPLAY_DEBUGGER if (GetWorld() == nullptr || IsPendingKill() || Canvas == nullptr || Canvas->IsPendingKill()) { return; } if (!LocalPlayerOwner || !IsActorTickEnabled()) { return; } if (Canvas->SceneView != nullptr && !Canvas->SceneView->bIsGameView) { return; } if (GetWorld()->bPlayersOnly && Role == ROLE_Authority) { for (FConstPawnIterator Iterator = GetWorld()->GetPawnIterator(); Iterator; ++Iterator) { AActor* NewTarget = Cast<AActor>(*Iterator); if (NewTarget->IsSelected() && GetSelectedActorToDebug() != NewTarget) { ServerSetActorToDebug(NewTarget); } } } DrawDebugData(Canvas, PC);#endif}
开发者ID:RandomDeveloperM,项目名称:UE4_Hairworks,代码行数:32,
示例10: RegisterTargetDataCallbacksvoid UAbilityTask_WaitTargetData::RegisterTargetDataCallbacks(){ if (!ensure(IsPendingKill() == false)) { return; } check(TargetClass); check(Ability); const AGameplayAbilityTargetActor* CDO = CastChecked<AGameplayAbilityTargetActor>(TargetClass->GetDefaultObject()); const bool bIsLocallyControlled = Ability->GetCurrentActorInfo()->IsLocallyControlled(); const bool bShouldProduceTargetDataOnServer = CDO->ShouldProduceTargetDataOnServer; // If not locally controlled (server for remote client), see if TargetData was already sent // else register callback for when it does get here. if (!bIsLocallyControlled) { // Register with the TargetData callbacks if we are expecting client to send them if (!bShouldProduceTargetDataOnServer) { FGameplayAbilitySpecHandle SpecHandle = GetAbilitySpecHandle(); FPredictionKey ActivationPredictionKey = GetActivationPredictionKey(); //Since multifire is supported, we still need to hook up the callbacks AbilitySystemComponent->AbilityTargetDataSetDelegate(SpecHandle, ActivationPredictionKey ).AddUObject(this, &UAbilityTask_WaitTargetData::OnTargetDataReplicatedCallback); AbilitySystemComponent->AbilityTargetDataCancelledDelegate(SpecHandle, ActivationPredictionKey ).AddUObject(this, &UAbilityTask_WaitTargetData::OnTargetDataReplicatedCancelledCallback); AbilitySystemComponent->CallReplicatedTargetDataDelegatesIfSet(SpecHandle, ActivationPredictionKey ); SetWaitingOnRemotePlayerData(); } }}
开发者ID:RandomDeveloperM,项目名称:UE4_Hairworks,代码行数:35,
示例11: GetOwnervoid UActorComponent::ConsolidatedPostEditChange(const FPropertyChangedEvent& PropertyChangedEvent){ FComponentReregisterContext* ReregisterContext = nullptr; if(EditReregisterContexts.RemoveAndCopyValue(this, ReregisterContext)) { delete ReregisterContext; AActor* MyOwner = GetOwner(); if ( MyOwner && !MyOwner->IsTemplate() && PropertyChangedEvent.ChangeType != EPropertyChangeType::Interactive ) { MyOwner->RerunConstructionScripts(); } } else { // This means there are likely some stale elements left in there now, strip them out for (auto It(EditReregisterContexts.CreateIterator()); It; ++It) { if (!It.Key().IsValid()) { It.RemoveCurrent(); } } } // The component or its outer could be pending kill when calling PostEditChange when applying a transaction. // Don't do do a full recreate in this situation, and instead simply detach. if( IsPendingKill() ) { // @todo UE4 james should this call UnregisterComponent instead to remove itself from the RegisteredComponents array on the owner? ExecuteUnregisterEvents(); World = NULL; }}
开发者ID:ErwinT6,项目名称:T6Engine,代码行数:34,
示例12: AbilityEndedvoid UAbilityTask::AbilityEnded(){ if (!IsPendingKill()) { OnDestroy(true); }}
开发者ID:kidaa,项目名称:UnrealEngineVR,代码行数:7,
示例13: PostInitializeComponentsvoid APlayerStart::PostInitializeComponents(){ Super::PostInitializeComponents(); if ( !IsPendingKill() && GetWorld()->GetAuthGameMode() ) { GetWorld()->GetAuthGameMode()->AddPlayerStart(this); }}
开发者ID:stoneStyle,项目名称:Unreal4,代码行数:8,
示例14: PostInitializeComponentsvoid AAIController::PostInitializeComponents(){ Super::PostInitializeComponents(); if (bWantsPlayerState && !IsPendingKill() && (GetNetMode() != NM_Client)) { InitPlayerState(); }}
开发者ID:Tigrouzen,项目名称:UnrealEngine-4,代码行数:9,
示例15: PostEditUndovoid AGroupActor::PostEditUndo(){ Super::PostEditUndo(); if (IsPendingKill()) { GetWorld()->ActiveGroupActors.RemoveSwap(this); }}
开发者ID:1vanK,项目名称:AHRUnrealEngine,代码行数:9,
示例16: Die// Called when this enemy no longer has any health. [15/7/2016 Matthew Woolley]void ARoadFeverEnemy::Die(){ // If this enemy isn't already being killed. [15/7/2016 Matthew Woolley] if ( !IsPendingKill() && EnemyHealth <= 0 ) { // Kill it. [15/7/2016 Matthew Woolley] Destroy(); }}
开发者ID:FortuneMatthew,项目名称:Road_Fever,代码行数:10,
示例17: PostInitializeComponentsvoid AController::PostInitializeComponents(){ Super::PostInitializeComponents(); if ( !IsPendingKill() ) { GetWorld()->AddController( this ); }}
开发者ID:Tigrouzen,项目名称:UnrealEngine-4,代码行数:9,
示例18: GetNetConnectionclass UNetConnection* AGameplayDebuggerReplicator::GetNetConnection() const{#if ENABLED_GAMEPLAY_DEBUGGER if (LocalPlayerOwner && LocalPlayerOwner->IsPendingKill() == false && IsPendingKill() == false) { return LocalPlayerOwner->GetNetConnection(); }#endif return nullptr;}
开发者ID:RandomDeveloperM,项目名称:UE4_Hairworks,代码行数:10,
示例19: GetNetConnectionclass UNetConnection* AGameplayDebuggingReplicator::GetNetConnection() const{#if !(UE_BUILD_SHIPPING || UE_BUILD_TEST) if (LocalPlayerOwner && LocalPlayerOwner->IsPendingKill() == false && IsPendingKill() == false) { return LocalPlayerOwner->GetNetConnection(); }#endif return NULL;}
开发者ID:PopCap,项目名称:GameIdea,代码行数:10,
示例20: PostDuplicatevoid ALevelScriptActor::PostDuplicate(bool bDuplicateForPIE){ ULevelScriptBlueprint* MyBlueprint = Cast<ULevelScriptBlueprint>(GetClass()->ClassGeneratedBy); if (MyBlueprint && !GIsDuplicatingClassForReinstancing && !IsPendingKill()) { MyBlueprint->SetObjectBeingDebugged(this); } Super::PostDuplicate(bDuplicateForPIE);}
开发者ID:kidaa,项目名称:UnrealEngineVR,代码行数:10,
示例21: GetBodyInstancevoid UPrimitiveComponent::SetConstraintMode(EDOFMode::Type ConstraintMode){ FBodyInstance * RootBI = GetBodyInstance(NAME_None, false); if (RootBI == NULL || IsPendingKill()) { return; } RootBI->SetDOFLock(ConstraintMode);}
开发者ID:johndpope,项目名称:UE4,代码行数:11,
示例22: IsActivebool UGameplayAbility::IsActive() const{ // Only Instanced-Per-Actor abilities persist between activations if (GetInstancingPolicy() == EGameplayAbilityInstancingPolicy::InstancedPerActor) { return bIsActive; } // Non-instanced and Instanced-Per-Execution abilities are by definition active unless they are pending kill return !IsPendingKill();}
开发者ID:1vanK,项目名称:AHRUnrealEngine,代码行数:11,
示例23: UE_VLOGvoid UGameplayTask::EndTask(){ UE_VLOG(GetGameplayTasksComponent(), LogGameplayTasks, Verbose , TEXT("%s EndTask called, current State: %s") , *GetName(), *GetTaskStateName()); if (TaskState != EGameplayTaskState::Finished && !IsPendingKill()) { OnDestroy(false); }}
开发者ID:RandomDeveloperM,项目名称:UE4_Hairworks,代码行数:11,
示例24: UE_VLOGvoid UGameplayTask::TaskOwnerEnded(){ UE_VLOG(GetGameplayTasksComponent(), LogGameplayTasks, Verbose , TEXT("%s TaskOwnerEnded called, current State: %s") , *GetName(), *GetTaskStateName()); if (TaskState != EGameplayTaskState::Finished && !IsPendingKill()) { bOwnerFinished = true; OnDestroy(true); }}
开发者ID:zhaoyizheng0930,项目名称:UnrealEngine,代码行数:12,
示例25: ensurevoid UGameplayTask::OnDestroy(bool bInOwnerFinished){ ensure(TaskState != EGameplayTaskState::Finished && !IsPendingKill()); TaskState = EGameplayTaskState::Finished; if (TasksComponent.IsValid()) { TasksComponent->OnGameplayTaskDeactivated(*this); } MarkPendingKill();}
开发者ID:zhaoyizheng0930,项目名称:UnrealEngine,代码行数:12,
示例26: IsPendingKillbool AVehiclePawn::CanDie() const{ if ( bIsDying // already dying || IsPendingKill() // already destroyed || Role != ROLE_Authority // not authority || GetWorld()->GetAuthGameMode() == NULL || GetWorld()->GetAuthGameMode()->GetMatchState() == MatchState::LeavingMap) // level transition occurring { return false; } return true;}
开发者ID:WesMC,项目名称:UnrealVehicleExampleNetworked,代码行数:13,
示例27: GivePickupTovoid AShooterPickup::PickupOnTouch(class AShooterCharacter* Pawn){ if (bIsActive && Pawn && Pawn->IsAlive() && !IsPendingKill()) { if (CanBePickedUp(Pawn)) { GivePickupTo(Pawn); PickedUpBy = Pawn; if (!IsPendingKill()) { bIsActive = false; OnPickedUp(); if (RespawnTime > 0.0f) { GetWorldTimerManager().SetTimer(TimerHandle_RespawnPickup, this, &AShooterPickup::RespawnPickup, RespawnTime, false); } } } }}
开发者ID:tegleg,项目名称:teggame,代码行数:22,
示例28: IsPendingKillbool ANimModCharacter::CanDie(float KillingDamage, FDamageEvent const& DamageEvent, AController* Killer, AActor* DamageCauser) const{ if (bIsDying // already dying || IsPendingKill() // already destroyed || Role != ROLE_Authority // not authority || GetWorld()->GetAuthGameMode() == NULL || GetWorld()->GetAuthGameMode()->GetMatchState() == MatchState::LeavingMap) // level transition occurring { return false; } return true;}
开发者ID:Nimgoble,项目名称:NimMod,代码行数:13,
示例29: Shutdownvoid UGame::Shutdown(){ if ( IsPendingKill() ) { return; } OnShutdown(); ObjectTree->Dispose(); MarkPendingKill();}
开发者ID:fathurahman,项目名称:game-modules,代码行数:13,
注:本文中的IsPendingKill函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ IsPerson函数代码示例 C++ IsPaused函数代码示例 |