From a868d961a3b611caa25321a07b618535ec95600c Mon Sep 17 00:00:00 2001
From: mobius <8391001+MobiusDevelopment@users.noreply.github.com>
Date: Tue, 13 Jan 2015 08:17:27 +0000
Subject: [PATCH] GeoDriver sources.
---
others/L2J_GeoDriver/.classpath | 6 +
others/L2J_GeoDriver/.project | 17 +
.../org.eclipse.core.resources.prefs | 2 +
.../.settings/org.eclipse.core.runtime.prefs | 2 +
.../.settings/org.eclipse.jdt.core.prefs | 404 ++++++++++++++++++
.../.settings/org.eclipse.jdt.ui.prefs | 125 ++++++
.../.settings/org.eclipse.wst.sse.core.prefs | 3 +
.../org.eclipse.wst.validation.prefs | 12 +
others/L2J_GeoDriver/build.xml | 26 ++
.../src/com/l2jserver/geodriver/Cell.java | 50 +++
.../com/l2jserver/geodriver/GeoDriver.java | 184 ++++++++
.../src/com/l2jserver/geodriver/IBlock.java | 52 +++
.../src/com/l2jserver/geodriver/IRegion.java | 57 +++
.../geodriver/blocks/AbstractBlock.java | 54 +++
.../geodriver/blocks/ComplexBlock.java | 89 ++++
.../l2jserver/geodriver/blocks/FlatBlock.java | 64 +++
.../geodriver/blocks/MultilayerBlock.java | 196 +++++++++
.../geodriver/regions/NullRegion.java | 83 ++++
.../l2jserver/geodriver/regions/Region.java | 116 +++++
19 files changed, 1542 insertions(+)
create mode 100644 others/L2J_GeoDriver/.classpath
create mode 100644 others/L2J_GeoDriver/.project
create mode 100644 others/L2J_GeoDriver/.settings/org.eclipse.core.resources.prefs
create mode 100644 others/L2J_GeoDriver/.settings/org.eclipse.core.runtime.prefs
create mode 100644 others/L2J_GeoDriver/.settings/org.eclipse.jdt.core.prefs
create mode 100644 others/L2J_GeoDriver/.settings/org.eclipse.jdt.ui.prefs
create mode 100644 others/L2J_GeoDriver/.settings/org.eclipse.wst.sse.core.prefs
create mode 100644 others/L2J_GeoDriver/.settings/org.eclipse.wst.validation.prefs
create mode 100644 others/L2J_GeoDriver/build.xml
create mode 100644 others/L2J_GeoDriver/src/com/l2jserver/geodriver/Cell.java
create mode 100644 others/L2J_GeoDriver/src/com/l2jserver/geodriver/GeoDriver.java
create mode 100644 others/L2J_GeoDriver/src/com/l2jserver/geodriver/IBlock.java
create mode 100644 others/L2J_GeoDriver/src/com/l2jserver/geodriver/IRegion.java
create mode 100644 others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/AbstractBlock.java
create mode 100644 others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/ComplexBlock.java
create mode 100644 others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/FlatBlock.java
create mode 100644 others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/MultilayerBlock.java
create mode 100644 others/L2J_GeoDriver/src/com/l2jserver/geodriver/regions/NullRegion.java
create mode 100644 others/L2J_GeoDriver/src/com/l2jserver/geodriver/regions/Region.java
diff --git a/others/L2J_GeoDriver/.classpath b/others/L2J_GeoDriver/.classpath
new file mode 100644
index 0000000000..238369e145
--- /dev/null
+++ b/others/L2J_GeoDriver/.classpath
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/others/L2J_GeoDriver/.project b/others/L2J_GeoDriver/.project
new file mode 100644
index 0000000000..9263863954
--- /dev/null
+++ b/others/L2J_GeoDriver/.project
@@ -0,0 +1,17 @@
+
+
+ L2J_GeoDriver
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/others/L2J_GeoDriver/.settings/org.eclipse.core.resources.prefs b/others/L2J_GeoDriver/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000000..4824b80263
--- /dev/null
+++ b/others/L2J_GeoDriver/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/=UTF-8
diff --git a/others/L2J_GeoDriver/.settings/org.eclipse.core.runtime.prefs b/others/L2J_GeoDriver/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000000..f8a67de1d4
--- /dev/null
+++ b/others/L2J_GeoDriver/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\r\n
diff --git a/others/L2J_GeoDriver/.settings/org.eclipse.jdt.core.prefs b/others/L2J_GeoDriver/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000000..cb3adde926
--- /dev/null
+++ b/others/L2J_GeoDriver/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,404 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.codeComplete.argumentPrefixes=
+org.eclipse.jdt.core.codeComplete.argumentSuffixes=
+org.eclipse.jdt.core.codeComplete.fieldPrefixes=
+org.eclipse.jdt.core.codeComplete.fieldSuffixes=
+org.eclipse.jdt.core.codeComplete.localPrefixes=
+org.eclipse.jdt.core.codeComplete.localSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
+org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
+org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
+org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
+org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
+org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.doc.comment.support=enabled
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning
+org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=no_tag
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=enabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=enabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
+org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
+org.eclipse.jdt.core.compiler.problem.nullReference=warning
+org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
+org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
+org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
+org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=warning
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=warning
+org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
+org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=disabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=disabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
+org.eclipse.jdt.core.compiler.source=1.8
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=48
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=0
+org.eclipse.jdt.core.formatter.alignment_for_assignment=4
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=0
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=0
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=0
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=49
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=49
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=85
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=0
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=48
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=next_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=next_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=next_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line
+org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=next_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=do not insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
+org.eclipse.jdt.core.formatter.comment.line_length=300
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=1
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=1
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=true
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=300
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=false
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=true
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/others/L2J_GeoDriver/.settings/org.eclipse.jdt.ui.prefs b/others/L2J_GeoDriver/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 0000000000..031f483568
--- /dev/null
+++ b/others/L2J_GeoDriver/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,125 @@
+cleanup.add_default_serial_version_id=false
+cleanup.add_generated_serial_version_id=true
+cleanup.add_missing_annotations=true
+cleanup.add_missing_deprecated_annotations=true
+cleanup.add_missing_methods=true
+cleanup.add_missing_nls_tags=false
+cleanup.add_missing_override_annotations=true
+cleanup.add_missing_override_annotations_interface_methods=true
+cleanup.add_serial_version_id=true
+cleanup.always_use_blocks=true
+cleanup.always_use_parentheses_in_expressions=true
+cleanup.always_use_this_for_non_static_field_access=false
+cleanup.always_use_this_for_non_static_method_access=false
+cleanup.convert_functional_interfaces=true
+cleanup.convert_to_enhanced_for_loop=true
+cleanup.correct_indentation=false
+cleanup.format_source_code=true
+cleanup.format_source_code_changes_only=false
+cleanup.make_local_variable_final=false
+cleanup.make_parameters_final=false
+cleanup.make_private_fields_final=true
+cleanup.make_type_abstract_if_missing_method=false
+cleanup.make_variable_declarations_final=true
+cleanup.never_use_blocks=false
+cleanup.never_use_parentheses_in_expressions=false
+cleanup.organize_imports=true
+cleanup.qualify_static_field_accesses_with_declaring_class=false
+cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+cleanup.qualify_static_member_accesses_with_declaring_class=true
+cleanup.qualify_static_method_accesses_with_declaring_class=false
+cleanup.remove_private_constructors=true
+cleanup.remove_trailing_whitespaces=false
+cleanup.remove_trailing_whitespaces_all=true
+cleanup.remove_trailing_whitespaces_ignore_empty=true
+cleanup.remove_unnecessary_casts=true
+cleanup.remove_unnecessary_nls_tags=true
+cleanup.remove_unused_imports=true
+cleanup.remove_unused_local_variables=true
+cleanup.remove_unused_private_fields=true
+cleanup.remove_unused_private_members=true
+cleanup.remove_unused_private_methods=true
+cleanup.remove_unused_private_types=true
+cleanup.sort_members=false
+cleanup.sort_members_all=false
+cleanup.use_anonymous_class_creation=false
+cleanup.use_blocks=true
+cleanup.use_blocks_only_for_return_and_throw=false
+cleanup.use_lambda=true
+cleanup.use_parentheses_in_expressions=true
+cleanup.use_this_for_non_static_field_access=true
+cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+cleanup.use_this_for_non_static_method_access=true
+cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+cleanup_profile=_L2J Clean Up v0.3
+cleanup_settings_version=2
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_L2J Formatter v0.4
+formatter_settings_version=12
+org.eclipse.jdt.ui.exception.name=e
+org.eclipse.jdt.ui.gettersetter.use.is=true
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;com;gui.trove;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.keywordthis=false
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.overrideannotation=true
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=/**\r\n * @return the ${bare_field_name}\r\n *//**\r\n * @param ${param} the ${bare_field_name} to set\r\n *//**\r\n * ${tags}\r\n *//*\r\n * Copyright (C) 2004-${year} L2J Server\r\n * \r\n * This file is part of L2J Server.\r\n * \r\n * L2J Server is free software\: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n * \r\n * L2J Server is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r\n * General Public License for more details.\r\n * \r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http\://www.gnu.org/licenses/>.\r\n *//**\r\n * @author ${user}\r\n *\r\n * ${tags}\r\n *//**\r\n * \r\n *//**\r\n * ${tags}\r\n *//* (non-Javadoc)\r\n * ${see_to_overridden}\r\n *//**\r\n * ${tags}\r\n * ${see_to_target}\r\n */${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}\r\n\r\n\r\n\r\n// ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();// ${todo} Auto-generated method stub\r\n${body_statement}${body_statement}\r\n// ${todo} Auto-generated constructor stubreturn ${field};${field} \= ${param};
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=true
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_functional_interfaces=true
+sp_cleanup.convert_to_enhanced_for_loop=true
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=false
+sp_cleanup.on_save_use_additional_actions=true
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=true
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=true
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=true
+sp_cleanup.remove_unused_imports=true
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_anonymous_class_creation=false
+sp_cleanup.use_blocks=true
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_lambda=true
+sp_cleanup.use_parentheses_in_expressions=true
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/others/L2J_GeoDriver/.settings/org.eclipse.wst.sse.core.prefs b/others/L2J_GeoDriver/.settings/org.eclipse.wst.sse.core.prefs
new file mode 100644
index 0000000000..a640cfdb22
--- /dev/null
+++ b/others/L2J_GeoDriver/.settings/org.eclipse.wst.sse.core.prefs
@@ -0,0 +1,3 @@
+eclipse.preferences.version=1
+task-tags/enabled=true
+task-tags/use-project-settings=true
diff --git a/others/L2J_GeoDriver/.settings/org.eclipse.wst.validation.prefs b/others/L2J_GeoDriver/.settings/org.eclipse.wst.validation.prefs
new file mode 100644
index 0000000000..63a18689fb
--- /dev/null
+++ b/others/L2J_GeoDriver/.settings/org.eclipse.wst.validation.prefs
@@ -0,0 +1,12 @@
+DELEGATES_PREFERENCE=delegateValidatorList
+USER_BUILD_PREFERENCE=enabledBuildValidatorList
+USER_MANUAL_PREFERENCE=enabledManualValidatorList
+USER_PREFERENCE=overrideGlobalPreferencestruedisableAllValidationfalseversion1.2.400.v201204260100
+eclipse.preferences.version=1
+override=true
+suspend=false
+vals/org.eclipse.wst.dtd.core.dtdDTDValidator/global=FF01
+vals/org.eclipse.wst.html.core.HTMLValidator/global=FF01
+vals/org.eclipse.wst.html.ui.HTMLValidator/global=TF01
+vals/org.eclipse.wst.xml.core.xml/groups=0107include05111contentType128org.eclipse.core.runtime.xmlT111contentType134org.eclipse.wst.xml.core.xmlsourceT111contentType134org.eclipse.wst.xml.core.xslsourceT111contentType134org.eclipse.jst.jsp.core.tldsourceT07fileext03xmlF0107exclude08113projectNature134org.eclipse.jst.j2ee.ejb.EJBNature113projectNature130org.eclipse.jst.j2ee.EARNature04file08.projectT0104file110.classpathT0104file110.settings/T0204file03binF0204file05buildF0204file09build.xmlF01
+vf.version=3
diff --git a/others/L2J_GeoDriver/build.xml b/others/L2J_GeoDriver/build.xml
new file mode 100644
index 0000000000..1796232a56
--- /dev/null
+++ b/others/L2J_GeoDriver/build.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/others/L2J_GeoDriver/src/com/l2jserver/geodriver/Cell.java b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/Cell.java
new file mode 100644
index 0000000000..1e67de2530
--- /dev/null
+++ b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/Cell.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2004-2015 L2J Server
+ *
+ * This file is part of L2J Server.
+ *
+ * L2J Server 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * L2J Server 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, see .
+ */
+package com.l2jserver.geodriver;
+
+/**
+ * @author HorridoJoho
+ */
+public final class Cell
+{
+ /** East NSWE flag */
+ public static final byte NSWE_EAST = 1 << 0;
+ /** West NSWE flag */
+ public static final byte NSWE_WEST = 1 << 1;
+ /** South NSWE flag */
+ public static final byte NSWE_SOUTH = 1 << 2;
+ /** North NSWE flag */
+ public static final byte NSWE_NORTH = 1 << 3;
+
+ /** North-East NSWE flags */
+ public static final byte NSWE_NORTH_EAST = NSWE_NORTH | NSWE_EAST;
+ /** North-West NSWE flags */
+ public static final byte NSWE_NORTH_WEST = NSWE_NORTH | NSWE_WEST;
+ /** South-East NSWE flags */
+ public static final byte NSWE_SOUTH_EAST = NSWE_SOUTH | NSWE_EAST;
+ /** South-West NSWE flags */
+ public static final byte NSWE_SOUTH_WEST = NSWE_SOUTH | NSWE_WEST;
+
+ /** All directions NSWE flags */
+ public static final byte NSWE_ALL = NSWE_EAST | NSWE_WEST | NSWE_SOUTH | NSWE_NORTH;
+
+ private Cell()
+ {
+ }
+}
diff --git a/others/L2J_GeoDriver/src/com/l2jserver/geodriver/GeoDriver.java b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/GeoDriver.java
new file mode 100644
index 0000000000..00babff65b
--- /dev/null
+++ b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/GeoDriver.java
@@ -0,0 +1,184 @@
+/*
+ * Copyright (C) 2004-2015 L2J Server
+ *
+ * This file is part of L2J Server.
+ *
+ * L2J Server 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * L2J Server 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, see .
+ */
+package com.l2jserver.geodriver;
+
+import java.io.IOException;
+import java.io.RandomAccessFile;
+import java.nio.ByteOrder;
+import java.nio.channels.FileChannel.MapMode;
+import java.nio.file.Path;
+import java.util.concurrent.atomic.AtomicReferenceArray;
+
+import com.l2jserver.geodriver.regions.Region;
+import com.l2jserver.geodriver.regions.NullRegion;
+
+/**
+ * @author HorridoJoho
+ */
+public final class GeoDriver
+{
+ // world dimensions: 1048576 * 1048576 = 1099511627776
+ private static final int WORLD_MIN_X = -655360;
+ private static final int WORLD_MAX_X = 393215;
+ private static final int WORLD_MIN_Y = -589824;
+ private static final int WORLD_MAX_Y = 458751;
+
+ /** Regions in the world on the x axis */
+ public static final int GEO_REGIONS_X = 32;
+ /** Regions in the world on the y axis */
+ public static final int GEO_REGIONS_Y = 32;
+ /** Region in the world */
+ public static final int GEO_REGIONS = GEO_REGIONS_X * GEO_REGIONS_Y;
+
+ /** Blocks in the world on the x axis */
+ public static final int GEO_BLOCKS_X = GEO_REGIONS_X * IRegion.REGION_BLOCKS_X;
+ /** Blocks in the world on the y axis */
+ public static final int GEO_BLOCKS_Y = GEO_REGIONS_Y * IRegion.REGION_BLOCKS_Y;
+ /** Blocks in the world */
+ public static final int GEO_BLOCKS = GEO_REGIONS * IRegion.REGION_BLOCKS;
+
+ /** Cells in the world on the x axis */
+ public static final int GEO_CELLS_X = GEO_BLOCKS_X * IBlock.BLOCK_CELLS_X;
+ /** Cells in the world in the y axis */
+ public static final int GEO_CELLS_Y = GEO_BLOCKS_Y * IBlock.BLOCK_CELLS_Y;
+
+ /** The regions array */
+ private final AtomicReferenceArray _regions = new AtomicReferenceArray<>(GEO_REGIONS);
+
+ public GeoDriver()
+ {
+ for (int i = 0; i < _regions.length(); i++)
+ {
+ _regions.set(i, NullRegion.INSTANCE);
+ }
+ }
+
+ private void checkGeoX(int geoX)
+ {
+ if ((geoX < 0) || (geoX >= GEO_CELLS_X))
+ {
+ throw new IllegalArgumentException();
+ }
+ }
+
+ private void checkGeoY(int geoY)
+ {
+ if ((geoY < 0) || (geoY >= GEO_CELLS_Y))
+ {
+ throw new IllegalArgumentException();
+ }
+ }
+
+ private IRegion getRegion(int geoX, int geoY)
+ {
+ checkGeoX(geoX);
+ checkGeoY(geoY);
+ return _regions.get(((geoX / IRegion.REGION_CELLS_X) * GEO_REGIONS_Y) + (geoY / IRegion.REGION_CELLS_Y));
+ }
+
+ public void loadRegion(Path filePath, int regionX, int regionY) throws IOException
+ {
+ final int regionOffset = (regionX * GEO_REGIONS_Y) + regionY;
+
+ try (RandomAccessFile raf = new RandomAccessFile(filePath.toFile(), "r"))
+ {
+ _regions.set(regionOffset, new Region(raf.getChannel().map(MapMode.READ_ONLY, 0, raf.length()).order(ByteOrder.LITTLE_ENDIAN)));
+ }
+ }
+
+ public void unloadRegion(int regionX, int regionY)
+ {
+ _regions.set((regionX * GEO_REGIONS_Y) + regionY, NullRegion.INSTANCE);
+ }
+
+ public boolean hasGeoPos(int geoX, int geoY)
+ {
+ return getRegion(geoX, geoY).hasGeo();
+ }
+
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe)
+ {
+ return getRegion(geoX, geoY).checkNearestNswe(geoX, geoY, worldZ, nswe);
+ }
+
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe, int zDeltaLimit)
+ {
+ return getRegion(geoX, geoY).checkNearestNswe(geoX, geoY, worldZ, nswe, zDeltaLimit);
+ }
+
+ public int getNearestZ(int geoX, int geoY, int worldZ)
+ {
+ return getRegion(geoX, geoY).getNearestZ(geoX, geoY, worldZ);
+ }
+
+ public int getNearestZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return getRegion(geoX, geoY).getNearestZ(geoX, geoY, worldZ, zDeltaLimit);
+ }
+
+ public int getNextLowerZ(int geoX, int geoY, int worldZ)
+ {
+ return getRegion(geoX, geoY).getNextLowerZ(geoX, geoY, worldZ);
+ }
+
+ public int getNextLowerZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return getRegion(geoX, geoY).getNextLowerZ(geoX, geoY, worldZ, zDeltaLimit);
+ }
+
+ public int getNextHigherZ(int geoX, int geoY, int worldZ)
+ {
+ return getRegion(geoX, geoY).getNextHigherZ(geoX, geoY, worldZ);
+ }
+
+ public int getNextHigherZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return getRegion(geoX, geoY).getNextHigherZ(geoX, geoY, worldZ, zDeltaLimit);
+ }
+
+ public int getGeoX(int worldX)
+ {
+ if ((worldX < WORLD_MIN_X) || (worldX > WORLD_MAX_X))
+ {
+ throw new IllegalArgumentException();
+ }
+ return (worldX - WORLD_MIN_X) / 16;
+ }
+
+ public int getGeoY(int worldY)
+ {
+ if ((worldY < WORLD_MIN_Y) || (worldY > WORLD_MAX_Y))
+ {
+ throw new IllegalArgumentException();
+ }
+ return (worldY - WORLD_MIN_Y) / 16;
+ }
+
+ public int getWorldX(int geoX)
+ {
+ checkGeoX(geoX);
+ return (geoX * 16) + WORLD_MIN_X + 8;
+ }
+
+ public int getWorldY(int geoY)
+ {
+ checkGeoY(geoY);
+ return (geoY * 16) + WORLD_MIN_Y + 8;
+ }
+}
diff --git a/others/L2J_GeoDriver/src/com/l2jserver/geodriver/IBlock.java b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/IBlock.java
new file mode 100644
index 0000000000..6ce52da2db
--- /dev/null
+++ b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/IBlock.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2004-2015 L2J Server
+ *
+ * This file is part of L2J Server.
+ *
+ * L2J Server 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * L2J Server 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, see .
+ */
+package com.l2jserver.geodriver;
+
+/**
+ * @author HorridoJoho
+ */
+public interface IBlock
+{
+ public static final int TYPE_FLAT = 0;
+ public static final int TYPE_COMPLEX = 1;
+ public static final int TYPE_MULTILAYER = 2;
+
+ /** Cells in a block on the x axis */
+ public static final int BLOCK_CELLS_X = 8;
+ /** Cells in a block on the y axis */
+ public static final int BLOCK_CELLS_Y = 8;
+ /** Cells in a block */
+ public static final int BLOCK_CELLS = BLOCK_CELLS_X * BLOCK_CELLS_Y;
+
+ boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe);
+
+ boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe, int zDeltaLimit);
+
+ int getNearestZ(int geoX, int geoY, int worldZ);
+
+ int getNearestZ(int geoX, int geoY, int worldZ, int zDeltaLimit);
+
+ int getNextLowerZ(int geoX, int geoY, int worldZ);
+
+ int getNextLowerZ(int geoX, int geoY, int worldZ, int zDeltaLimit);
+
+ int getNextHigherZ(int geoX, int geoY, int worldZ);
+
+ int getNextHigherZ(int geoX, int geoY, int worldZ, int zDeltaLimit);
+}
diff --git a/others/L2J_GeoDriver/src/com/l2jserver/geodriver/IRegion.java b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/IRegion.java
new file mode 100644
index 0000000000..a226599dca
--- /dev/null
+++ b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/IRegion.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2004-2015 L2J Server
+ *
+ * This file is part of L2J Server.
+ *
+ * L2J Server 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * L2J Server 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, see .
+ */
+package com.l2jserver.geodriver;
+
+/**
+ * @author HorridoJoho
+ */
+public interface IRegion
+{
+ /** Blocks in a region on the x axis */
+ public static final int REGION_BLOCKS_X = 256;
+ /** Blocks in a region on the y axis */
+ public static final int REGION_BLOCKS_Y = 256;
+ /** Blocks in a region */
+ public static final int REGION_BLOCKS = REGION_BLOCKS_X * REGION_BLOCKS_Y;
+
+ /** Cells in a region on the x axis */
+ public static final int REGION_CELLS_X = REGION_BLOCKS_X * IBlock.BLOCK_CELLS_X;
+ /** Cells in a regioin on the y axis */
+ public static final int REGION_CELLS_Y = REGION_BLOCKS_Y * IBlock.BLOCK_CELLS_Y;
+ /** Cells in a region */
+ public static final int REGION_CELLS = REGION_CELLS_X * REGION_CELLS_Y;
+
+ boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe);
+
+ boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe, int zDeltaLimit);
+
+ int getNearestZ(int geoX, int geoY, int worldZ);
+
+ int getNearestZ(int geoX, int geoY, int worldZ, int zDeltaLimit);
+
+ int getNextLowerZ(int geoX, int geoY, int worldZ);
+
+ int getNextLowerZ(int geoX, int geoY, int worldZ, int zDeltaLimit);
+
+ int getNextHigherZ(int geoX, int geoY, int worldZ);
+
+ int getNextHigherZ(int geoX, int geoY, int worldZ, int zDeltaLimit);
+
+ boolean hasGeo();
+}
diff --git a/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/AbstractBlock.java b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/AbstractBlock.java
new file mode 100644
index 0000000000..3f20e1082a
--- /dev/null
+++ b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/AbstractBlock.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2004-2015 L2J Server
+ *
+ * This file is part of L2J Server.
+ *
+ * L2J Server 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * L2J Server 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, see .
+ */
+package com.l2jserver.geodriver.blocks;
+
+import com.l2jserver.geodriver.IBlock;
+
+/**
+ * @author HorridoJoho
+ */
+public abstract class AbstractBlock implements IBlock
+{
+ private int limitZ(int z, int newZ, int deltaLimit)
+ {
+ if (Math.abs(z - newZ) > deltaLimit)
+ {
+ return z;
+ }
+ return newZ;
+ }
+
+ @Override
+ public int getNearestZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return limitZ(worldZ, getNearestZ(geoX, geoY, worldZ), zDeltaLimit);
+ }
+
+ @Override
+ public int getNextLowerZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return limitZ(worldZ, getNextLowerZ(geoX, geoY, worldZ), zDeltaLimit);
+ }
+
+ @Override
+ public int getNextHigherZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return limitZ(worldZ, getNextHigherZ(geoX, geoY, worldZ), zDeltaLimit);
+ }
+}
diff --git a/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/ComplexBlock.java b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/ComplexBlock.java
new file mode 100644
index 0000000000..c9f055c6ea
--- /dev/null
+++ b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/ComplexBlock.java
@@ -0,0 +1,89 @@
+/*
+ * Copyright (C) 2004-2015 L2J Server
+ *
+ * This file is part of L2J Server.
+ *
+ * L2J Server 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * L2J Server 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, see .
+ */
+package com.l2jserver.geodriver.blocks;
+
+import java.nio.ByteBuffer;
+
+import com.l2jserver.geodriver.IBlock;
+
+/**
+ * @author HorridoJoho
+ */
+public final class ComplexBlock extends AbstractBlock
+{
+ private final short[] _data;
+
+ public ComplexBlock(ByteBuffer bb)
+ {
+ _data = new short[IBlock.BLOCK_CELLS];
+ for (int cellOffset = 0; cellOffset < IBlock.BLOCK_CELLS; cellOffset++)
+ {
+ _data[cellOffset] = bb.getShort();
+ }
+ }
+
+ private short _getCellData(int geoX, int geoY)
+ {
+ return _data[((geoX % IBlock.BLOCK_CELLS_X) * IBlock.BLOCK_CELLS_Y) + (geoY % IBlock.BLOCK_CELLS_Y)];
+ }
+
+ private byte _getCellNSWE(int geoX, int geoY)
+ {
+ return (byte) (_getCellData(geoX, geoY) & 0x000F);
+ }
+
+ private int _getCellHeight(int geoX, int geoY)
+ {
+ short height = (short) (_getCellData(geoX, geoY) & 0x0FFF0);
+ return height >> 1;
+ }
+
+ @Override
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe)
+ {
+ return (_getCellNSWE(geoX, geoY) & nswe) == nswe;
+ }
+
+ @Override
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe, int zDeltaLimit)
+ {
+ int height = _getCellHeight(geoX, geoY);
+ return Math.abs(worldZ - height) > zDeltaLimit ? true : (_getCellNSWE(geoX, geoY) & nswe) == nswe;
+ }
+
+ @Override
+ public int getNearestZ(int geoX, int geoY, int worldZ)
+ {
+ return _getCellHeight(geoX, geoY);
+ }
+
+ @Override
+ public int getNextLowerZ(int geoX, int geoY, int worldZ)
+ {
+ int cellHeight = _getCellHeight(geoX, geoY);
+ return cellHeight <= worldZ ? cellHeight : worldZ;
+ }
+
+ @Override
+ public int getNextHigherZ(int geoX, int geoY, int worldZ)
+ {
+ int cellHeight = _getCellHeight(geoX, geoY);
+ return cellHeight >= worldZ ? cellHeight : worldZ;
+ }
+}
diff --git a/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/FlatBlock.java b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/FlatBlock.java
new file mode 100644
index 0000000000..08d357d65c
--- /dev/null
+++ b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/FlatBlock.java
@@ -0,0 +1,64 @@
+/*
+ * Copyright (C) 2004-2015 L2J Server
+ *
+ * This file is part of L2J Server.
+ *
+ * L2J Server 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * L2J Server 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, see .
+ */
+package com.l2jserver.geodriver.blocks;
+
+import java.nio.ByteBuffer;
+
+/**
+ * @author HorridoJoho
+ */
+public class FlatBlock extends AbstractBlock
+{
+ private final short _height;
+
+ public FlatBlock(ByteBuffer bb)
+ {
+ _height = bb.getShort();
+ }
+
+ @Override
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe)
+ {
+ return true;
+ }
+
+ @Override
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe, int zDeltaLimit)
+ {
+ return true;
+ }
+
+ @Override
+ public int getNearestZ(int geoX, int geoY, int worldZ)
+ {
+ return _height;
+ }
+
+ @Override
+ public int getNextLowerZ(int geoX, int geoY, int worldZ)
+ {
+ return _height <= worldZ ? _height : worldZ;
+ }
+
+ @Override
+ public int getNextHigherZ(int geoX, int geoY, int worldZ)
+ {
+ return _height >= worldZ ? _height : worldZ;
+ }
+}
diff --git a/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/MultilayerBlock.java b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/MultilayerBlock.java
new file mode 100644
index 0000000000..d9ac69b760
--- /dev/null
+++ b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/blocks/MultilayerBlock.java
@@ -0,0 +1,196 @@
+/*
+ * Copyright (C) 2004-2015 L2J Server
+ *
+ * This file is part of L2J Server.
+ *
+ * L2J Server 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * L2J Server 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, see .
+ */
+package com.l2jserver.geodriver.blocks;
+
+import java.nio.ByteBuffer;
+
+import com.l2jserver.geodriver.IBlock;
+
+/**
+ * @author FBIagent
+ */
+public class MultilayerBlock extends AbstractBlock
+{
+ private final byte[] _data;
+
+ /**
+ * Initializes a new instance of this block reading the specified buffer.
+ * @param bb the buffer
+ */
+ public MultilayerBlock(ByteBuffer bb)
+ {
+ int start = bb.position();
+
+ for (int blockCellOffset = 0; blockCellOffset < IBlock.BLOCK_CELLS; blockCellOffset++)
+ {
+ byte nLayers = bb.get();
+ if ((nLayers <= 0) || (nLayers > 125))
+ {
+ throw new RuntimeException("L2JGeoDriver: Geo file corrupted! Invalid layers count!");
+ }
+
+ bb.position(bb.position() + (nLayers * 2));
+ }
+
+ _data = new byte[bb.position() - start];
+ bb.position(start);
+ bb.get(_data);
+ }
+
+ private short _getNearestLayer(int geoX, int geoY, int worldZ)
+ {
+ int startOffset = _getCellDataOffset(geoX, geoY);
+ byte nLayers = _data[startOffset];
+ int endOffset = startOffset + 1 + (nLayers * 2);
+
+ // 1 layer at least was required on loading so this is set at least once on the loop below
+ int nearestDZ = 0;
+ short nearestData = 0;
+ for (int offset = startOffset + 1; offset < endOffset; offset += 2)
+ {
+ short layerData = _extractLayerData(offset);
+ int layerZ = _extractLayerHeight(layerData);
+ if (layerZ == worldZ)
+ {
+ // exact z
+ return layerData;
+ }
+
+ int layerDZ = Math.abs(layerZ - worldZ);
+ if ((offset == (startOffset + 1)) || (layerDZ < nearestDZ))
+ {
+ nearestDZ = layerDZ;
+ nearestData = layerData;
+ }
+ }
+
+ return nearestData;
+ }
+
+ private int _getCellDataOffset(int geoX, int geoY)
+ {
+ int cellLocalOffset = ((geoX % IBlock.BLOCK_CELLS_X) * IBlock.BLOCK_CELLS_Y) + (geoY % IBlock.BLOCK_CELLS_Y);
+ int cellDataOffset = 0;
+ // move index to cell, we need to parse on each request, OR we parse on creation and save indexes
+ for (int i = 0; i < cellLocalOffset; i++)
+ {
+ cellDataOffset += 1 + (_data[cellDataOffset] * 2);
+ }
+ // now the index points to the cell we need
+
+ return cellDataOffset;
+ }
+
+ private short _extractLayerData(int dataOffset)
+ {
+ return (short) ((_data[dataOffset] & 0xFF) | (_data[dataOffset + 1] << 8));
+ }
+
+ private int _getNearestNSWE(int geoX, int geoY, int worldZ)
+ {
+ return _extractLayerNswe(_getNearestLayer(geoX, geoY, worldZ));
+ }
+
+ private int _extractLayerNswe(short layer)
+ {
+ return (byte) (layer & 0x000F);
+ }
+
+ private int _extractLayerHeight(short layer)
+ {
+ layer = (short) (layer & 0x0fff0);
+ return layer >> 1;
+ }
+
+ @Override
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe)
+ {
+ return (_getNearestNSWE(geoX, geoY, worldZ) & nswe) == nswe;
+ }
+
+ @Override
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe, int zDeltaLimit)
+ {
+ short layer = _getNearestLayer(geoX, geoY, worldZ);
+ int height = _extractLayerHeight(layer);
+ return Math.abs(worldZ - height) > zDeltaLimit ? true : (_extractLayerNswe(layer) & nswe) == nswe;
+ }
+
+ @Override
+ public int getNearestZ(int geoX, int geoY, int worldZ)
+ {
+ return _extractLayerHeight(_getNearestLayer(geoX, geoY, worldZ));
+ }
+
+ @Override
+ public int getNextLowerZ(int geoX, int geoY, int worldZ)
+ {
+ int startOffset = _getCellDataOffset(geoX, geoY);
+ byte nLayers = _data[startOffset];
+ int endOffset = startOffset + 1 + (nLayers * 2);
+
+ int lowerZ = Integer.MIN_VALUE;
+ for (int offset = startOffset + 1; offset < endOffset; offset += 2)
+ {
+ short layerData = _extractLayerData(offset);
+
+ int layerZ = _extractLayerHeight(layerData);
+ if (layerZ == worldZ)
+ {
+ // exact z
+ return layerZ;
+ }
+
+ if ((layerZ < worldZ) && (layerZ > lowerZ))
+ {
+ lowerZ = layerZ;
+ }
+ }
+
+ return lowerZ == Integer.MIN_VALUE ? worldZ : lowerZ;
+ }
+
+ @Override
+ public int getNextHigherZ(int geoX, int geoY, int worldZ)
+ {
+ int startOffset = _getCellDataOffset(geoX, geoY);
+ byte nLayers = _data[startOffset];
+ int endOffset = startOffset + 1 + (nLayers * 2);
+
+ int higherZ = Integer.MAX_VALUE;
+ for (int offset = startOffset + 1; offset < endOffset; offset += 2)
+ {
+ short layerData = _extractLayerData(offset);
+
+ int layerZ = _extractLayerHeight(layerData);
+ if (layerZ == worldZ)
+ {
+ // exact z
+ return layerZ;
+ }
+
+ if ((layerZ > worldZ) && (layerZ < higherZ))
+ {
+ higherZ = layerZ;
+ }
+ }
+
+ return higherZ == Integer.MAX_VALUE ? worldZ : higherZ;
+ }
+}
diff --git a/others/L2J_GeoDriver/src/com/l2jserver/geodriver/regions/NullRegion.java b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/regions/NullRegion.java
new file mode 100644
index 0000000000..8446da0497
--- /dev/null
+++ b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/regions/NullRegion.java
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2004-2015 L2J Server
+ *
+ * This file is part of L2J Server.
+ *
+ * L2J Server 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * L2J Server 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, see .
+ */
+package com.l2jserver.geodriver.regions;
+
+import com.l2jserver.geodriver.IRegion;
+
+/**
+ * @author HorridoJoho
+ */
+public final class NullRegion implements IRegion
+{
+ public static final NullRegion INSTANCE = new NullRegion();
+
+ @Override
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe)
+ {
+ return true;
+ }
+
+ @Override
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe, int zDeltaLimit)
+ {
+ return true;
+ }
+
+ @Override
+ public int getNearestZ(int geoX, int geoY, int worldZ)
+ {
+ return worldZ;
+ }
+
+ @Override
+ public int getNearestZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return worldZ;
+ }
+
+ @Override
+ public int getNextLowerZ(int geoX, int geoY, int worldZ)
+ {
+ return worldZ;
+ }
+
+ @Override
+ public int getNextLowerZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return worldZ;
+ }
+
+ @Override
+ public int getNextHigherZ(int geoX, int geoY, int worldZ)
+ {
+ return worldZ;
+ }
+
+ @Override
+ public int getNextHigherZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return worldZ;
+ }
+
+ @Override
+ public boolean hasGeo()
+ {
+ return false;
+ }
+}
diff --git a/others/L2J_GeoDriver/src/com/l2jserver/geodriver/regions/Region.java b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/regions/Region.java
new file mode 100644
index 0000000000..b45f5b7ee9
--- /dev/null
+++ b/others/L2J_GeoDriver/src/com/l2jserver/geodriver/regions/Region.java
@@ -0,0 +1,116 @@
+/*
+ * Copyright (C) 2004-2015 L2J Server
+ *
+ * This file is part of L2J Server.
+ *
+ * L2J Server 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * L2J Server 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, see .
+ */
+package com.l2jserver.geodriver.regions;
+
+import java.nio.ByteBuffer;
+
+import com.l2jserver.geodriver.IBlock;
+import com.l2jserver.geodriver.IRegion;
+import com.l2jserver.geodriver.blocks.ComplexBlock;
+import com.l2jserver.geodriver.blocks.FlatBlock;
+import com.l2jserver.geodriver.blocks.MultilayerBlock;
+
+/**
+ * @author HorridoJoho
+ */
+public final class Region implements IRegion
+{
+ private final IBlock[] _blocks = new IBlock[IRegion.REGION_BLOCKS];
+
+ public Region(ByteBuffer bb)
+ {
+ for (int blockOffset = 0; blockOffset < IRegion.REGION_BLOCKS; blockOffset++)
+ {
+ int blockType = bb.get();
+ switch (blockType)
+ {
+ case IBlock.TYPE_FLAT:
+ _blocks[blockOffset] = new FlatBlock(bb);
+ break;
+ case IBlock.TYPE_COMPLEX:
+ _blocks[blockOffset] = new ComplexBlock(bb);
+ break;
+ case IBlock.TYPE_MULTILAYER:
+ _blocks[blockOffset] = new MultilayerBlock(bb);
+ break;
+ default:
+ throw new RuntimeException("Invalid block type " + blockType + "!");
+ }
+ }
+ }
+
+ private IBlock getBlock(int geoX, int geoY)
+ {
+ return _blocks[(((geoX / IBlock.BLOCK_CELLS_X) % IRegion.REGION_BLOCKS_X) * IRegion.REGION_BLOCKS_Y) + ((geoY / IBlock.BLOCK_CELLS_Y) % IRegion.REGION_BLOCKS_Y)];
+ }
+
+ @Override
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe)
+ {
+ return getBlock(geoX, geoY).checkNearestNswe(geoX, geoY, worldZ, nswe);
+ }
+
+ @Override
+ public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe, int zDeltaLimit)
+ {
+ return getBlock(geoX, geoY).checkNearestNswe(geoX, geoY, worldZ, nswe, zDeltaLimit);
+ }
+
+ @Override
+ public int getNearestZ(int geoX, int geoY, int worldZ)
+ {
+ return getBlock(geoX, geoY).getNearestZ(geoX, geoY, worldZ);
+ }
+
+ @Override
+ public int getNearestZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return getBlock(geoX, geoY).getNearestZ(geoX, geoY, worldZ, zDeltaLimit);
+ }
+
+ @Override
+ public int getNextLowerZ(int geoX, int geoY, int worldZ)
+ {
+ return getBlock(geoX, geoY).getNextLowerZ(geoX, geoY, worldZ);
+ }
+
+ @Override
+ public int getNextLowerZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return getBlock(geoX, geoY).getNextLowerZ(geoX, geoY, worldZ, zDeltaLimit);
+ }
+
+ @Override
+ public int getNextHigherZ(int geoX, int geoY, int worldZ)
+ {
+ return getBlock(geoX, geoY).getNextHigherZ(geoX, geoY, worldZ);
+ }
+
+ @Override
+ public int getNextHigherZ(int geoX, int geoY, int worldZ, int zDeltaLimit)
+ {
+ return getBlock(geoX, geoY).getNextHigherZ(geoX, geoY, worldZ, zDeltaLimit);
+ }
+
+ @Override
+ public boolean hasGeo()
+ {
+ return true;
+ }
+}