Implement flying command (#713)

* Implement flying command

* Add documentation.
This commit is contained in:
Jett
2022-08-06 09:19:34 +01:00
committed by GitHub
parent ea86988521
commit 6c97ea8208
4 changed files with 70 additions and 0 deletions

View File

@@ -425,6 +425,18 @@ public:
*/
const std::vector<LOT>& GetEquippedItems() const { return m_EquippedItems; }
/**
* @brief Get the flying state
* @return value of the flying state
*/
bool GetIsFlying() { return m_IsFlying; }
/**
* @brief Set the value of the flying state
* @param isFlying the flying state
*/
void SetIsFlying(bool isFlying) { m_IsFlying = isFlying; }
private:
/**
* The ID of this character. First 32 bits of the ObjectID.
@@ -621,6 +633,11 @@ private:
*/
std::string m_TargetScene;
/**
* Bool that tracks the flying state of the user.
*/
bool m_IsFlying = false;
/**
* Queries the character XML and updates all the fields of this object
* NOTE: quick as there's no DB lookups