Beispiel #1
0
bool CShopRoom::IsShopKeeperInRoom() {
   POSITION pos = m_CharactersInRoom.GetStartPosition();
   CCharacter *pCh;
   while (pos) {
	pCh = m_CharactersInRoom.GetNext(pos);
	if (pCh->IsNPC() && pCh->GetVnum() == m_lShopKeeperVnum) {
	   return true;
	}
   }
   return false;
}