/* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 ~ 2010 Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matze@odinms.de> Jan Christian Meyer <vimes@odinms.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation. You may not use, modify or distribute this program under any other version of the GNU Affero General Public License. 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 Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ package client.inventory; public enum ItemFlag { LOCK(0x01), SPIKES(0x02), COLD(0x04), UNTRADABLE(0x08), KARMA_EQ(0x10), // send this to cs items and become tradable? KARMA_USE(0x02), CHARM_EQUIPPED(0x20), ANDROID_ACTIVATED(0x40), CRAFTED(0x80), CRAFTED_USE(0x10), SHIELD_WARD(0x100), //shield icon LUCKY_DAY(0x200), //this has some clover leaf thing at bottomleft KARMA_ACC_USE(0x400), KARMA_ACC(0x1000), SLOTS_PROTECT(0x2000), // Upgrade count protection SCROLL_PROTECT(0x4000); // scroll protection private final int value; private ItemFlag(int value) { this.value = value; } public final int getValue() { return value; } public final boolean check(int flag) { return (flag & value) == value; } }