@ -2318,8 +2318,10 @@ public class Enum {
@@ -2318,8 +2318,10 @@ 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 ( PromoteType . class ) ) ,
CATHEDRAL ( "Church of the All-Father" , new String [ ] [ ] {
{ "Acolyte" , "Acolyte" } ,
{ "Catechist" } ,
@ -2329,7 +2331,9 @@ public class Enum {
@@ -2329,7 +2331,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
MILITARY ( "Military" , new String [ ] [ ] {
{ "Recruit" } ,
{ "Footman" } ,
@ -2339,7 +2343,9 @@ public class Enum {
@@ -2339,7 +2343,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
TEMPLE ( "Temple of the Cleansing Flame" , new String [ ] [ ] {
{ "Aspirant" } ,
{ "Novice" } ,
@ -2350,7 +2356,9 @@ public class Enum {
@@ -2350,7 +2356,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
BARBARIAN ( "Barbarian Clan" , new String [ ] [ ] {
{ "Barbarian" } ,
{ "Skald" } ,
@ -2359,7 +2367,9 @@ public class Enum {
@@ -2359,7 +2367,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
RANGER ( "Ranger's Brotherhood" , new String [ ] [ ] {
{ "Yeoman" } ,
{ "Pathfinder" } ,
@ -2368,7 +2378,9 @@ public class Enum {
@@ -2368,7 +2378,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
AMAZON ( "Amazon Temple" , new String [ ] [ ] {
{ "Amazon Thrall" , "Amazon" } ,
{ "Amazon Slave" , "Amazon Warrior" } ,
@ -2376,7 +2388,9 @@ public class Enum {
@@ -2376,7 +2388,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
NOBLE ( "Noble House" , new String [ ] [ ] {
{ "Serf" } ,
{ "Vassal" } ,
@ -2387,7 +2401,9 @@ public class Enum {
@@ -2387,7 +2401,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
WIZARD ( "Wizard's Conclave" , new String [ ] [ ] {
{ "Apprentice" } ,
{ "Neophyte" } ,
@ -2396,7 +2412,9 @@ public class Enum {
@@ -2396,7 +2412,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
MERCENARY ( "Mercenary Company" , new String [ ] [ ] {
{ "Soldier" } ,
{ "Man-at-Arms" } ,
@ -2406,7 +2424,9 @@ public class Enum {
@@ -2406,7 +2424,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
THIEVES ( "Thieve's Den" , new String [ ] [ ] {
{ "Urchin" } ,
{ "Footpad" } ,
@ -2417,7 +2437,9 @@ public class Enum {
@@ -2417,7 +2437,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
DWARF ( "Dwarf Hold" , new String [ ] [ ] {
{ "Citizen" } ,
{ "Master" } ,
@ -2425,7 +2447,9 @@ public class Enum {
@@ -2425,7 +2447,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
HIGHCOURT ( "High Court" , new String [ ] [ ] {
{ "Eccekebe" } ,
{ "Saedulor" } ,
@ -2436,7 +2460,9 @@ public class Enum {
@@ -2436,7 +2460,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
VIRAKT ( "Virakt" , new String [ ] [ ] {
{ "Jov'uus" } ,
{ "Urikhan" } ,
@ -2446,7 +2472,9 @@ public class Enum {
@@ -2446,7 +2472,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
BRIALIA ( "Coven of Brialia" , new String [ ] [ ] { // Unknown Rank names
{ "Devotee" } ,
{ "Initiated" } ,
@ -2456,7 +2484,9 @@ public class Enum {
@@ -2456,7 +2484,9 @@ 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 . of ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
UNHOLY ( "Unholy Legion" , new String [ ] [ ] { // Unknown Rank names
{ "Footman" } ,
{ "Fell Legionaire" } ,
@ -2466,14 +2496,18 @@ public class Enum {
@@ -2466,14 +2496,18 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
PIRATE ( "Pirate Crew" , new String [ ] [ ] {
{ "Midshipman" , "Midshipwoman" } ,
{ "Sailor" } ,
@ -2481,7 +2515,9 @@ public class Enum {
@@ -2481,7 +2515,9 @@ 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 . of ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
HERALD ( "Academy of Heralds" , new String [ ] [ ] {
{ "Pupil" } ,
{ "Scribe" } ,
@ -2491,7 +2527,9 @@ public class Enum {
@@ -2491,7 +2527,9 @@ 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 . of ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
CENTAUR ( "Centaur Cohort" , new String [ ] [ ] {
{ "Hoplite" } ,
{ "Peltast" } ,
@ -2501,7 +2539,9 @@ public class Enum {
@@ -2501,7 +2539,9 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ,
KHREE ( "Aracoix Kh'ree" , new String [ ] [ ] {
{ "Duriacor" } ,
{ "Exarch" } ,
@ -2513,107 +2553,104 @@ public class Enum {
@@ -2513,107 +2553,104 @@ 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 ( PromoteType . Bard , PromoteType . Channeler , PromoteType . Crusader , PromoteType . Nightstalker ,
PromoteType . Prelate , PromoteType . Priest , PromoteType . Sentinel , PromoteType . Scout ) ) ;
private final String name ;
private final String [ ] [ ] ranks ; //Stored Rank#->Gender(M,F)
private final String [ ] leadershipTypes ;
public final ArrayLis t< PromoteType > requiredClasses ;
public final EnumSe t< PromoteType > requiredClasses ;
public final ArrayList < MonsterType > requiredRaces ;
public final SexType sexRequired ;
GuildType ( String name , String [ ] [ ] ranks , String [ ] leadershipTypes ) {
GuildCharter Type ( String name , String [ ] [ ] ranks , String [ ] leadershipTypes , EnumSet < PromoteType > requiredClass es ) {
this . name = name ;
this . ranks = ranks ;
this . leadershipTypes = leadershipTypes ;
this . requiredClasses = DbManager . GuildQueries . LOAD_CHARTER_CLASS_RESTRICTIONS ( this . name ) ;
this . requiredClasses = requiredClasses ;
this . requiredRaces = DbManager . GuildQueries . LOAD_CHARTER_RACE_RESTRICTIONS ( this . name ) ;
this . sexRequired = DbManager . GuildQueries . LOAD_CHARTER_SEX_RESTRICTIONS ( this . name ) ;
}
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 ( ) {