123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- /*
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 3 of the License, or (at your option) any later
- * version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see <http://www.gnu.org/licenses/>.
- */
- package com.l2jserver.gameserver.model;
- public class FishData
- {
- private int _id;
- private int _level;
- private String _name;
- private int _hp;
- private int _hpRegen;
- private int _type;
- private int _group;
- private int _fishGuts;
- private int _gutsCheckTime;
- private int _waitTime;
- private int _combatTime;
-
- public FishData(int id, int lvl, String name, int HP, int HpRegen, int type, int group, int fish_guts, int guts_check_time, int wait_time, int combat_time)
- {
- _id = id;
- _level = lvl;
- _name = name.intern();
- _hp = HP;
- _hpRegen = HpRegen;
- _type = type;
- _group = group;
- _fishGuts = fish_guts;
- _gutsCheckTime = guts_check_time;
- _waitTime = wait_time;
- _combatTime = combat_time;
- }
-
- public FishData(FishData copyOf)
- {
- _id = copyOf.getId();
- _level = copyOf.getLevel();
- _name = copyOf.getName();
- _hp = copyOf.getHP();
- _hpRegen = copyOf.getHpRegen();
- _type = copyOf.getType();
- _group = copyOf.getGroup();
- _fishGuts = copyOf.getFishGuts();
- _gutsCheckTime = copyOf.getGutsCheckTime();
- _waitTime = copyOf.getWaitTime();
- _combatTime = copyOf.getCombatTime();
- }
-
- /**
- * @return Returns the id.
- */
- public int getId()
- {
- return _id;
- }
-
- /**
- * @return Returns the level.
- */
- public int getLevel()
- {
- return _level;
- }
-
- /**
- * @return Returns the name.
- */
- public String getName()
- {
- return _name;
- }
-
- public int getHP()
- {
- return _hp;
- }
- public int getHpRegen()
- {
- return _hpRegen;
- }
- public int getType()
- {
- return _type;
- }
- public int getGroup()
- {
- return _group;
- }
- public int getFishGuts()
- {
- return _fishGuts;
- }
- public int getGutsCheckTime()
- {
- return _gutsCheckTime;
- }
- public int getWaitTime()
- {
- return _waitTime;
- }
- public int getCombatTime()
- {
- return _combatTime;
- }
- public void setType(int type)
- {
- _type = type;
- }
- }
|