Guest User

Character.h

a guest
Oct 16th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.85 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "CoreMinimal.h"
  6. #include "GameFramework/Character.h"
  7. #include "BehaviorTree/BehaviorTree.h"
  8. #include "ZombieController.h"
  9. #include "ZombieCharacter.generated.h"
  10.  
  11. UCLASS()
  12. class MESSINGWITHAI_API AZombieCharacter : public ACharacter
  13. {
  14.     GENERATED_BODY()
  15.  
  16. public:
  17.  
  18.     AZombieCharacter();
  19.  
  20.     UPROPERTY(EditAnywhere)
  21.         UBehaviorTree* behaviorTree;
  22.  
  23. protected:
  24.     virtual void BeginPlay() override;
  25.  
  26. public:
  27.     virtual void Tick(float DeltaTime) override;
  28.  
  29.     virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
  30.  
  31. public:
  32.     void ChangeRandomLocation();
  33.     FTimerHandle changeLocationTimerHandle;
  34.     void SetController(AZombieController* c) { controller = c; }
  35. private:
  36.     AZombieController* controller;
  37.  
  38.    
  39.    
  40. };
Advertisement
Add Comment
Please, Sign In to add comment