Package net.bnubot.util

Examples of net.bnubot.util.BNetInputStream.readByte()


      case SID_FRIENDSPOSITION: {
        /*
         * (BYTE) Old Position
         * (BYTE) New Position
         */
        byte oldPosition = is.readByte();
        byte newPosition = is.readByte();

        dispatchFriendsPosition(oldPosition, newPosition);
        break;
      }
View Full Code Here


        /*
         * (BYTE) Old Position
         * (BYTE) New Position
         */
        byte oldPosition = is.readByte();
        byte newPosition = is.readByte();

        dispatchFriendsPosition(oldPosition, newPosition);
        break;
      }

View Full Code Here

        break;
      }

      case SID_CLANFINDCANDIDATES: {
        Object cookie = CookieUtility.destroyCookie(is.readDWord());
        byte status = is.readByte();
        byte numCandidates = is.readByte();
        List<String> candidates = new ArrayList<String>(numCandidates);
        for(int i = 0 ; i < numCandidates; i++)
          candidates.add(is.readNTString());
View Full Code Here

      }

      case SID_CLANFINDCANDIDATES: {
        Object cookie = CookieUtility.destroyCookie(is.readDWord());
        byte status = is.readByte();
        byte numCandidates = is.readByte();
        List<String> candidates = new ArrayList<String>(numCandidates);
        for(int i = 0 ; i < numCandidates; i++)
          candidates.add(is.readNTString());

        switch(status) {
View Full Code Here

      // SID_CLANMAKECHIEFTAIN

      // SID_CLANQUITNOTIFY
      case SID_CLANINVITATION: {
        Object cookie = CookieUtility.destroyCookie(is.readDWord());
        byte status = is.readByte();

        String result;
        switch(status) {
        case 0x00:
          result = "Invitation accepted";
View Full Code Here

        break;
      }

      case SID_CLANRANKCHANGE: {
        int cookie = is.readDWord();
        byte status = is.readByte();

        Object obj = CookieUtility.destroyCookie(cookie);
        String statusCode = null;
        switch(status) {
        case ClanStatusIDs.CLANSTATUS_SUCCESS:
View Full Code Here

         * (BYTE) Rank
         * (BYTE) Online Status
         * (STRING) Location
         */
        is.readDWord();
        byte numMembers = is.readByte();
        ClanMember[] members = new ClanMember[numMembers];

        for(int i = 0; i < numMembers; i++) {
          String uName = is.readNTString();
          byte uRank = is.readByte();
View Full Code Here

        byte numMembers = is.readByte();
        ClanMember[] members = new ClanMember[numMembers];

        for(int i = 0; i < numMembers; i++) {
          String uName = is.readNTString();
          byte uRank = is.readByte();
          byte uOnline = is.readByte();
          String uLocation = is.readNTStringUTF8();

          members[i] = new ClanMember(uName, uRank, uOnline, uLocation);
        }
View Full Code Here

        ClanMember[] members = new ClanMember[numMembers];

        for(int i = 0; i < numMembers; i++) {
          String uName = is.readNTString();
          byte uRank = is.readByte();
          byte uOnline = is.readByte();
          String uLocation = is.readNTStringUTF8();

          members[i] = new ClanMember(uName, uRank, uOnline, uLocation);
        }
View Full Code Here

         * (BYTE) Rank
         * (BYTE) Status
         * (STRING) Location
         */
        String username = is.readNTString();
        byte rank = is.readByte();
        byte status = is.readByte();
        String location = is.readNTStringUTF8();

        dispatchClanMemberStatusChange(new ClanMember(username, rank, status, location));
        break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.