📄 charactersitemstorage.java
字号:
/*
* 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 2, 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package l1j.server.server.storage;
import java.util.ArrayList;
import l1j.server.server.model.Instance.L1ItemInstance;
import l1j.server.server.storage.mysql.MySqlCharactersItemStorage;
public abstract class CharactersItemStorage {
//屬性強化捲軸
public abstract void updateItemAttribute(L1ItemInstance item) throws Exception;
public abstract void updateItemAttributeLevel(L1ItemInstance item) throws Exception;
//~屬性強化捲軸
//TODO 飾品強化卷軸
public abstract void updateFireMr(L1ItemInstance item)
throws Exception;
public abstract void updateWaterMr(L1ItemInstance item)
throws Exception;
public abstract void updateEarthMr(L1ItemInstance item)
throws Exception;
public abstract void updateWindMr(L1ItemInstance item)
throws Exception;
public abstract void updateaddSp(L1ItemInstance item)
throws Exception;
public abstract void updateaddHp(L1ItemInstance item)
throws Exception;
public abstract void updateaddMp(L1ItemInstance item)
throws Exception;
public abstract void updateHpr(L1ItemInstance item)
throws Exception;
public abstract void updateMpr(L1ItemInstance item)
throws Exception;
//飾品強化卷軸
public abstract ArrayList<L1ItemInstance> loadItems(int objId)
throws Exception;
public abstract void storeItem(int objId, L1ItemInstance item)
throws Exception;
public abstract void deleteItem(L1ItemInstance item) throws Exception;
public abstract void updateItemId(L1ItemInstance item) throws Exception;
public abstract void updateItemCount(L1ItemInstance item) throws Exception;
public abstract void updateItemIdentified(L1ItemInstance item)
throws Exception;
public abstract void updateItemEquipped(L1ItemInstance item)
throws Exception;
public abstract void updateItemEnchantLevel(L1ItemInstance item)
throws Exception;
public abstract void updateItemDurability(L1ItemInstance item)
throws Exception;
public abstract void updateItemChargeCount(L1ItemInstance item)
throws Exception;
public abstract void updateItemRemainingTime(L1ItemInstance item)
throws Exception;
public abstract void updateItemDelayEffect(L1ItemInstance item)
throws Exception;
public abstract int getItemCount(int objId)
throws Exception;
public static CharactersItemStorage create() {
if (_instance == null) {
_instance = new MySqlCharactersItemStorage();
}
return _instance;
}
private static CharactersItemStorage _instance;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -