HasEnnemy() public method

public HasEnnemy ( string pseudo ) : bool
pseudo string
return bool
コード例 #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="channel"></param>
 /// <param name="message"></param>
 /// <param name="whispedCharacter"></param>
 public override bool DispatchChatMessage(ChatChannelEnum channel, string message, CharacterEntity whispedCharacter = null)
 {
     if(channel == ChatChannelEnum.CHANNEL_PRIVATE_SEND)
     {
         if(whispedCharacter.Away || whispedCharacter.HasEnnemy(Pseudo))
         {
             Dispatch(WorldMessage.IM_ERROR_MESSAGE(InformationEnum.ERROR_PLAYER_AWAY_MESSAGE, whispedCharacter.Name));
             return false;
         }
         if(Away)
         {
             Dispatch(WorldMessage.IM_INFO_MESSAGE(InformationEnum.INFO_YOU_ARE_AWAY_PLAYERS_CANT_RESPOND));
         }
     }
     return base.DispatchChatMessage(channel, message, whispedCharacter);
 }