@ -46,7 +46,7 @@ public class Enum {
@@ -46,7 +46,7 @@ public class Enum {
EXPLOIT ,
BUG ,
GAME_STOPPER ,
TECH_SUPPORT ;
TECH_SUPPORT
}
@ -112,7 +112,7 @@ public class Enum {
@@ -112,7 +112,7 @@ public class Enum {
Undead ,
Nephilim ,
Vampire ,
SiegeEngineer ;
SiegeEngineer
}
@ -120,7 +120,7 @@ public class Enum {
@@ -120,7 +120,7 @@ public class Enum {
MALE ,
FEMALE ,
FUZZY ,
OTHER ;
OTHER
}
public enum RaceType {
@ -155,13 +155,13 @@ public class Enum {
@@ -155,13 +155,13 @@ public class Enum {
VAMPFEMALE ( 2029 , MonsterType . Vampire , RunSpeed . STANDARD , CharacterSex . FEMALE , 1 ) ;
@SuppressWarnings ( "unchecked" )
private static HashMap < Integer , RaceType > _raceTypeByID = new HashMap < > ( ) ;
private static final HashMap < Integer , RaceType > _raceTypeByID = new HashMap < > ( ) ;
int runeID ;
private MonsterType monsterType ;
private CharacterSex characterSex ;
private RunSpeed runSpeed ;
private float scaleHeight ;
private final MonsterType monsterType ;
private final CharacterSex characterSex ;
private final RunSpeed runSpeed ;
private final float scaleHeight ;
RaceType ( int runeID , MonsterType aggroType , RunSpeed runspeed , CharacterSex characterSex , float scaleHeight ) {
this . runeID = runeID ;
@ -210,13 +210,13 @@ public class Enum {
@@ -210,13 +210,13 @@ public class Enum {
CENTAUR ( 6 . 1900001f , 16 . 940001f , 5 . 5500002f , 16 . 940001f , 6 . 3299999f , 18 . 379999f , 6 . 5f ) ,
MINOTAUR ( 6 . 6300001f , 15 . 95f , 4 . 2199998f , 15 . 95f , 6 . 3299999f , 18 . 379999f , 6 . 5f ) ;
private float walkStandard ;
private float walkCombat ;
private float runStandard ;
private float runCombat ;
private float swim ;
private float flyRun ;
private float flyWalk ;
private final float walkStandard ;
private final float walkCombat ;
private final float runStandard ;
private final float runCombat ;
private final float swim ;
private final float flyRun ;
private final float flyWalk ;
RunSpeed ( float walkStandard , float runStandard , float walkCombat , float runCombat , float flyWalk , float flyRun , float swim ) {
this . walkStandard = walkStandard ;
@ -310,13 +310,13 @@ public class Enum {
@@ -310,13 +310,13 @@ public class Enum {
public enum PvpHistoryType {
KILLS ,
DEATHS ;
DEATHS
}
public enum ChatMessageType {
ERROR ,
INFO ,
MOTD ;
MOTD
}
public enum DataRecordType {
@ -327,7 +327,7 @@ public class Enum {
@@ -327,7 +327,7 @@ public class Enum {
CITY ,
ZONE ,
REALM ,
MINE ;
MINE
}
public enum RecordEventType {
@ -338,7 +338,7 @@ public class Enum {
@@ -338,7 +338,7 @@ public class Enum {
TRANSFER ,
PENDING ,
DEFEND ,
LOST ; // Realm event
LOST // Realm event
}
public enum CharterType {
@ -346,8 +346,8 @@ public class Enum {
@@ -346,8 +346,8 @@ public class Enum {
MERCANTILE ( - 15978914 , 5060400 ) ,
BELLIGERENT ( 762228431 , 5060800 ) ;
private int charterID ;
private int meshID ;
private final int charterID ;
private final int meshID ;
CharterType ( int charterID , int meshID ) {
this . charterID = charterID ;
@ -402,7 +402,7 @@ public class Enum {
@@ -402,7 +402,7 @@ public class Enum {
Npc ,
PlayerCharacter ,
Account ,
Mob ;
Mob
}
public enum SiegePhase {
@ -410,20 +410,20 @@ public class Enum {
@@ -410,20 +410,20 @@ public class Enum {
CHALLENGE ,
STANDOFF ,
WAR ,
CEASEFIRE ;
CEASEFIRE
}
public enum SiegeResult {
PENDING ,
DEFEND ,
DESTROY ,
CAPTURE ;
CAPTURE
}
public enum TaxType {
PROFIT ,
WEEKLY ,
NONE ;
NONE
}
@ -1261,7 +1261,7 @@ public class Enum {
@@ -1261,7 +1261,7 @@ public class Enum {
SITTING ,
RUNNING ,
FLYING ,
SWIMMING ;
SWIMMING
}
public enum DoorState {
@ -1269,7 +1269,7 @@ public class Enum {
@@ -1269,7 +1269,7 @@ public class Enum {
OPEN ,
CLOSED ,
LOCKED ,
UNLOCKED ;
UNLOCKED
}
// Used with stored procedure GET_UID_ENUM() for
@ -1290,11 +1290,9 @@ public class Enum {
@@ -1290,11 +1290,9 @@ public class Enum {
SHRINE ,
WORLDSERVER ,
ZONE ,
WAREHOUSE ;
WAREHOUSE
}
;
/ * *
* Enumeration of Building Protection Status stored in the database as a
* mysql enumfield . WARNING : This enumeration is fragile . Do not rename . Do
@ -1309,11 +1307,64 @@ public class Enum {
@@ -1309,11 +1307,64 @@ public class Enum {
CONTRACT ,
DESTROYED ,
PENDING ,
NPC ;
NPC
}
public enum DisciplineType {
Alchemist ,
Animator ,
Archer ,
Berserker ,
BlackMask ,
Blacksmith ,
BladeMaster ,
BladeWeaver ,
BloodProphet ,
BountyHunter ,
Clanwarden ,
Commander ,
DarkKnight ,
Duelist ,
ForgeMaster ,
GiantKiller ,
Gladiator ,
Huntsman ,
Knight ,
RatCatcher ,
RuneCaster ,
Enchanter ,
StormLord ,
Summoner ,
Sundancer ,
Trainer ,
Traveler ,
UndeadHunter ,
Werebear ,
Wererat ,
Werewolf ,
Wyrmslayer ,
Conjurer ,
Darksworn ,
Valkyr ,
BloodHorn ,
Shroudborne ,
Archmage ,
Thrall ,
Artillerist ,
Savant ,
SkyDancer ,
Prospector ,
Belgosch ,
Drannok ,
Gorgoi ,
Strigoi ,
Sapper ,
Saboteur ,
BattleMagus ,
Sanctifier ,
}
;
public enum CharacterSkills {
Archery ( ( 1L < < 1 ) , - 529201545 , 20 ) ,
@ -1382,7 +1433,7 @@ public class Enum {
@@ -1382,7 +1433,7 @@ public class Enum {
private long flag ;
private int token ;
private int reqLvl ;
private final int reqLvl ;
CharacterSkills ( long flag , int token , int reqLvl ) {
this . flag = flag ;
@ -1421,8 +1472,6 @@ public class Enum {
@@ -1421,8 +1472,6 @@ public class Enum {
}
}
;
public enum GuildHistoryType {
JOIN ( 1 ) ,
LEAVE ( 4 ) ,
@ -1443,17 +1492,14 @@ public class Enum {
@@ -1443,17 +1492,14 @@ public class Enum {
public enum SexType {
NONE ,
MALE ,
FEMALE ;
FEMALE
}
public enum ClassType {
FIGHTER ,
HEALER ,
ROGUE ,
MAGE ;
}
public enum PromoteType {
Fighter ( SexType . NONE ) ,
Healer ( SexType . NONE ) ,
Rogue ( SexType . NONE ) ,
Mage ( SexType . NONE ) ,
Assassin ( SexType . NONE ) ,
Barbarian ( SexType . NONE ) ,
Bard ( SexType . NONE ) ,
@ -1478,9 +1524,9 @@ public class Enum {
@@ -1478,9 +1524,9 @@ public class Enum {
Necromancer ( SexType . NONE ) ,
;
private SexType sexRestriction ;
private final SexType sexRestriction ;
Promote Type( SexType sexRestriction ) {
Class Type( SexType sexRestriction ) {
this . sexRestriction = sexRestriction ;
}
@ -1660,13 +1706,13 @@ public class Enum {
@@ -1660,13 +1706,13 @@ public class Enum {
REGEN ,
FLIGHT ,
LOCATION ,
MOVEMENTSTATE ;
MOVEMENTSTATE
}
public enum ServerType {
WORLDSERVER ,
LOGINSERVER ,
NONE ;
NONE
}
public enum ChatChannel implements EnumBitSetHelper < ChatChannel > {
@ -1720,7 +1766,7 @@ public class Enum {
@@ -1720,7 +1766,7 @@ public class Enum {
Thief ,
Warlock ,
Warrior ,
Wizard ;
Wizard
}
@ -1728,13 +1774,13 @@ public class Enum {
@@ -1728,13 +1774,13 @@ public class Enum {
RecommendedAlly ,
RecommendedEnemy ,
Ally ,
Enemy ;
Enemy
}
public enum FriendStatus {
Available ,
Away ,
Busy ;
Busy
}
public enum ProfitType {
@ -1749,7 +1795,7 @@ public class Enum {
@@ -1749,7 +1795,7 @@ public class Enum {
public String dbField ;
private ProfitType ( String dbField ) {
ProfitType ( String dbField ) {
this . dbField = dbField ;
}
}
@ -1842,17 +1888,15 @@ public class Enum {
@@ -1842,17 +1888,15 @@ public class Enum {
WorldServerInfoSnapshot ,
Shrine ,
Zone ,
Transaction ;
Transaction
}
public enum ContainerType {
BANK ,
INVENTORY ,
VAULT ;
VAULT
}
;
public enum CompoundCurveType {
DefaultFlat ( 0 ) ,
DefaultSlope ( 1 ) ,
@ -2160,7 +2204,7 @@ public class Enum {
@@ -2160,7 +2204,7 @@ public class Enum {
private final double value ;
private CompoundCurveType ( double value ) {
CompoundCurveType ( double value ) {
this . value = value ;
}
@ -2183,7 +2227,7 @@ public class Enum {
@@ -2183,7 +2227,7 @@ public class Enum {
Sit ,
TakeDamage ,
TerritoryClaim ,
UnEquip ;
UnEquip
}
public enum PowerSubType {
@ -2193,7 +2237,7 @@ public class Enum {
@@ -2193,7 +2237,7 @@ public class Enum {
DamageType1 ,
DamageType2 ,
DamageType3 ,
Cancel ;
Cancel
}
public enum PowerCategoryType {
@ -2228,7 +2272,7 @@ public class Enum {
@@ -2228,7 +2272,7 @@ public class Enum {
RECALL ,
SPIREPROOFTELEPORT ,
SPIREDISABLE ,
THIEF ;
THIEF
}
public enum PowerTargetType {
@ -2247,7 +2291,7 @@ public class Enum {
@@ -2247,7 +2291,7 @@ public class Enum {
JEWELRY ,
WEAPONARMOR ,
ARMOR ,
ITEM ;
ITEM
}
public enum objectMaskType {
@ -2280,7 +2324,7 @@ public class Enum {
@@ -2280,7 +2324,7 @@ public class Enum {
BANK ,
VAULT ,
FORGE ,
WAREHOUSE ;
WAREHOUSE
}
public enum ItemSlotType implements EnumBitSetHelper < ItemSlotType > {
@ -2301,7 +2345,7 @@ public class Enum {
@@ -2301,7 +2345,7 @@ public class Enum {
UPARM ,
WINGS ,
BEARD ,
HAIR ;
HAIR
}
public enum CityBoundsType {
@ -2317,8 +2361,12 @@ public class Enum {
@@ -2317,8 +2361,12 @@ public class Enum {
}
}
public enum GuildType {
NONE ( "None" , new String [ ] [ ] { { "None" } } , new String [ ] { "Thearchy" , "Common Rule" , "Theocracy" , "Republic Rule" } ) ,
public enum GuildCharterType {
NONE ( "None" , new String [ ] [ ] { { "None" } } , new String [ ] { "Thearchy" , "Common Rule" , "Theocracy" , "Republic Rule" } ,
EnumSet . noneOf ( ClassType . class ) ,
EnumSet . noneOf ( MonsterType . class ) ,
EnumSet . noneOf ( SexType . class ) ) ,
CATHEDRAL ( "Church of the All-Father" , new String [ ] [ ] {
{ "Acolyte" , "Acolyte" } ,
{ "Catechist" } ,
@ -2328,7 +2376,12 @@ public class Enum {
@@ -2328,7 +2376,12 @@ public class Enum {
{ "Bishop" , "Bishop" } ,
{ "Lord Cardinal" , "Lady Cardinal" } ,
{ "Patriarch" , "Matriarch" } } ,
new String [ ] { "Thearchy" , "Common Rule" , "Theocracy" , "Republic Rule" } ) ,
new String [ ] { "Thearchy" , "Common Rule" , "Theocracy" , "Republic Rule" } ,
EnumSet . of ( ClassType . Bard , ClassType . Channeler , ClassType . Crusader , ClassType . Nightstalker ,
ClassType . Prelate , ClassType . Priest , ClassType . Sentinel , ClassType . Scout ) ,
EnumSet . of ( MonsterType . Aelfborn , MonsterType . Centaur , MonsterType . Elf , MonsterType . HalfGiant ,
MonsterType . Human ) ,
EnumSet . allOf ( SexType . class ) ) ,
MILITARY ( "Military" , new String [ ] [ ] {
{ "Recruit" } ,
{ "Footman" } ,
@ -2338,7 +2391,11 @@ public class Enum {
@@ -2338,7 +2391,11 @@ public class Enum {
{ "Captain" } ,
{ "General" } ,
{ "Lord Marshall" , "Lady Marshall" } } ,
new String [ ] { "Autocracy" , "Common Rule" , "Council Rule" , "Militocracy" } ) ,
new String [ ] { "Autocracy" , "Common Rule" , "Council Rule" , "Militocracy" } ,
EnumSet . of ( ClassType . Bard , ClassType . Priest , ClassType . Scout , ClassType . Warlock ,
ClassType . Warrior , ClassType . Wizard ) ,
EnumSet . of ( MonsterType . Centaur , MonsterType . HalfGiant , MonsterType . Human ) ,
EnumSet . allOf ( SexType . class ) ) ,
TEMPLE ( "Temple of the Cleansing Flame" , new String [ ] [ ] {
{ "Aspirant" } ,
{ "Novice" } ,
@ -2349,7 +2406,11 @@ public class Enum {
@@ -2349,7 +2406,11 @@ public class Enum {
{ "Lictor" } ,
{ "Justiciar" } ,
{ "Pontifex" , "Pontifectrix" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Protectorship" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Protectorship" , "Republic Rule" } ,
EnumSet . of ( ClassType . Assassin , ClassType . Bard , ClassType . Channeler , ClassType . Confessor ,
ClassType . Nightstalker , ClassType . Priest , ClassType . Scout , ClassType . Templar ) ,
EnumSet . of ( MonsterType . HalfGiant , MonsterType . Human ) ,
EnumSet . allOf ( SexType . class ) ) ,
BARBARIAN ( "Barbarian Clan" , new String [ ] [ ] {
{ "Barbarian" } ,
{ "Skald" } ,
@ -2358,7 +2419,11 @@ public class Enum {
@@ -2358,7 +2419,11 @@ public class Enum {
{ "Jarl" } ,
{ "Chieftain" } ,
{ "Thane" } } ,
new String [ ] { "Chiefdom" , "Common Rule" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Chiefdom" , "Common Rule" , "Council Rule" , "Republic Rule" } ,
EnumSet . of ( ClassType . Barbarian , ClassType . Bard , ClassType . Doomsayer , ClassType . Fury ,
ClassType . Priest , ClassType . Scout , ClassType . Thief , ClassType . Warrior ) ,
EnumSet . of ( MonsterType . Aelfborn , MonsterType . HalfGiant , MonsterType . Human , MonsterType . Minotaur ) ,
EnumSet . allOf ( SexType . class ) ) ,
RANGER ( "Ranger's Brotherhood" , new String [ ] [ ] {
{ "Yeoman" } ,
{ "Pathfinder" } ,
@ -2367,7 +2432,11 @@ public class Enum {
@@ -2367,7 +2432,11 @@ public class Enum {
{ "Protector" } ,
{ "Guardian" } ,
{ "Lord Protector" , "Lady Protector" } } ,
new String [ ] { "Despot Rule" , "Collectivism" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Collectivism" , "Council Rule" , "Republic Rule" } ,
EnumSet . of ( ClassType . Bard , ClassType . Channeler , ClassType . Druid , ClassType . Priest ,
ClassType . Ranger , ClassType . Scout , ClassType . Warrior ) ,
EnumSet . of ( MonsterType . Aelfborn , MonsterType . Elf , MonsterType . HalfGiant , MonsterType . Human , MonsterType . Shade ) ,
EnumSet . allOf ( SexType . class ) ) ,
AMAZON ( "Amazon Temple" , new String [ ] [ ] {
{ "Amazon Thrall" , "Amazon" } ,
{ "Amazon Slave" , "Amazon Warrior" } ,
@ -2375,7 +2444,11 @@ public class Enum {
@@ -2375,7 +2444,11 @@ public class Enum {
{ "Amazon Consort" , "Amazon Princess" } ,
{ "Amazon Seneschal" , "Majestrix" } ,
{ "Amazon Regent" , "Imperatrix" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Gynarchy" , "Gynocracy" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Gynarchy" , "Gynocracy" } ,
EnumSet . of ( ClassType . Bard , ClassType . Druid , ClassType . Fury , ClassType . Huntress ,
ClassType . Priest , ClassType . Scout , ClassType . Warrior , ClassType . Wizard ) ,
EnumSet . of ( MonsterType . Aelfborn , MonsterType . Elf , MonsterType . HalfGiant , MonsterType . Human ) ,
EnumSet . of ( SexType . FEMALE ) ) ,
NOBLE ( "Noble House" , new String [ ] [ ] {
{ "Serf" } ,
{ "Vassal" } ,
@ -2386,7 +2459,11 @@ public class Enum {
@@ -2386,7 +2459,11 @@ public class Enum {
{ "Duke" , "Duchess" } ,
{ "King" , "Queen" } ,
{ "Emperor" , "Empress" } } ,
new String [ ] { "Monarchy" , "Common Rule" , "Feodality" , "Republic" } ) ,
new String [ ] { "Monarchy" , "Common Rule" , "Feodality" , "Republic" } ,
EnumSet . of ( ClassType . Assassin , ClassType . Bard , ClassType . Channeler , ClassType . Priest ,
ClassType . Scout , ClassType . Thief , ClassType . Warlock , ClassType . Warrior , ClassType . Wizard ) ,
EnumSet . of ( MonsterType . Aelfborn , MonsterType . HalfGiant , MonsterType . Human ) ,
EnumSet . allOf ( SexType . class ) ) ,
WIZARD ( "Wizard's Conclave" , new String [ ] [ ] {
{ "Apprentice" } ,
{ "Neophyte" } ,
@ -2395,7 +2472,11 @@ public class Enum {
@@ -2395,7 +2472,11 @@ public class Enum {
{ "Magus" } ,
{ "High Magus" } ,
{ "Archmagus" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Magocracy" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Magocracy" } ,
EnumSet . of ( ClassType . Assassin , ClassType . Bard , ClassType . Channeler , ClassType . Doomsayer ,
ClassType . Fury , ClassType . Necromancer , ClassType . Priest , ClassType . Warlock , ClassType . Wizard ) ,
EnumSet . of ( MonsterType . Aelfborn , MonsterType . Elf , MonsterType . Human , MonsterType . Nephilim , MonsterType . Shade ) ,
EnumSet . allOf ( SexType . class ) ) ,
MERCENARY ( "Mercenary Company" , new String [ ] [ ] {
{ "Soldier" } ,
{ "Man-at-Arms" } ,
@ -2405,7 +2486,11 @@ public class Enum {
@@ -2405,7 +2486,11 @@ public class Enum {
{ "Commander" } ,
{ "High Commander" } ,
{ "Warlord" } } ,
new String [ ] { "Magistrature" , "Mob Law" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Magistrature" , "Mob Law" , "Council Rule" , "Republic Rule" } ,
EnumSet . of ( ClassType . Assassin , ClassType . Bard , ClassType . Priest , ClassType . Scout ,
ClassType . Thief , ClassType . Warlock , ClassType . Warrior ) ,
EnumSet . of ( MonsterType . Aelfborn , MonsterType . Aracoix , MonsterType . HalfGiant , MonsterType . Human , MonsterType . Shade ) ,
EnumSet . allOf ( SexType . class ) ) ,
THIEVES ( "Thieve's Den" , new String [ ] [ ] {
{ "Urchin" } ,
{ "Footpad" } ,
@ -2416,7 +2501,12 @@ public class Enum {
@@ -2416,7 +2501,12 @@ public class Enum {
{ "Treasurer" } ,
{ "Grandmaster Thief" } ,
{ "Grandfather" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Oligarchy" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Oligarchy" , "Republic Rule" } ,
EnumSet . of ( ClassType . Assassin , ClassType . Barbarian , ClassType . Bard , ClassType . Priest ,
ClassType . Scout , ClassType . Thief , ClassType . Wizard ) ,
EnumSet . of ( MonsterType . Aelfborn , MonsterType . Aracoix , MonsterType . Elf , MonsterType . Human , MonsterType . Irekei ,
MonsterType . Nephilim , MonsterType . Shade , MonsterType . Vampire ) ,
EnumSet . allOf ( SexType . class ) ) ,
DWARF ( "Dwarf Hold" , new String [ ] [ ] {
{ "Citizen" } ,
{ "Master" } ,
@ -2424,7 +2514,11 @@ public class Enum {
@@ -2424,7 +2514,11 @@ public class Enum {
{ "Thane" } ,
{ "Great Thane" } ,
{ "High Thane" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ,
EnumSet . of ( ClassType . Crusader , ClassType . Prelate , ClassType . Priest , ClassType . Sentinel ,
ClassType . Warrior ) ,
EnumSet . of ( MonsterType . Dwarf ) ,
EnumSet . allOf ( SexType . class ) ) ,
HIGHCOURT ( "High Court" , new String [ ] [ ] {
{ "Eccekebe" } ,
{ "Saedulor" } ,
@ -2435,7 +2529,12 @@ public class Enum {
@@ -2435,7 +2529,12 @@ public class Enum {
{ "Dar Thaelostor" , "Dar Thaelostril" } ,
{ "Aglaeron" } ,
{ "Ellestor" , "Elestril" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ,
EnumSet . of ( ClassType . Assassin , ClassType . Bard , ClassType . Channeler , ClassType . Druid ,
ClassType . Necromancer , ClassType . Priest , ClassType . Ranger , ClassType . Scout ,
ClassType . Thief , ClassType . Warrior , ClassType . Wizard ) ,
EnumSet . of ( MonsterType . Elf , MonsterType . Minotaur ) ,
EnumSet . allOf ( SexType . class ) ) ,
VIRAKT ( "Virakt" , new String [ ] [ ] {
{ "Jov'uus" } ,
{ "Urikhan" } ,
@ -2445,7 +2544,12 @@ public class Enum {
@@ -2445,7 +2544,12 @@ public class Enum {
{ "Khal'uvho" } ,
{ "Khar'uus" } ,
{ "Kryqh'khalin" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ,
EnumSet . of ( ClassType . Assassin , ClassType . Bard , ClassType . Channeler , ClassType . Fury ,
ClassType . Huntress , ClassType . Nightstalker , ClassType . Priest , ClassType . Ranger ,
ClassType . Scout , ClassType . Thief , ClassType . Warrior , ClassType . Wizard ) ,
EnumSet . of ( MonsterType . Irekei ) ,
EnumSet . allOf ( SexType . class ) ) ,
BRIALIA ( "Coven of Brialia" , new String [ ] [ ] { // Unknown Rank names
{ "Devotee" } ,
{ "Initiated" } ,
@ -2455,7 +2559,11 @@ public class Enum {
@@ -2455,7 +2559,11 @@ public class Enum {
{ "Elder" } ,
{ "Hierophant" } ,
{ "Witch King" , "Witch Queen" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ,
EnumSet . allOf ( ClassType . class ) ,
EnumSet . allOf ( MonsterType . class ) ,
EnumSet . allOf ( SexType . class ) ) ,
UNHOLY ( "Unholy Legion" , new String [ ] [ ] { // Unknown Rank names
{ "Footman" } ,
{ "Fell Legionaire" } ,
@ -2465,14 +2573,23 @@ public class Enum {
@@ -2465,14 +2573,23 @@ public class Enum {
{ "Dark Master" , "Dark Mistress" } ,
{ "Dread Master" , "Dread Mistress" } ,
{ "Dread Lord" , "Dread Lady" } } ,
new String [ ] { "Despot Rule" , "Despot Rule" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Despot Rule" , "Council Rule" , "Republic Rule" } ,
EnumSet . of ( ClassType . Assassin , ClassType . Channeler , ClassType . Necromancer , ClassType . Priest ,
ClassType . Scout , ClassType . Thief , ClassType . Warlock , ClassType . Warrior ,
ClassType . Wizard ) ,
EnumSet . of ( MonsterType . Human , MonsterType . Shade , MonsterType . Vampire ) ,
EnumSet . allOf ( SexType . class ) ) ,
SCOURGE ( "Cult of the Scourge" , new String [ ] [ ] {
{ "Thrall" } ,
{ "Mudir" } ,
{ "Dark Brother" , "Dark Sister" } ,
{ "Hand of the Dark" } ,
{ "Dark Father" , "Dark Mother" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ,
EnumSet . of ( ClassType . Bard , ClassType . Channeler , ClassType . Doomsayer , ClassType . Priest ,
ClassType . Scout , ClassType . Warrior , ClassType . Wizard ) ,
EnumSet . of ( MonsterType . Aelfborn , MonsterType . Human , MonsterType . Minotaur , MonsterType . Nephilim ) ,
EnumSet . allOf ( SexType . class ) ) ,
PIRATE ( "Pirate Crew" , new String [ ] [ ] {
{ "Midshipman" , "Midshipwoman" } ,
{ "Sailor" } ,
@ -2480,7 +2597,10 @@ public class Enum {
@@ -2480,7 +2597,10 @@ public class Enum {
{ "Second Mat" } ,
{ "First Mate" } ,
{ "Captain" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ,
EnumSet . allOf ( ClassType . class ) ,
EnumSet . allOf ( MonsterType . class ) ,
EnumSet . allOf ( SexType . class ) ) ,
HERALD ( "Academy of Heralds" , new String [ ] [ ] {
{ "Pupil" } ,
{ "Scribe" } ,
@ -2490,7 +2610,10 @@ public class Enum {
@@ -2490,7 +2610,10 @@ public class Enum {
{ "Scholar" } ,
{ "Archivist" } ,
{ "Loremaster" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ,
EnumSet . allOf ( ClassType . class ) ,
EnumSet . allOf ( MonsterType . class ) ,
EnumSet . allOf ( SexType . class ) ) ,
CENTAUR ( "Centaur Cohort" , new String [ ] [ ] {
{ "Hoplite" } ,
{ "Peltast" } ,
@ -2500,7 +2623,12 @@ public class Enum {
@@ -2500,7 +2623,12 @@ public class Enum {
{ "Septenrion" } ,
{ "Praetorian" } ,
{ "Paragon" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ) ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ,
EnumSet . of ( ClassType . Barbarian , ClassType . Crusader , ClassType . Druid , ClassType . Huntress ,
ClassType . Prelate , ClassType . Priest , ClassType . Ranger , ClassType . Sentinel ,
ClassType . Warrior ) ,
EnumSet . of ( MonsterType . Centaur ) ,
EnumSet . allOf ( SexType . class ) ) ,
KHREE ( "Aracoix Kh'ree" , new String [ ] [ ] {
{ "Duriacor" } ,
{ "Exarch" } ,
@ -2512,101 +2640,108 @@ public class Enum {
@@ -2512,101 +2640,108 @@ public class Enum {
{ "Erentar" } ,
{ "Araceos" } ,
{ "Hierarch" } } ,
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ) ;
new String [ ] { "Despot Rule" , "Common Rule" , "Council Rule" , "Republic Rule" } ,
EnumSet . of ( ClassType . Assassin , ClassType . Barbarian , ClassType . Bard , ClassType . Huntress ,
ClassType . Priest , ClassType . Ranger , ClassType . Scout , ClassType . Thief ,
ClassType . Warlock , ClassType . Warrior ) ,
EnumSet . of ( MonsterType . Aracoix ) ,
EnumSet . allOf ( SexType . class ) ) ;
public final EnumSet < ClassType > requiredClasses ;
public final EnumSet < MonsterType > requiredRaces ;
public final EnumSet < SexType > sexRequired ;
private final String name ;
private final String [ ] [ ] ranks ; //Stored Rank#->Gender(M,F)
private final String [ ] leadershipTypes ;
GuildType ( String name , String [ ] [ ] ranks , String [ ] leadershipTypes ) {
GuildCharterType ( String name , String [ ] [ ] ranks , String [ ] leadershipTypes , EnumSet < ClassType > requiredClasses ,
EnumSet < MonsterType > requiredRaces , EnumSet < SexType > sexRequired ) {
this . name = name ;
this . ranks = ranks ;
this . leadershipTypes = leadershipTypes ;
this . requiredClasses = requiredClasses ;
this . requiredRaces = requiredRaces ;
this . sexRequired = sexRequired ;
}
public static GuildType getGuildTypeFromCharter ( ItemBase itemBase ) {
public static GuildCharter Type getGuildTypeFromCharter ( ItemBase itemBase ) {
GuildType charterType ;
GuildCharter Type charterType ;
// Must be a valid charter object
if ( itemBase . getType ( ) . equals ( ItemType . GUILDCHARTER ) = = false )
return GuildType . NONE ; //No guild Type
// No switches on long in java. Cast to int
// when refactor to long uuid's. Loss won't matter
// with values this small.
return GuildCharterType . NONE ; //No guild Type
switch ( itemBase . getUUID ( ) ) {
case 559 :
charterType = GuildType . CATHEDRAL ;
charterType = GuildCharter Type . CATHEDRAL ;
break ;
case 560 :
charterType = GuildType . MILITARY ;
charterType = GuildCharter Type . MILITARY ;
break ;
case 561 :
charterType = GuildType . TEMPLE ;
charterType = GuildCharter Type . TEMPLE ;
break ;
case 562 :
charterType = GuildType . BARBARIAN ;
charterType = GuildCharter Type . BARBARIAN ;
break ;
case 563 :
charterType = GuildType . RANGER ;
charterType = GuildCharter Type . RANGER ;
break ;
case 564 :
charterType = GuildType . AMAZON ;
charterType = GuildCharter Type . AMAZON ;
break ;
case 565 :
charterType = GuildType . NOBLE ;
charterType = GuildCharter Type . NOBLE ;
break ;
case 566 :
charterType = GuildType . WIZARD ;
charterType = GuildCharter Type . WIZARD ;
break ;
case 567 :
charterType = GuildType . MERCENARY ;
charterType = GuildCharter Type . MERCENARY ;
break ;
case 568 :
charterType = GuildType . THIEVES ;
charterType = GuildCharter Type . THIEVES ;
break ;
case 569 :
charterType = GuildType . DWARF ;
charterType = GuildCharter Type . DWARF ;
break ;
case 570 :
charterType = GuildType . HIGHCOURT ;
charterType = GuildCharter Type . HIGHCOURT ;
break ;
case 571 :
charterType = GuildType . VIRAKT ;
charterType = GuildCharter Type . VIRAKT ;
break ;
case 572 :
charterType = GuildType . SCOURGE ;
charterType = GuildCharter Type . SCOURGE ;
break ;
case 573 :
charterType = GuildType . KHREE ;
charterType = GuildCharter Type . KHREE ;
break ;
case 574 :
charterType = GuildType . CENTAUR ;
charterType = GuildCharter Type . CENTAUR ;
break ;
case 575 :
charterType = GuildType . UNHOLY ;
charterType = GuildCharter Type . UNHOLY ;
break ;
case 576 :
charterType = GuildType . PIRATE ;
charterType = GuildCharter Type . PIRATE ;
break ;
case 577 :
charterType = GuildType . BRIALIA ;
charterType = GuildCharter Type . BRIALIA ;
break ;
default :
charterType = GuildType . HERALD ;
charterType = GuildCharter Type . HERALD ;
}
return charterType ;
}
public static GuildType getGuildTypeFromInt ( int i ) {
return GuildType . values ( ) [ i ] ;
public static GuildCharter Type getGuildTypeFromInt ( int i ) {
return GuildCharter Type . values ( ) [ i ] ;
}
public String getCharterName ( ) {
@ -2632,12 +2767,15 @@ public class Enum {
@@ -2632,12 +2767,15 @@ public class Enum {
return leadershipTypes [ i ] ;
}
public boolean canJoin ( AbstractCharacter character ) {
return this . requiredRaces . contains ( character . absRace ) & & this . requiredClasses . contains ( character . absPromotionClass ) & & this . sexRequired . contains ( character . absGender ) ;
}
}
public enum MinionClass {
MELEE ,
ARCHER ,
MAGE ;
MAGE
}
public enum MinionType {
@ -2707,14 +2845,14 @@ public class Enum {
@@ -2707,14 +2845,14 @@ public class Enum {
return race ;
}
public Boolean isMage ( ) {
public Boolean isMage ( ) {
return this . minionClass . ordinal ( ) = = MinionClass . MAGE . ordinal ( ) ;
}
}
public enum GridObjectType {
STATIC ,
DYNAMIC ;
DYNAMIC
}
public enum SupportMsgType {
@ -2817,7 +2955,7 @@ public class Enum {
@@ -2817,7 +2955,7 @@ public class Enum {
public enum AccountStatus {
BANNED ,
ACTIVE ,
ADMIN ;
ADMIN
}
public enum MobBehaviourType {
@ -2882,6 +3020,6 @@ public class Enum {
@@ -2882,6 +3020,6 @@ public class Enum {
GUARDWALLARCHER ,
PET ,
CHARMED ,
SIEGEENGINE ;
SIEGEENGINE
}
}