完成AI基础逻辑

This commit is contained in:
dd
2026-06-01 23:35:22 +08:00
parent 003f54d648
commit 0f605d9b2c
20 changed files with 63 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+34
View File
@@ -0,0 +1,34 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "BotCharacter.h"
// Sets default values
ABotCharacter::ABotCharacter()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
}
// Called when the game starts or when spawned
void ABotCharacter::BeginPlay()
{
Super::BeginPlay();
}
// Called every frame
void ABotCharacter::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}
// Called to bind functionality to input
void ABotCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
Super::SetupPlayerInputComponent(PlayerInputComponent);
}
+29
View File
@@ -0,0 +1,29 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "BotCharacter.generated.h"
UCLASS()
class PVPDEMO_API ABotCharacter : public ACharacter
{
GENERATED_BODY()
public:
// Sets default values for this character's properties
ABotCharacter();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
};