Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.FishData


      String line = null;

      _fishsEasy = new FastList<FishData>();
      _fishsNormal = new FastList<FishData>();
      _fishsHard = new FastList<FishData>();
      FishData fish;

      //format:
      // id;level;name;hp;hpregen;fish_type;fish_group;fish_guts;guts_check_time;wait_time;combat_time
      while((line = lnr.readLine()) != null)
      {
        //ignore comments
        if(line.trim().length() == 0 || line.startsWith("#"))
        {
          continue;
        }

        StringTokenizer st = new StringTokenizer(line, ";");

        int id = Integer.parseInt(st.nextToken());
        int lvl = Integer.parseInt(st.nextToken());
        String name = st.nextToken();
        int hp = Integer.parseInt(st.nextToken());
        int hpreg = Integer.parseInt(st.nextToken());
        int type = Integer.parseInt(st.nextToken());
        int group = Integer.parseInt(st.nextToken());
        int fish_guts = Integer.parseInt(st.nextToken());
        int guts_check_time = Integer.parseInt(st.nextToken());
        int wait_time = Integer.parseInt(st.nextToken());
        int combat_time = Integer.parseInt(st.nextToken());

        fish = new FishData(id, lvl, name, hp, hpreg, type, group, fish_guts, guts_check_time, wait_time, combat_time);
        switch(fish.getGroup())
        {
          case 0:
            _fishsEasy.add(fish);
            break;
          case 1:
View Full Code Here


      EndFishing(false);
      return;
    }
    int check = Rnd.get(fishs.size());
    // Use a copy constructor else the fish data may be over-written below
    _fish = new FishData(fishs.get(check));
    fishs.clear();
    fishs = null;
    sendPacket(new SystemMessage(SystemMessageId.CAST_LINE_AND_START_FISHING));
    ExFishingStart efs = null;
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.FishData

Copyright © 2018 www.massapicom. 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.