Beispiel #1
0
 private void HandleJoinedParty(BnetEntityId partyId, BnetGameAccountId otherMemberId)
 {
     this.m_partyId               = partyId;
     this.m_challengeePartyId     = partyId;
     this.m_challengerId          = otherMemberId;
     this.m_challenger            = BnetUtils.GetPlayer(this.m_challengerId);
     this.m_challengee            = BnetPresenceMgr.Get().GetMyPlayer();
     this.m_hasSeenDeclinedReason = false;
     if ((this.m_challenger == null) || !this.m_challenger.IsDisplayable())
     {
         this.m_challengerPending = true;
         this.UpdateMyAvailability();
     }
     else
     {
         this.UpdateMyAvailability();
         this.FireChangedEvent(FriendChallengeEvent.I_RECEIVED_CHALLENGE, this.m_challenger);
     }
 }
Beispiel #2
0
 public bool IsDisplayable()
 {
     BnetPlayer player = BnetUtils.GetPlayer(this.m_speakerId);
     BnetPlayer player2 = BnetUtils.GetPlayer(this.m_receiverId);
     if (player == null)
     {
         return false;
     }
     if (!player.IsDisplayable())
     {
         return false;
     }
     if (player2 == null)
     {
         return false;
     }
     if (!player2.IsDisplayable())
     {
         return false;
     }
     return true;
 }
Beispiel #3
0
 public BnetPlayer GetSpeaker()
 {
     return BnetUtils.GetPlayer(this.m_speakerId);
 }
Beispiel #4
0
 public BnetPlayer GetReceiver()
 {
     return BnetUtils.GetPlayer(this.m_receiverId);
 }