/*
* 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 javastory.channel.maps;
public enum FieldLimitType {
Jump(0x1),
MovementSkills(0x2),
SummoningBag(0x04),
MysticDoor(0x08),
ChannelSwitch(0x10),
RegularExpLoss(0x20),
VipRock(0x40),
Minigames(0x80),
NoClue1(0x100), // APQ and a couple quest maps have this
Mount(0x200),
NoClue2(0x400), // Monster carnival?
NoClue3(0x800), // Monster carnival?
PotionUse(0x1000),
NoClue4(0x2000), // No notes
Unused(0x4000),
NoClue5(0x8000), // Ariant colosseum-related?
NoClue6(0x10000), // No notes
DropDown(0x20000), // NoClue7(0x40000) // Seems to .. disable Rush if 0x2 is
// set
;
private final int i;
private FieldLimitType(final int i) {
this.i = i;
}
public final int getValue() {
return this.i;
}
public final boolean check(final int fieldlimit) {
return (fieldlimit & this.i) == this.i;
}
}