示例#1
0
 public void MsgPrivateConversation(string text, int dest)
 {
    MsgType = BBMsgType.PRIVATE_CONVERSATION;
    Param1 = text;
    Param3 = dest;
 }
示例#2
0
 public void MsgEat(string reason, int dest)
 {
    MsgType = BBMsgType.EAT;
    Param1 = reason;
    Param3 = dest;
 }
示例#3
0
      public void MsgPrivateMessage(string text, string actualNickName)
      {
         MsgType = BBMsgType.PRIVATE_MESSAGE;
         Param1 = text;
         //Param3 = dest;

         if (this.Conversation != null)
         {
             if (!this.Conversation.LastTalker.Equals(actualNickName))
             {
                 this.Conversation.ChangeLastTalker = true;
             }
             else
             {
                 this.Conversation.ChangeLastTalker = false;
             }

             this.Conversation.LastTalker = actualNickName;
         }
      }
示例#4
0
 public void MsgKnock(string reason, int dest)
 {
    MsgType = BBMsgType.KNOCK;
    Param1 = reason;
    Param3 = dest;
 }
示例#5
0
 public void MsgCoffee(string reason, int dest)
 {
    MsgType = BBMsgType.COFFEE;
    Param1 = reason;
    Param3 = dest;
 }
示例#6
0
 public void MsgLeaveConversationPlayer(int id, string reason)
 {
     PlayerCarac = new PlayerCarac();
     PlayerCarac.ActorID = id;
     Param1 = reason;
     MsgType = BBMsgType.LEAVE_CONVERSATION;
 }
示例#7
0
 public void MsgShootResponse(ShootResponseDesc resp)
 {
    Resp = resp;
    MsgType = BBMsgType.ACTOR_SHOOT_RESPONSE;
 }
示例#8
0
 public void MsgChatHelper(string text, PlayerCarac player, BBMessage message)
 {
    MsgType = BBMsgType.CHAT;
    Conversation = message.Conversation;
    PlayerCarac = player;
    Message = text;
    Param1 = text;         
 }
示例#9
0
 public void MsgChatPendu(string text, PlayerCarac player, bool alert, BBMessage message)
 {
    MsgType = BBMsgType.PENDU;
    Conversation = message.Conversation;
    PlayerCarac = player;
    Message = text;
    Param1 = text;
    Param2 = alert;
 }
示例#10
0
 public void MsgChat(string text, PlayerCarac player)
 {
    MsgType = BBMsgType.CHAT;
    PlayerCarac = player;
    Message = text;
    Param1 = text;         
 }
示例#11
0
 public void MsgChatVDM(string text, PlayerCarac player, bool displayMessage, BBMessage message)
 {
    MsgType = BBMsgType.VDM;
    Conversation = message.Conversation;
    PlayerCarac = player;
    Message = text;
    Param1 = text;
    Param2 = displayMessage;
 }
示例#12
0
 public void MsgNoLogin(string reason)
 {
    MsgType = BBMsgType.NO_LOGIN;
    Param1 = reason;
 }
示例#13
0
 public void MsgOkLogin(int id)
 {
    PlayerCarac.ActorID = id;
    MsgType = BBMsgType.OK_LOGIN;
 }
示例#14
0
 public void MsgAskLogin(PlayerCarac carac, string version)
 {
    PlayerCarac = carac;
    MsgType = BBMsgType.ASK_LOGIN;
    Param1 = version;
 }
示例#15
0
 public void MsgAddPlayer(Player player, bool newplayer)
 {
    PlayerCarac = player.Carac;
    ActorInfo = player.Info;
    Param2 = newplayer;
    MsgType = BBMsgType.ADD_PLAYER;
 }
示例#16
0
 public void MsgChatBash(string text, PlayerCarac player, bool toDisplay, BBMessage message)
 {
    MsgType = BBMsgType.BASH;
    Conversation = message.Conversation;
    PlayerCarac = player;
    Message = text;
    Param1 = text;
    Param2 = toDisplay;
 }
示例#17
0
 public void MsgJoinConversationPlayer(Player player, bool newplayer)
 {
     PlayerCarac = player.Carac;
     ActorInfo = player.Info;
     Param2 = newplayer;
     MsgType = BBMsgType.JOIN_CONVERSATION;
 }
示例#18
0
 public void MsgTypingMsg(bool isTypingNow)
 {
    MsgType = BBMsgType.TYPING_MSG;
    Param2 = isTypingNow;         
 }
示例#19
0
 public void MsgDelPlayer(int id, string reason)
 {
    PlayerCarac = new PlayerCarac();
    PlayerCarac.ActorID = id;
    Param1 = reason;
    MsgType = BBMsgType.DEL_PLAYER;
 }      
示例#20
0
 // Message creation
 public void MsgActorShoot(ShootDescription shoot)
 {
    Shoot = shoot;
    MsgType = BBMsgType.ACTOR_SHOOT;
 }