MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / MasterLoveSlave

Method MasterLoveSlave

src/SB/Game/zTalkBox.cpp:1549–1582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1547 {
1548 xLinkAsset* link = &this->link[i];
1549
1550 if (link->dstEvent == 0x133)
1551 {
1552 xSceneID2Name(globals.sceneCur, id);
1553 xSceneID2Name(globals.sceneCur, link->dstAssetID);
1554
1555 xBase* mychild = zSceneFindObject(link->dstAssetID);
1556 if (mychild)
1557 {
1558 MasterLoveSlave(mychild, isBeginning);
1559 }
1560 }
1561 }
1562}
1563void ztalkbox::MasterLoveSlave(xBase* slave, S32 starting)
1564{
1565 switch (slave->baseType)
1566 {
1567 case eBaseTypeGroup:
1568 {
1569 xGroup* grp = (xGroup*)slave;
1570 S32 cnt = xGroupGetCount(grp);
1571
1572 for (S32 i = 0; i < cnt; i++)
1573 {
1574 xBase* grpitem = xGroupGetItemPtr(grp, i);
1575 if (grpitem)
1576 {
1577 MasterLoveSlave(grpitem, starting);
1578 }
1579 }
1580 break;
1581 }
1582 case eBaseTypeNPC:
1583 {
1584 zNPCCommon* npc = (zNPCCommon*)slave;
1585 if (starting)

Callers

nothing calls this directly

Calls 5

xGroupGetCountFunction · 0.85
xGroupGetItemPtrFunction · 0.85
MasterLoveSlaveFunction · 0.85
SpeakBeginMethod · 0.45
SpeakEndMethod · 0.45

Tested by

no test coverage detected