From b11b51664198bf2a1519670e161af8d464098c2f Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Wed, 4 May 2022 19:26:56 -0500 Subject: [PATCH] fix Java doc comments removed unused param --- dGame/dComponents/RocketLaunchLupComponent.cpp | 2 +- dGame/dComponents/RocketLaunchLupComponent.h | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/dGame/dComponents/RocketLaunchLupComponent.cpp b/dGame/dComponents/RocketLaunchLupComponent.cpp index c822e4b..a2caa0b 100644 --- a/dGame/dComponents/RocketLaunchLupComponent.cpp +++ b/dGame/dComponents/RocketLaunchLupComponent.cpp @@ -37,7 +37,7 @@ void RocketLaunchLupComponent::OnUse(Entity* originator) { rocket->Equip(true); } -void RocketLaunchLupComponent::OnSelectWorld(Entity* originator, uint32_t index, const SystemAddress& sysAddr) { +void RocketLaunchLupComponent::OnSelectWorld(Entity* originator, uint32_t index) { // Add one to index because the actual LUP worlds start at index 1. index++; diff --git a/dGame/dComponents/RocketLaunchLupComponent.h b/dGame/dComponents/RocketLaunchLupComponent.h index 37a4fb2..ce915d7 100644 --- a/dGame/dComponents/RocketLaunchLupComponent.h +++ b/dGame/dComponents/RocketLaunchLupComponent.h @@ -12,25 +12,28 @@ class RocketLaunchLupComponent : public Component { public: static const uint32_t ComponentType = eReplicaComponentType::COMPONENT_TYPE_ROCKET_LAUNCH_LUP; + /** + * Constructor for this component, builds the m_LUPWorlds vector + * @param parent parent that contains this component + */ RocketLaunchLupComponent(Entity* parent); ~RocketLaunchLupComponent() override; /** * Handles an OnUse event from some entity, preparing it for launch to some other world - * Builds m_LUPWorlds * @param originator the entity that triggered the event */ void OnUse(Entity* originator) override; /** * Handles an OnUse event from some entity, preparing it for launch to some other world - * * @param originator the entity that triggered the event * @param index index of the world that was selected - * @param sysAddr the address to send gamemessage responses to */ - void OnSelectWorld(Entity* originator, uint32_t index, const SystemAddress& sysAddr); + void OnSelectWorld(Entity* originator, uint32_t index); private: - // vector of the LUP World Zone IDs, built from CDServer's LUPZoneIDs table + /** + * vector of the LUP World Zone IDs, built from CDServer's LUPZoneIDs table + */ std::vector m_LUPWorlds {}; };