Created a Template for Bounty Hunter Character basic Bounty Directing Functionality
This commit is contained in:
parent
075aecf82a
commit
c0e942ef7f
@ -8,6 +8,7 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="8acc2658-cb31-4c49-857f-282cfee74640" name="Changes" comment="">
|
<list default="true" id="8acc2658-cb31-4c49-857f-282cfee74640" name="Changes" comment="">
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/.idea.EndlessVendetta/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.EndlessVendetta/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/Source/EndlessVendetta/Characters/BountyHunterCharacter.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/Source/EndlessVendetta/Characters/BountyHunterCharacter.cpp" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/Source/EndlessVendetta/Characters/BountyHunterCharacter.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/Source/EndlessVendetta/Characters/BountyHunterCharacter.cpp" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/Source/EndlessVendetta/Characters/BountyHunterCharacter.h" beforeDir="false" afterPath="$PROJECT_DIR$/Source/EndlessVendetta/Characters/BountyHunterCharacter.h" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/Source/EndlessVendetta/Characters/BountyHunterCharacter.h" beforeDir="false" afterPath="$PROJECT_DIR$/Source/EndlessVendetta/Characters/BountyHunterCharacter.h" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
@ -127,7 +128,7 @@
|
|||||||
<workItem from="1705685813496" duration="6457000" />
|
<workItem from="1705685813496" duration="6457000" />
|
||||||
<workItem from="1705756768038" duration="3821000" />
|
<workItem from="1705756768038" duration="3821000" />
|
||||||
<workItem from="1705856571902" duration="3954000" />
|
<workItem from="1705856571902" duration="3954000" />
|
||||||
<workItem from="1706036726146" duration="3007000" />
|
<workItem from="1706036726146" duration="5225000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
@ -3,7 +3,23 @@
|
|||||||
|
|
||||||
#include "BountyHunterCharacter.h"
|
#include "BountyHunterCharacter.h"
|
||||||
|
|
||||||
|
void ABountyHunterCharacter::SpawnBounties()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void ABountyHunterCharacter::CompleteCurrentMainBounty()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void ABountyHunterCharacter::BeginPlay()
|
void ABountyHunterCharacter::BeginPlay()
|
||||||
{
|
{
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ABountyHunterCharacter::Tick(float DeltaTime)
|
||||||
|
{
|
||||||
|
Super::Tick(DeltaTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -13,8 +13,41 @@ UCLASS()
|
|||||||
class ENDLESSVENDETTA_API ABountyHunterCharacter : public AEndlessVendettaCharacter
|
class ENDLESSVENDETTA_API ABountyHunterCharacter : public AEndlessVendettaCharacter
|
||||||
{
|
{
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
// ------------------- ATTRIBUTES ------------------------------
|
||||||
|
|
||||||
|
// Array of Main Bounties' Classes in Order
|
||||||
|
UPROPERTY(EditDefaultsOnly, Category = "Bounty Hunter")
|
||||||
|
TArray<TSubclassOf<AMainBountyClass>> MainBountyClasses;
|
||||||
|
|
||||||
|
// Reference to the Currently Active Main Bounty
|
||||||
|
UPROPERTY(VisibleAnywhere, Category = "Bounty Hunter")
|
||||||
|
AMainBountyClass* ActiveMainBounty;
|
||||||
|
|
||||||
|
// Index of Currently Active Main Bounty, Used for MainBountyClasses
|
||||||
|
int CurrentMainBountyIndex = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------- METHODS ---------------------------------
|
||||||
|
private:
|
||||||
|
// Spawns Main Bounty from MainBountyClasses at the CurrentMainBountyIndex, along with its Side Bounties
|
||||||
|
UFUNCTION(BlueprintCallable, Category = "Bounty Hunter")
|
||||||
|
void SpawnBounties();
|
||||||
|
|
||||||
|
// Checks if Player Completed Current Main Bounty, if so Collects Reward and Tries to Move onto Next Main Bounty
|
||||||
|
UFUNCTION(BlueprintCallable, Category = "Bounty Hunter")
|
||||||
|
void CompleteCurrentMainBounty();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
// Called When Player Spawns
|
||||||
virtual void BeginPlay() override;
|
virtual void BeginPlay() override;
|
||||||
|
|
||||||
|
// Called every frame
|
||||||
|
virtual void Tick(float DeltaTime) override;
|
||||||
|
public:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user