本文整理汇总了C++中IshipIGC::IsGhost方法的典型用法代码示例。如果您正苦于以下问题:C++ IshipIGC::IsGhost方法的具体用法?C++ IshipIGC::IsGhost怎么用?C++ IshipIGC::IsGhost使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IshipIGC
的用法示例。
在下文中一共展示了IshipIGC::IsGhost方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnAppMessage
//.........这里部分代码省略.........
}
}
if (ValidCore == true)
{
//Imago - start the mission in this thread as usual
FedSrvSite * psiteFedSrv = new FedSrvSite();
CFSMission * pfsMissionNew = new CFSMission(mp, "", psiteFedSrv, psiteFedSrv, NULL, NULL);
pfsMissionNew->SetCookie(pfmCreateMissionReq->dwCookie);
}
else
{
debugf("Lobby sent invalid core information %s, ignoring message\n", mp.szIGCStaticFile);
}
// pkk end
#endif
#endif
} //Imago 6/22/08
break;
//#endif -- reactivate create mission
case FM_L_NEW_MISSION_ACK:
{
CASTPFM(pfmNewMissionAck, L, NEW_MISSION_ACK, pfm);
CFSMission * pfsm = CFSMission::GetMissionFromIGCMissionID(pfmNewMissionAck->dwIGCMissionID);
if (pfsm)
{
pfsm->SetCookie(pfmNewMissionAck->dwCookie);
// If we already have players (e.g. reconnect), tell the lobby who's in the game
const ShipListIGC * plistShip = pfsm->GetIGCMission()->GetShips();
for (ShipLinkIGC * plinkShip = plistShip->first(); plinkShip; plinkShip = plinkShip->next())
{
IshipIGC * pShip = plinkShip->data();
CFSShip * pfsShip = GETFSSHIP(pShip);
if (pfsShip->IsPlayer() && !pShip->IsGhost())
{
CFSPlayer* pfsPlayer = pfsShip->GetPlayer();
BEGIN_PFM_CREATE(g.fmLobby, pfmPlayerJoined, S, PLAYER_JOINED)
FM_VAR_PARM(pfsPlayer->GetName(), CB_ZTS)
END_PFM_CREATE
pfmPlayerJoined->dwMissionCookie = pfsm->GetCookie();
}
}
HRESULT hr = pthis->SendMessages(pthis->GetServerConnection(), FM_GUARANTEED, FM_FLUSH);
}
}
break;
case FM_L_TOKEN:
{
CASTPFM(pfmToken, L, TOKEN, pfm);
Strcpy(g.m_szToken, FM_VAR_REF(pfmToken, Token));
}
break;
case FM_L_REMOVE_PLAYER:
{
CASTPFM(pfmRemovePlayer, L, REMOVE_PLAYER, pfm);
CFSMission * pfsMission = CFSMission::GetMission(pfmRemovePlayer->dwMissionCookie);
const char* szCharacterName = FM_VAR_REF(pfmRemovePlayer, szCharacterName);
const char* szMessageParam = FM_VAR_REF(pfmRemovePlayer, szMessageParam);
// try to find the player in question
if (!pfsMission)
{
debugf("Asked to boot character %s from mission %x by lobby, "
"but the mission was not found.\n",