added treasure dig menu prompts and help messages

This commit is contained in:
jadebenn
2023-12-14 01:33:49 -06:00
parent 2a4cfe3447
commit 1b8f10fcfb
10 changed files with 145 additions and 82 deletions

View File

@@ -5,6 +5,7 @@
#include "Component.h"
#include "Preconditions.h"
#include "eReplicaComponentType.h"
#include "ePetAbilityType.h"
/*
* The current state of the pet AI
@@ -45,13 +46,6 @@ enum PetEmote : int32_t {
Bounce
};
enum class PetAbilityType {
Invalid,
GoToObject,
JumpOnObject,
DigAtPosition
};
/**
* Represents an entity that is a pet. This pet can be tamed and consequently follows the tamer around, allowing it
* to dig for treasure and activate pet bouncers.
@@ -249,13 +243,13 @@ public:
* Returns an ability the pet may perform, currently unused
* @return an ability the pet may perform
*/
PetAbilityType GetAbility() const;
ePetAbilityType GetAbility() const;
/**
* Sets the ability of the pet, currently unused
* @param value the ability to set
*/
void SetAbility(PetAbilityType value);
void SetAbility(ePetAbilityType value);
/**
* Sets preconditions for the pet that need to be met before it can be tamed
@@ -274,6 +268,17 @@ public:
*/
bool IsReadyToInteract() { return m_ReadyToInteract; };
/**
* Sets if the pet is currently handling an interaction with an object
* @param isHandlingInteraction whether the pet is currently handling an interaction with an object
*/
void SetIsHandlingInteraction(bool isHandlingInteraction) { m_IsHandlingInteraction = isHandlingInteraction; };
/**
* @return is pet currently handling an interaction with an object
*/
bool IsHandlingInteraction() { return m_IsHandlingInteraction; };
/**
* Set up the pet bouncer interaction
*/
@@ -387,6 +392,11 @@ private:
*/
static std::map<LOT, int32_t> petFlags;
/**
* The halting radius of the pet while following a player
*/
static float m_FollowRadius;
/**
* The ID of the component in the pet component table
*/
@@ -455,7 +465,7 @@ private:
/**
* A currently active ability, mostly unused
*/
PetAbilityType m_Ability;
ePetAbilityType m_Ability;
/**
* The time an entity has left to complete the minigame
@@ -477,16 +487,16 @@ private:
*/
bool m_ReadyToInteract;
/**
* Boolean that sets if a pet is currently handling an interaction with an object
*/
bool m_IsHandlingInteraction;
/**
* The position that this pet was spawned at
*/
NiPoint3 m_StartPosition;
/**
* The halting radius of the pet while following a player
*/
const float m_FollowRadius = 8.0f;
/**
* The movement AI component that is related to this pet, required to move it around
*/