actual freya branch
This commit is contained in:
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* 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 final int _id;
|
||||
private final int _level;
|
||||
private final String _name;
|
||||
private final int _hp;
|
||||
private final int _hpRegen;
|
||||
private int _type;
|
||||
private final int _group;
|
||||
private final int _fishGuts;
|
||||
private final int _gutsCheckTime;
|
||||
private final int _waitTime;
|
||||
private final 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user