mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-12 10:28:05 +00:00
format codebase
This commit is contained in:
@@ -19,40 +19,40 @@ class Entity;
|
||||
struct OfferedMission {
|
||||
OfferedMission(uint32_t missionId, bool offersMission, bool acceptsMission);
|
||||
|
||||
/**
|
||||
* Returns the ID of the mission
|
||||
* @return the ID of the mission
|
||||
*/
|
||||
uint32_t GetMissionId() const;
|
||||
/**
|
||||
* Returns the ID of the mission
|
||||
* @return the ID of the mission
|
||||
*/
|
||||
uint32_t GetMissionId() const;
|
||||
|
||||
/**
|
||||
* Returns if this mission is offered by the entity
|
||||
* @return true if this mission is offered by the entity, false otherwise
|
||||
*/
|
||||
bool GetOfferMission() const;
|
||||
/**
|
||||
* Returns if this mission is offered by the entity
|
||||
* @return true if this mission is offered by the entity, false otherwise
|
||||
*/
|
||||
bool GetOfferMission() const;
|
||||
|
||||
/**
|
||||
* Returns if this mission may be accepted by the entity (currently unused)
|
||||
* @return true if this mission may be accepted by the entity, false otherwise
|
||||
*/
|
||||
bool GetAcceptMission() const;
|
||||
|
||||
/**
|
||||
* Returns if this mission may be accepted by the entity (currently unused)
|
||||
* @return true if this mission may be accepted by the entity, false otherwise
|
||||
*/
|
||||
bool GetAcceptMission() const;
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
* The ID of the mission
|
||||
*/
|
||||
uint32_t missionId;
|
||||
/**
|
||||
* The ID of the mission
|
||||
*/
|
||||
uint32_t missionId;
|
||||
|
||||
/**
|
||||
* Determines if the mission is offered by the entity
|
||||
*/
|
||||
bool offersMission;
|
||||
/**
|
||||
* Determines if the mission is offered by the entity
|
||||
*/
|
||||
bool offersMission;
|
||||
|
||||
/**
|
||||
* Determines if the mission can be accepted by the entity
|
||||
*/
|
||||
bool acceptsMission;
|
||||
/**
|
||||
* Determines if the mission can be accepted by the entity
|
||||
*/
|
||||
bool acceptsMission;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -60,31 +60,31 @@ private:
|
||||
*/
|
||||
class MissionOfferComponent : public Component {
|
||||
public:
|
||||
static const uint32_t ComponentType = COMPONENT_TYPE_MISSION_OFFER;
|
||||
|
||||
MissionOfferComponent(Entity* parent, LOT parentLot);
|
||||
~MissionOfferComponent() override;
|
||||
static const uint32_t ComponentType = COMPONENT_TYPE_MISSION_OFFER;
|
||||
|
||||
/**
|
||||
* Handles the OnUse event triggered by some entity, determines which missions to show based on what they may
|
||||
* hand in now and what they may start based on their mission history.
|
||||
* @param originator the entity that triggered the event
|
||||
*/
|
||||
void OnUse(Entity* originator) override;
|
||||
MissionOfferComponent(Entity* parent, LOT parentLot);
|
||||
~MissionOfferComponent() override;
|
||||
|
||||
/**
|
||||
* Offers all the missions an entity can accept to said entity
|
||||
* @param entity the entity to offer missions to
|
||||
* @param specifiedMissionId optional mission ID if you wish to offer a specific mission
|
||||
*/
|
||||
void OfferMissions(Entity* entity, uint32_t specifiedMissionId = 0);
|
||||
/**
|
||||
* Handles the OnUse event triggered by some entity, determines which missions to show based on what they may
|
||||
* hand in now and what they may start based on their mission history.
|
||||
* @param originator the entity that triggered the event
|
||||
*/
|
||||
void OnUse(Entity* originator) override;
|
||||
|
||||
/**
|
||||
* Offers all the missions an entity can accept to said entity
|
||||
* @param entity the entity to offer missions to
|
||||
* @param specifiedMissionId optional mission ID if you wish to offer a specific mission
|
||||
*/
|
||||
void OfferMissions(Entity* entity, uint32_t specifiedMissionId = 0);
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
* The missions this entity has to offer
|
||||
*/
|
||||
std::vector<OfferedMission*> offeredMissions;
|
||||
/**
|
||||
* The missions this entity has to offer
|
||||
*/
|
||||
std::vector<OfferedMission*> offeredMissions;
|
||||
};
|
||||
|
||||
#endif // MISSIONOFFERCOMPONENT_H
|
||||
|
Reference in New Issue
Block a user