rodecomp/Source/Contents/NavigationLink.cpp
ragnarok-clanker dc3d5ce1a5 Maintenance: Resubmission of 14942 (gate: three existing in-class helpers whose lines changed lacked an annotation; marked // INLINED
Batch #14943 by ragnarok-clanker: no function's compiled code changes; checked with 741 compiled unit(s), including every includer of Source/ActorPickNode.h, Source/Client/Browser/BrowserClientSite.h, Source/Client/Browser/BrowserPopupDispatch.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Mode/CMode.h, Source/Client/Mode/ModeDragState.h, Source/Client/Replay.h, Source/Client/Session.h, Source/Client/Stove/StoveMgr.h, Source/Contents/AchievementMgr.h, Source/Contents/ActorNameCard.h, Source/Contents/Actors/CharacterRender.h, Source/Contents/Actors/EffectActors.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/GrannyGameActor.h, Source/Contents/Actors/GroundScope.h, Source/Contents/Actors/Item.h, Source/Contents/Actors/Npc.h, Source/Contents/Actors/Pc.h, Source/Contents/Actors/RenderObjectState.h, Source/Contents/Actors/Skill.h, Source/Contents/AdventureGuideMgr.h, Source/Contents/Camera/Camera.h, Source/Contents/Camera/CameraState.h, Source/Contents/CashEmotionMgr.h, Source/Contents/Configuration/GameSettingsMgr.h, Source/Contents/EffectResourceSwitcher.h, Source/Contents/Effects/AMachineEffect.h, Source/Contents/Effects/AcidifiedThrow.h, Source/Contents/Effects/AxeBoomerang.h, Source/Contents/Effects/BlastForge.h, Source/Contents/Effects/CaneOfEvilEyeEffect.h, Source/Contents/Effects/CharacterParticleBundle.h, Source/Contents/Effects/CloudKillEffect.h, Source/Contents/Effects/Effect.h, Source/Contents/Effects/EffectActor.h, Source/Contents/Effects/EffectEmitter.h, Source/Contents/Effects/EffectMaker.h, Source/Contents/Effects/EffectPrimitiveState.h, Source/Contents/Effects/FuumaShouakuEffect.h, Source/Contents/Effects/GravityControlEffect.h, Source/Contents/Effects/HealSpEffect.h, Source/Contents/Effects/Level99Effect.h, Source/Contents/Effects/MapChainEffect.h, Source/Contents/Effects/MonsterSkillEffects.h, Source/Contents/Effects/MsgEffect.h, Source/Contents/Effects/NyanggrassEffect.h, Source/Contents/Effects/Particle.h, Source/Contents/Effects/PowderingEffect.h, Source/Contents/Effects/RagEffectState.h, Source/Contents/Effects/RectUpEffect.h, Source/Contents/Effects/ShadowExceedEffect.h, Source/Contents/Effects/SkillEffects.h, Source/Contents/Effects/SpriteParticle.h, Source/Contents/Effects/StormCannonEffect.h, Source/Contents/Effects/ThrowEffects.h, Source/Contents/EntryQueueMgr.h, Source/Contents/EquipmentResourceMgr.h, Source/Contents/FlyingShipRouteInfo.h, Source/Contents/Ground/GroundGeometry.h, Source/Contents/GuildInfo.h, Source/Contents/Items/ItemDescription.h, Source/Contents/Items/ItemInfo.h, Source/Contents/MapSkyMgr.h, Source/Contents/Messenger/MessengerWindows.h, Source/Contents/Models/ModelNode.h, Source/Contents/NavigationManager.h, Source/Contents/Party/AdventurerAgencyMgr.h, Source/Contents/RDamageVar.h, Source/Contents/RenewQuestMgr.h, Source/Contents/ReputeMgr.h, Source/Contents/RodexMailStore.h, Source/Contents/RouletteMgr.h, Source/Contents/Schedule/Schedule.h, Source/Contents/SignBoard/SignBoard.h, Source/Contents/Skills/ClientSkills.h, Source/Contents/Skills/PlayerSkillBundle.h, Source/Contents/Skills/SkillInfo.h, Source/Contents/SpriteLayerDrawing.h, Source/Contents/TipBoxTitles.h, Source/Contents/UserData/AccountLinkedUserDataMgr.h, Source/Contents/UserData/NormalItemSlots.h, Source/Contents/World/World.h, Source/Contents/WorldView/WorldViewData.h, Source/Render/Primitives/LightmappedPrimitive.h, Source/Render/Primitives/RenderPrimitive.h, Source/Render/Renderer.h, Source/Render/Textures/SpritePixels.h, Source/Render/Textures/Texture.h, Source/Resource/EZeffectResource.h, Source/Resource/Models/AnimatedModelResource.h, Source/Resource/Models/GrannyModelResource.h, Source/Resource/Sprites/ActionResource.h, Source/Resource/World/GroundResource.h, Source/Resource/World/WorldResource.h, Source/Resource/XmlNode.h, Source/UI/AdventureGuide/UIAdventureGuide.h, Source/UI/Buttons/UIBmpRadioBtn.h, Source/UI/Buttons/UIDescriptRace.h, Source/UI/Buttons/UIItemTagButton.h, Source/UI/Buttons/UISlotBmpButton.h, Source/UI/Buttons/UISpriteButton.h, Source/UI/Buttons/UITVTextButton.h, Source/UI/Buttons/UITextureButton.h, Source/UI/CashEmotion/UICashEmotionListWnd.h, Source/UI/CashEmotion/UICashEmotionPack.h, Source/UI/CashShop/UICashShopWnd.h, Source/UI/Chat/UIChatRoomMakeWnd.h, Source/UI/Chat/UIChatRoomTitle.h, Source/UI/Chat/UINewChatWnd.h, Source/UI/Chat/UISubChatHisWnd.h, Source/UI/Chat/UISubChatMiniWnd.h, Source/UI/Chat/UIWhisperWnd.h, Source/UI/Clan/UIClanWnd.h, Source/UI/Dialogs/UIBookWnd.h, Source/UI/Dialogs/UIChooseWarpWnd.h, Source/UI/Dialogs/UIMenuWnd.h, Source/UI/Dialogs/UIMiniMapWnd.h, Source/UI/Dialogs/UIMinimapZoomWnd.h, Source/UI/Dialogs/UINpcEditDialogWnd.h, Source/UI/Dialogs/UIPasswordWnd.h, Source/UI/Dialogs/UISayDialogWnd.h, Source/UI/Dialogs/UISelectCartWnd.h, Source/UI/Dialogs/UITipboxWnd.h, Source/UI/Edit/UIEditBoxEx.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Edit/UIEditCtrl_Currency.h, Source/UI/Edit/UIItemTagCtrl.h, Source/UI/Enchant/EnchantUI.h, Source/UI/Exchange/UIExchangeUI.h, Source/UI/FrameSkin.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/Gauges/UIPcGage.h, Source/UI/Guild/UIGuildHelperWnd.h, Source/UI/Guild/UIGuildWnd.h, Source/UI/Guild/UIGuild_Storage_Log.h, Source/UI/Item/UIEquipmentPropertiesWnd.h, Source/UI/Item/UIItemBaseWnd.h, Source/UI/Item/UIItemPurchaseWnd.h, Source/UI/Item/UIItemSellWnd2.h, Source/UI/Item/UIItemShopWnd.h, Source/UI/Item/UIItemShopWnd2.h, Source/UI/Item/UIItemStoreFindWnd.h, Source/UI/Item/UIItemStoreSubWnd.h, Source/UI/Item/UIItemStoreWnd.h, Source/UI/Item/UIItemWnd.h, Source/UI/Item/UIMerchantItemLogWnd.h, Source/UI/Item/UIParaItemShopWnd.h, Source/UI/Items/UICardItemIllustWnd.h, Source/UI/Items/UIEquipWnd.h, Source/UI/Items/UIExchangeWnd.h, Source/UI/Items/UIGameItem.h, Source/UI/Items/UIItemCollectionWnd.h, Source/UI/Items/UIItemIdentifyWnd.h, Source/UI/Items/UIItemParamChangeDisplayWnd.h, Source/UI/Items/UISwapEquipmentWnd.h, Source/UI/Layout/WindowGeometry.h, Source/UI/Lists/UIChatHisBox.h, Source/UI/Lists/UIComboBoxV2Wnd.h, Source/UI/Lists/UIImgMenu.h, Source/UI/Lists/UIListBoxID.h, Source/UI/Lists/UIListBoxTemplate.h, Source/UI/Lists/UIMemberListBox.h, Source/UI/Lists/UITabControl.h, Source/UI/Lists/UITagListBox.h, Source/UI/Lists/UITreeView.h, Source/UI/Menu/UIMenuIconWnd.h, Source/UI/Navigation/UINavigationV4Wnd.h, Source/UI/ProbabilityTable/UIProbabilityTable.h, Source/UI/Quest/UIQuestDisplay.h, Source/UI/Quest/UIRenewQuestUI.h, Source/UI/Quest/UIRenewQuestWnd.h, Source/UI/Rodex/UIRodexComposeWnd.h, Source/UI/Rodex/UIRodexInboxWnd.h, Source/UI/RuneSystem/UIRuneSystemWindows.h, Source/UI/RuneSystem/UIRuneSystemWnd.h, Source/UI/Shop/UIMerchantItemMyShopWnd.h, Source/UI/Shop/UIMerchantItemPurchaseMSGWnd.h, Source/UI/Shop/UIMerchantItemPurchaseWnd.h, Source/UI/Shop/UIMerchantItemShopWnd.h, Source/UI/Shop/UIMerchantMirrorItemWnd.h, Source/UI/Shop/UIMerchantShopMakeWnd.h, Source/UI/Shop/UIMerchantShopTitle.h, Source/UI/Skill/UISkillDescribeWnd.h, Source/UI/Skill/UISkillListWnd.h, Source/UI/SkillDelayInfo/SkillDelayInfo.h, Source/UI/StylingShop/UIStylingShopWnd.h, Source/UI/Text/CreateLineInfo.h, Source/UI/Text/UIAchWnd.h, Source/UI/Text/UIBalloonText.h, Source/UI/Text/UINameBalloonText.h, Source/UI/Text/UIStaticTextControl.h, Source/UI/Text/UIString.h, Source/UI/Text/UITextViewerControl.h, Source/UI/UIBarGraph.h, Source/UI/UIBartermarketWnd.h, Source/UI/UIChangeMaterialWnd.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/UILapineScrollBar.h, Source/UI/UIMacroBlackListCheckWnd.h, Source/UI/UIMacroDetectorWnd.h, Source/UI/UIMacroReport.h, Source/UI/UIMacroUserInfoWnd.h, Source/UI/UIPreviewEquipWnd.h, Source/UI/UIRefiningWnd.h, Source/UI/UIScrollWnd.h, Source/UI/UISlotBitmap.h, Source/UI/Window/FuncDrawWNDChar.h, Source/UI/Window/UIBattleMsgOptionWnd.h, Source/UI/Window/UIChatRoomWnd.h, Source/UI/Window/UICollectionSystemWnd.h, Source/UI/Window/UIControl.h, Source/UI/Window/UIHomunInfoWnd.h, Source/UI/Window/UIHotKeyWnd.h, Source/UI/Window/UIJobListWnd.h, Source/UI/Window/UILoginOTPWnd.h, Source/UI/Window/UILoginWnd.h, Source/UI/Window/UIMakeCharWnd.h, Source/UI/Window/UIMonsterDisplayWnd.h, Source/UI/Window/UIMonsterInfoWnd.h, Source/UI/Window/UINavigationHelpWnd.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UINewMakeCharWnd.h, Source/UI/Window/UINewSelectCharWnd.h, Source/UI/Window/UINoticeWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIRegisterMgr.h, Source/UI/Window/UIRoMapWnd.h, Source/UI/Window/UIRodexContentsWnd.h, Source/UI/Window/UISecondCostumeWnd.h, Source/UI/Window/UISeekPartyMBWnd.h, Source/UI/Window/UISeekPartyWnd.h, Source/UI/Window/UISelCharForUServerWnd.h, Source/UI/Window/UISerachStoreInfoWnd.h, Source/UI/Window/UITransMenuWnd.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/UIWindowMgr.inl, Source/Utility/Lexicon/LexiconSerializer.h.
2026-11-08 16:44:36 +00:00

334 lines
6.8 KiB
C++

#include "Contents/NavigationManager.h"
// OFFSET: 0x00B8D8D0
// FUNCTION: fn_19436
CNavi_Link::~CNavi_Link() {
this->type = 200;
this->linkedInfo = nullptr;
this->linkedLinks.clear();
}
// OFFSET: 0x00B8E5F0
// FUNCTION: fn_19473
const char* CNavi_Link::GetTitle() const {
return this->title.c_str();
}
// OFFSET: 0x00B8E610
// FUNCTION: fn_19475
const char* CNavi_Link::GetName() const {
return this->name.c_str();
}
// OFFSET: 0x00B8E7D0
// FUNCTION: fn_19483
NaviCell* CNavi_Link::GetCell(NaviCell* out) const {
const NaviCell cell = {this->cellX, this->cellY};
*out = cell;
return out;
}
// OFFSET: 0x00B8E830
// FUNCTION: fn_19487
int CNavi_Link::GetIndex() const {
return this->index;
}
// OFFSET: 0x00B8E8A0
// FUNCTION: fn_19492
int CNavi_Link::GetType() const {
return this->type;
}
// OFFSET: 0x00B8E8C0
// FUNCTION: fn_19494
int CNavi_Link::GetId() const {
return this->id;
}
// OFFSET: 0x00B8E8F0
// FUNCTION: fn_19497
CNaviInfo* CNavi_Link::GetInfo() const {
if (this->type == 400) {
return g_navigationManager.GetLinkedPlayerInfo();
}
return this->info;
}
// OFFSET: 0x00B8DB20
// FUNCTION: fn_19444
std::vector<NaviLink>::iterator CNavi_Link::LinkedBegin() {
return this->linkedLinks.begin();
}
// OFFSET: 0x00B8DE60
// FUNCTION: fn_19456
std::vector<NaviLink>::iterator CNavi_Link::LinkedEnd() {
return this->linkedLinks.end();
}
// OFFSET: 0x00B8E860
// FUNCTION: fn_19489
CNaviInfo* CNavi_Link::GetLinkedInfo() const {
return this->linkedInfo;
}
// OFFSET: 0x00B90400
// FUNCTION: fn_19508
void CNavi_Link::SetDepth(int depth) {
this->depth = depth;
}
// OFFSET: 0x00B8D9A0
// FUNCTION: fn_19438
bool CNaviInfo::AddNpc(CNavi_Object* npc) {
std::vector<CNavi_Object*>& npcs = this->npcs;
if (npc == nullptr) {
return false;
}
npcs.push_back(npc);
return true;
}
// OFFSET: 0x00B8D9E0
// FUNCTION: fn_19439
bool CNaviInfo::AddLink(CNavi_Link* link) {
std::vector<CNavi_Link*>& links = this->links;
if (link == nullptr) {
return false;
}
links.push_back(link);
return true;
}
// OFFSET: 0x00B8DA20
// FUNCTION: fn_19440
bool CNaviInfo::AddMob(CNavi_Object* mob) {
std::vector<CNavi_Object*>& mobs = this->mobs;
if (mob == nullptr) {
return false;
}
mobs.push_back(mob);
return true;
}
// OFFSET: 0x00B8DA60
// FUNCTION: fn_19441
void CNavi_Link::AddLinkedLink(const NaviLink& link) {
this->linkedLinks.push_back(link);
}
// OFFSET: 0x00B8DAA0
// FUNCTION: fn_19442
void CNavi_Link::AddLink(const NaviLink& link) {
this->links.push_back(link);
}
// OFFSET: 0x00B8DAE0
// FUNCTION: fn_19443
void CNavi_Object::AddLink(const NaviLink& link) {
this->links.push_back(link);
}
// OFFSET: 0x00B8DB40
// FUNCTION: fn_19445
std::vector<NaviLink>::iterator CNavi_Link::LinksBegin() {
return this->links.begin();
}
// OFFSET: 0x00B8DB50
// FUNCTION: fn_19446
std::vector<NaviLink>::iterator CNavi_Object::LinksBegin() {
return this->links.begin();
}
// OFFSET: 0x00B8DBB0
// FUNCTION: fn_19447
CNavi_Link* CNavi_Link::FindLinkAt(int x, int y) {
for (std::vector<NaviLink>::iterator it = this->links.begin(); it != this->links.end(); ++it) {
NaviCell cell;
NaviCell* found = it->link->GetCell(&cell);
if (found->x == x && found->y == y) {
return it->link;
}
}
return nullptr;
}
// OFFSET: 0x00B8DC00
// FUNCTION: fn_19448
CNavi_Link* CNavi_Object::FindLinkAt(int x, int y) {
for (std::vector<NaviLink>::iterator it = this->links.begin(); it != this->links.end(); ++it) {
NaviCell cell;
NaviCell* found = it->link->GetCell(&cell);
if (found->x == x && found->y == y) {
return it->link;
}
}
return nullptr;
}
// OFFSET: 0x00B8DC50
// FUNCTION: fn_19449
CNavi_Link* CNavi_Link::FindLinkTo(int x, int y) {
for (std::vector<NaviLink>::iterator it = this->links.begin(); it != this->links.end(); ++it) {
CNavi_Link* link = it->link;
if (link->linkedCellX == x && link->linkedCellY == y) {
return link;
}
}
return nullptr;
}
// OFFSET: 0x00B8DC90
// FUNCTION: fn_19450
CNavi_Link* CNavi_Object::FindLinkTo(int x, int y) {
for (std::vector<NaviLink>::iterator it = this->links.begin(); it != this->links.end(); ++it) {
CNavi_Link* link = it->link;
if (link->linkedCellX == x && link->linkedCellY == y) {
return link;
}
}
return nullptr;
}
// OFFSET: 0x00B8DCD0
// FUNCTION: fn_19451
void CNavi_Link::ClearLinkedLinks() {
this->linkedLinks.clear();
}
// OFFSET: 0x00B8DCE0
// FUNCTION: fn_19452
void CNavi_Link::ClearLinks() {
this->links.clear();
}
// OFFSET: 0x00B8DCF0
// FUNCTION: fn_19453
void CNavi_Object::ClearLinks() {
this->links.clear();
}
// OFFSET: 0x00B8DDE0
// FUNCTION: fn_19454
void CNavi_Link::EraseLink(std::vector<NaviLink>::iterator& it) {
it = this->links.erase(it);
}
// OFFSET: 0x00B8DE20
// FUNCTION: fn_19455
void CNavi_Object::EraseLink(std::vector<NaviLink>::iterator& it) {
it = this->links.erase(it);
}
// OFFSET: 0x00B8DE80
// FUNCTION: fn_19457
std::vector<NaviLink>::iterator CNavi_Link::LinksEnd() {
return this->links.end();
}
// OFFSET: 0x00B8DE90
// FUNCTION: fn_19458
std::vector<NaviLink>::iterator CNavi_Object::LinksEnd() {
return this->links.end();
}
// OFFSET: 0x00B8E870
// FUNCTION: fn_19490
const char* CNavi_Link::GetLinkedName() const {
return this->linkedInfo->name.c_str();
}
// OFFSET: 0x00B8E880
// FUNCTION: fn_19491
NaviCell CNavi_Link::GetLinkedCell() const {
NaviCell cell;
cell.x = this->linkedCellX;
cell.y = this->linkedCellY;
return cell;
}
// OFFSET: 0x00B90470
// FUNCTION: fn_19510
void CNavi_Link::SetType(int type) {
if (type >= 200 && type <= 206) {
this->type = type;
} else {
this->type = 200;
}
}
// OFFSET: 0x00B90490
// FUNCTION: fn_19511
void CNavi_Object::SetType(int type) {
this->type = 101;
}
// OFFSET: 0x00B904A0
// FUNCTION: fn_19512
bool CNavi_Link::SetId(int id) {
if (this->id != -1) {
return false;
}
this->id = id;
return true;
}
// OFFSET: 0x00B904C0
// FUNCTION: fn_19513
bool CNavi_Object::SetId(int id) {
if (this->id != -1) {
return false;
}
this->id = id;
return true;
}
// OFFSET: 0x00B904E0
// FUNCTION: fn_19514
int CNaviInfo::LinkCount() const {
return static_cast<int>(this->links.size());
}
// OFFSET: 0x00B904F0
// FUNCTION: fn_19515
int CNaviInfo::MobCount() const {
return static_cast<int>(this->mobs.size());
}
// OFFSET: 0x00B90500
// FUNCTION: fn_19516
int CNaviInfo::NpcCount() const {
return static_cast<int>(this->npcs.size());
}
// OFFSET: 0x00B90510
// FUNCTION: fn_19517
int CNavi_Link::LinkedLinkCount() const {
return static_cast<int>(this->linkedLinks.size());
}
// OFFSET: 0x00B90520
// FUNCTION: fn_19518
int CNavi_Link::LinkCount() const {
return static_cast<int>(this->links.size());
}
// OFFSET: 0x00B90530
// FUNCTION: fn_19519
int CNavi_Object::LinkCount() const {
return static_cast<int>(this->links.size());
}