MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / OurPartner

Method OurPartner

ogsr_engine/xrGame/PhraseDialog.cpp:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44void CPhraseDialog::Reset() {}
45
46CPhraseDialogManager* CPhraseDialog::OurPartner(CPhraseDialogManager* dialog_manager) const
47{
48 if (FirstSpeaker() == dialog_manager)
49 return SecondSpeaker();
50 else
51 return FirstSpeaker();
52}
53
54CPhraseDialogManager* CPhraseDialog::CurrentSpeaker() const { return FirstIsSpeaking() ? m_pSpeakerFirst : m_pSpeakerSecond; }
55CPhraseDialogManager* CPhraseDialog::OtherSpeaker() const { return (!FirstIsSpeaking()) ? m_pSpeakerFirst : m_pSpeakerSecond; }

Callers 1

AnswerPhraseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected