コード例 #1
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgPrivateConversation(string text, int dest)
 {
    MsgType = BBMsgType.PRIVATE_CONVERSATION;
    Param1 = text;
    Param3 = dest;
 }
コード例 #2
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgEat(string reason, int dest)
 {
    MsgType = BBMsgType.EAT;
    Param1 = reason;
    Param3 = dest;
 }
コード例 #3
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
      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
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgKnock(string reason, int dest)
 {
    MsgType = BBMsgType.KNOCK;
    Param1 = reason;
    Param3 = dest;
 }
コード例 #5
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgCoffee(string reason, int dest)
 {
    MsgType = BBMsgType.COFFEE;
    Param1 = reason;
    Param3 = dest;
 }
コード例 #6
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgLeaveConversationPlayer(int id, string reason)
 {
     PlayerCarac = new PlayerCarac();
     PlayerCarac.ActorID = id;
     Param1 = reason;
     MsgType = BBMsgType.LEAVE_CONVERSATION;
 }
コード例 #7
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgShootResponse(ShootResponseDesc resp)
 {
    Resp = resp;
    MsgType = BBMsgType.ACTOR_SHOOT_RESPONSE;
 }
コード例 #8
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgChatHelper(string text, PlayerCarac player, BBMessage message)
 {
    MsgType = BBMsgType.CHAT;
    Conversation = message.Conversation;
    PlayerCarac = player;
    Message = text;
    Param1 = text;         
 }
コード例 #9
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 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
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgChat(string text, PlayerCarac player)
 {
    MsgType = BBMsgType.CHAT;
    PlayerCarac = player;
    Message = text;
    Param1 = text;         
 }
コード例 #11
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 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
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgNoLogin(string reason)
 {
    MsgType = BBMsgType.NO_LOGIN;
    Param1 = reason;
 }
コード例 #13
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgOkLogin(int id)
 {
    PlayerCarac.ActorID = id;
    MsgType = BBMsgType.OK_LOGIN;
 }
コード例 #14
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgAskLogin(PlayerCarac carac, string version)
 {
    PlayerCarac = carac;
    MsgType = BBMsgType.ASK_LOGIN;
    Param1 = version;
 }
コード例 #15
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgAddPlayer(Player player, bool newplayer)
 {
    PlayerCarac = player.Carac;
    ActorInfo = player.Info;
    Param2 = newplayer;
    MsgType = BBMsgType.ADD_PLAYER;
 }
コード例 #16
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 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
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgJoinConversationPlayer(Player player, bool newplayer)
 {
     PlayerCarac = player.Carac;
     ActorInfo = player.Info;
     Param2 = newplayer;
     MsgType = BBMsgType.JOIN_CONVERSATION;
 }
コード例 #18
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgTypingMsg(bool isTypingNow)
 {
    MsgType = BBMsgType.TYPING_MSG;
    Param2 = isTypingNow;         
 }
コード例 #19
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 public void MsgDelPlayer(int id, string reason)
 {
    PlayerCarac = new PlayerCarac();
    PlayerCarac.ActorID = id;
    Param1 = reason;
    MsgType = BBMsgType.DEL_PLAYER;
 }      
コード例 #20
0
ファイル: BBMessage.cs プロジェクト: TerenceWallace/bloodbox
 // Message creation
 public void MsgActorShoot(ShootDescription shoot)
 {
    Shoot = shoot;
    MsgType = BBMsgType.ACTOR_SHOOT;
 }