[GAME] Fire Emblem

org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve org.eclipse.jdt.core.compiler.compliance=1.6 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.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.source=1.6 org.eclipse.jdt.core.formatter.align_type_members_on_columns=false org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=48 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 org.eclipse.jdt.core.formatter.alignment_for_assignment=0 org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 org.eclipse.jdt.core.formatter.alignment_for_enum_constants=48 org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=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=end_of_line org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false org.eclipse.jdt.core.formatter.comment.format_block_comments=true org.eclipse.jdt.core.formatter.comment.format_header=true 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=insert org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert org.eclipse.jdt.core.formatter.comment.line_length=80 org.eclipse.jdt.core.formatter.compact_else_if=true org.eclipse.jdt.core.formatter.continuation_indentation=2 org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false 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=false 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=false org.eclipse.jdt.core.formatter.indentation.size=4 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_member=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_opening_brace_in_array_initializer=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=do not insert org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not 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_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_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_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_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

Posted Apr 3, 2016, 6:00 PM UTC

86
spoopydaleOP•

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_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_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_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=false 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=80 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=true org.eclipse.jdt.core.formatter.tabulation.char=mixed org.eclipse.jdt.core.formatter.tabulation.size=8 org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true

1
spoopydaleOP•

public enum CharacterType

{

MYR("Myrmidon"),

LORD("Lord"),

KNG("Knight"),

FGT("Fighter"),

ARCH("Archer"),

MAGE("Mage"),

CLR("Cleric"),

RCRT("Recruit"),

CVLR("Cavalier"),

BRSKR("Beserker"),

PLDN("Paladin"),

GNRL("General"),

MCNRY("Mercenary"),

PKNG("Pegasus Knight"),

JNYMN("Journeyman"),

PUPIL("Pupil"),

HERO("Hero"),

TRBDR("Troubador"),

PRT("Pirate"),

FKNG("Falcoknight"),

THF("Thief");

public HashSet<String> usableWeapons;
public String name;

private static String[] textFile;
private static boolean textFileRead = false;

private CharacterType(String a) {
    name = a;
    usableWeapons = new HashSet<String>();
    String[] f = read();
    String line;
    for (int i = 0; i < f.length; i++) {
        line = f[i];
        if (line.contains(name) || line.contains("all"))
            usableWeapons.add(line.substring(0, line.indexOf(':')));
    }// end for
}// end constructor

private static String[] read() {
    if (!textFileRead) {
        try {
            textFile = new String[10];
            Scanner reader = new Scanner(new File(
                    "src/data/usableweapons.txt"));
            for (int i = 0; i < 10; i++)
                textFile[i] = reader.nextLine().trim();
            textFileRead = true;
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }// end if
    return textFile;
}// end read

public String toString() {
    return name;
}

}

1
spoopydaleOP•

import java.awt.Point; import java.io.*; import java.lang.reflect.Array; import java.util.Arrays; import java.util.Scanner; import java.util.TreeMap;

import javax.swing.ImageIcon;

// this import will change import test.AttackPhaseTester;

import data.CharacterType; import data.ParseMethods; import data.StatType; import data.WeaponType;

/** *

  • @author Brian Clanton

*/

public class Character { public String name; public ItemInterface[] inventory = new ItemInterface[5]; public int hp, str, def, luc, lvl, exp, mov, skl, spd, res, con; public int currHp; public int index = 0; public StatType status; public Point position; public Weapon activeWeapon = null; public ImageIcon classImage; public CharacterType type; public int[] growthRates; public int classPower = 1, classBonusA, classBonusB; /** * The animation for an unselected character standing on the battlefield. */ public CharacterImage map;

/**
 * The animation for a selected character standing on the battlefield.
 */
public CharacterImage selected;

public Character() {
    name = "";
    inventory = null;
    hp = 0;
    def = 0;
    luc = 0;
    lvl = 0;
    exp = 0;
    mov = 0;
    skl = 0;
    spd = 0;
    res = 0;
    con = 0;
    position = new Point(0, 0);
    status = StatType.NONE;
    type = null;
}// end default constructor

public Character(CharacterType e, Weapon w, int x, int y) {
    try {
        Scanner console = new Scanner(new FileReader(
                "src/data/basestats.txt"));
        String s = "";
        while (!console.nextLine().contains("start"))
            s = console.nextLine();
        while (!s.contains(e.name()) && console.hasNext()) {
            s = console.nextLine();
        }
        s = s.substring(s.indexOf("\t")).trim();
        name = s.substring(0, s.indexOf("\t"));
        s = s.substring(s.indexOf("\t")).trim();
        lvl = Integer.parseInt(s.substring(0, s.indexOf("\t")));
        s = s.substring(s.indexOf("\t")).trim();
        hp = Integer.parseInt(s.substring(0, s.indexOf("\t")));
        currHp = hp;
        s = s.substring(s.indexOf("\t")).trim();
        str = Integer.parseInt(s.substring(0, s.indexOf("\t")));
        s = s.substring(s.indexOf("\t")).trim();
        skl = Integer.parseInt(s.substring(0, s.indexOf("\t")));
        s = s.substring(s.indexOf("\t")).trim();
        spd = Integer.parseInt(s.substring(0, s.indexOf("\t")));
        s = s.substring(s.indexOf("\t")).trim();
        luc = Integer.parseInt(s.substring(0, s.indexOf("\t")));
        s = s.substring(s.indexOf("\t")).trim();
        def = Integer.parseInt(s.substring(0, s.indexOf("\t")));
        s = s.substring(s.indexOf("\t")).trim();
        res = Integer.parseInt(s.substring(0, s.indexOf("\t")));
        s = s.substring(s.indexOf("\t")).trim();
        con = Integer.parseInt(s.substring(0, s.indexOf("\t")));
        s = s.substring(s.indexOf("\t")).trim();
        mov = Integer.parseInt(s.substring(0).trim());
        exp = 0;
        activeWeapon = w;
    } catch (FileNotFoundException q) {
    }
    position = new Point(x, y);
    status = StatType.NONE;
    classImage = new ImageIcon("images/" + name.toLowerCase() + ".gif");
    type = e;
}// end constructor

/**
 * This method returns the terrain of the space that the unit is occupying.
 * 
 * @param m
 * @return terrain
 */
public Terrain getTerrain(Map m) {
    return m.grid[position.x][position.y];
}// end getTerrain

/**
 * 
 * @param a
 */
public void add(ItemInterface a) {
    inventory[index] = a;
    index++;
}// end add

/**
 * Gets attack speed.
 * 
 * @return attack speed
 */
public int getAttackSpeed() {
    if (spd + con - activeWeapon.weight > 0)
        return spd + con - activeWeapon.weight;
    else
        return 1;
}// end getAttackSpeed

/**
 * Returns true if the Character can perform a double attack. In order for
 * this to happen, the Character's attack speed must be a least 4 points
 * higher than the opponent's attack speed.
 * 
 * @param target
 * @return true if double attack, false if not
 */
public boolean doubleAttack(Character target) {
    return (getAttackSpeed() - target.getAttackSpeed()) >= 4;
}// end doubleAttack

/**
 * Sets a Character's equipped weapon.
 * 
 * @param inventorySlot
 * @return if equipped weapon was changed
 */
public boolean setActiveWeapon(int inventorySlot) {
    if (inventory[inventorySlot] instanceof Weapon) {
        activeWeapon = (Weapon) inventory[inventorySlot];
        return true;
    }
    return false;
}// end setActiveWeapon

/**
 * Gets hit rate. will return number that represents a percentage ex: return
 * 20 = 20%
 * 
 * @param target
 * @return hit rate
 */
public int getHitRate(Character target) {
    if ((int) ((int) 2 * skl + .5 * luc + activeWeapon.hit
            + getTriangleHitBoost(target)
    /* + bonuses */- target.getEvade()) > 0)
        return (int) ((int) 2 * skl + .5 * luc + activeWeapon.hit
                + getTriangleHitBoost(target)
        /* + bonuses */- target.getEvade());
    else
        return 1;
}// end getHitRate

/**
 * Gets evade rate. will return number that represents a percentage ex:
 * return 20 = 20%
 * 
 * @return
 */
public int getEvade() {
    int e = 2 * getAttackSpeed() + luc;
    return getTerrain(AttackPhaseTester.g).getEvadeBonus(e);
}// end getEvade

/**
 * Checks to see if the equipped weapon is magic.
 * 
 * @return true if weapon is not magic, false if weapon is magic
 */
private boolean isNotMagic() {
    boolean check;
    check = activeWeapon.type != WeaponType.ANIMA
            && activeWeapon.type != WeaponType.LIGHT
            && activeWeapon.type != WeaponType.DARK;
    return check;
}// end isNotMagic

/**
 * Gets damage.
 * 
 * @param target
 * @return damage
 */
public int getDamage(Character target) {
    if (isNotMagic())
        if (str + activeWeapon.attack + getTriangleAttackBoost(target)
        /* + bonuses */- target.getEffectiveDefense() > 0)
            return str + activeWeapon.attack
                    + getTriangleAttackBoost(target)
                    /* + bonuses */- target.getEffectiveDefense();
        else
            return 0;
    else if (str + activeWeapon.attack /* + bonuses */
            - target.getEffectiveResistance() > 0)
        return str + activeWeapon.attack /* + bonuses */
                - target.getEffectiveResistance();
    else
        return 0;
}// end getDamage

/**
 * Gets defense in battle.
 * 
 * @return battle defense
 */
public int getEffectiveDefense() {
    return getTerrain(AttackPhaseTester.g).getDefenseBonus(def);
}// end getEffectiveDefense

/**
 * Gets resistance in battle.
 * 
 * @return battle resistance
 */
public int getEffectiveResistance() {
    return getTerrain(AttackPhaseTester.g).getDefenseBonus(res);
}// end getEffectiveResistance

/**
 * Gets critical evade rate. will return number that represents a percentage
 * ex: return 20 = 20%
 * 
 * @return critical evade
 */
public int getCriticalEvade() {
    return getTerrain(AttackPhaseTester.g).getEvadeBonus(luc) /* + bonuses */;
}// end getCriticalEvade

/**
 * Gets critical hit rate. will return number that represents a percentage
 * ex: return 20 = 20%
 * 
 * @param target
 * @return critical rate
 */
public int getCriticalRate(Character target) {
    if ((int) .5 * skl + activeWeapon.crit /* + bonuses */
            - target.getCriticalEvade() > 0)
        return (int) .5 * skl + activeWeapon.crit /* + bonuses */
                - target.getCriticalEvade();
    else
        return 0;
}// end getCriticalRate

// TODO: Add some comments!!!
1
spoopydaleOP•

public int getStaffEvade(Point t) { return res * 5 + (int) (position.distance(t)) * 2 /* + bonuses */; }// end getStaffEvade

public int getStaffHitRate(Character target) { if (30 + str * 5 + skl /* + bonuses / - target.getStaffEvade(target.position) > 0) return 30 + str * 5 + skl / + bonuses */ - target.getStaffEvade(target.position); else return 0; }// end getStaffHitRate

public String attack(Character target) { int hitRate, randHit, randCrit, critHitRate, critBonus = 1, damage; String actions = "";

if (target.status != StatType.DEAD && status != StatType.DEAD
        && isInRange(target) && activeWeapon.type != WeaponType.STAFF) {
    hitRate = getHitRate(target);
    randHit = (int) (Math.random() * 101);
    // System.out.println("(randHit|hitRate): (" + randHit + "|" +
    // hitRate + ")");
    if (randHit <= hitRate) {
        actions += name + " attacks " + target.name + " and hits.\n";
        critHitRate = getCriticalRate(target);
        randCrit = (int) (Math.random() * 101);
        // System.out.println("(randCrit|critHitRate): (" + randCrit +
        // "|" + critHitRate + ")");
        if (randCrit <= critHitRate) {
            critBonus = 3;
            actions += "Critical hit\n";
        }// end if
        damage = getDamage(target) * critBonus;
        target.currHp -= damage;
        actions += name + " dealt " + damage + " damage to "
                + target.name + ".\n";
        if (target.currHp <= 0) {
            actions += target.name + " has been killed.\n";
            target.status = StatType.DEAD;

            exp = exp
                    + (31 + (target.lvl + target.classBonusA) - (lvl + classBonusA))
                    / classPower;

            if (exp
                    + ((target.lvl * target.classPower) + target.classBonusB)
                    - (((lvl * classPower) + classBonusB)) <= 0)
                exp = exp
                        + ((target.lvl * target.classPower) + target.classBonusB)
                        - (((lvl * classPower) + classBonusB) / 2);
            else
                exp = exp
                        + ((target.lvl * target.classPower) + target.classBonusB)
                        - ((lvl * classPower) + classBonusB);
            if (exp >= 100) {
                exp = exp - 100;
                levelUp();
            }

        }// end if
        activeWeapon.durability -= 1;
    }// end if
    else {
        actions += name + " attacks " + target.name + " and misses.\n";
        exp = exp
                + (31 + (target.lvl + target.classBonusA) - (lvl + classBonusA))
                / classPower;
        if (exp >= 100) {
            exp = exp - 100;
            levelUp();
        }
    }
}// end if
if (activeWeapon.type == WeaponType.STAFF)
    actions += "Staves cannot be used to attack.\n";
return actions;

}// end attack

public int getTriangleHitBoost(Character target) { if (isNotMagic() && target.isNotMagic()) { if (activeWeapon.type == WeaponType.SWORD && target.activeWeapon.type == WeaponType.AXE || activeWeapon.type == WeaponType.AXE && target.activeWeapon.type == WeaponType.LANCE || activeWeapon.type == WeaponType.LANCE && target.activeWeapon.type == WeaponType.SWORD) return 10; else if (activeWeapon.type == WeaponType.AXE && target.activeWeapon.type == WeaponType.SWORD || activeWeapon.type == WeaponType.LANCE && target.activeWeapon.type == WeaponType.AXE || activeWeapon.type == WeaponType.SWORD && target.activeWeapon.type == WeaponType.LANCE) return -10; }// end if else if (!isNotMagic() && !target.isNotMagic()) { if (activeWeapon.type == WeaponType.ANIMA && target.activeWeapon.type == WeaponType.LIGHT || activeWeapon.type == WeaponType.LIGHT && target.activeWeapon.type == WeaponType.DARK || activeWeapon.type == WeaponType.DARK && target.activeWeapon.type == WeaponType.ANIMA) return 10; else if (activeWeapon.type == WeaponType.LIGHT && target.activeWeapon.type == WeaponType.ANIMA || activeWeapon.type == WeaponType.ANIMA && target.activeWeapon.type == WeaponType.DARK || activeWeapon.type == WeaponType.DARK && target.activeWeapon.type == WeaponType.LIGHT) return -10; }// end else if return 0; }// end getTriangleHitBoost

public int getTriangleAttackBoost(Character target) { if (isNotMagic() && target.isNotMagic()) { if (activeWeapon.type == WeaponType.SWORD && target.activeWeapon.type == WeaponType.AXE || activeWeapon.type == WeaponType.SWORD && target.activeWeapon.type == WeaponType.LANCE || activeWeapon.type == WeaponType.LANCE && target.activeWeapon.type == WeaponType.SWORD) return 1; else if (activeWeapon.type == WeaponType.AXE && target.activeWeapon.type == WeaponType.SWORD || activeWeapon.type == WeaponType.LANCE && target.activeWeapon.type == WeaponType.AXE || activeWeapon.type == WeaponType.SWORD && target.activeWeapon.type == WeaponType.LANCE) return -1; }// end if else if (!isNotMagic() && !target.isNotMagic()) { if (activeWeapon.type == WeaponType.ANIMA && target.activeWeapon.type == WeaponType.LIGHT || activeWeapon.type == WeaponType.LIGHT && target.activeWeapon.type == WeaponType.DARK || activeWeapon.type == WeaponType.DARK && target.activeWeapon.type == WeaponType.ANIMA) return 1; else if (activeWeapon.type == WeaponType.LIGHT && target.activeWeapon.type == WeaponType.ANIMA || activeWeapon.type == WeaponType.ANIMA && target.activeWeapon.type == WeaponType.DARK || activeWeapon.type == WeaponType.DARK && target.activeWeapon.type == WeaponType.LIGHT) return -1; }// end else if return 0; }// end getTriangleAttackBoost

public void getGrowthRates() { try { Scanner console = new Scanner(new FileReader( "src/data/leveluprates.txt")); String s = console.nextLine(); while (!s.contains(type.name())) s = console.nextLine(); s = console.next(); growthRates = new int[7]; for (int i = 0; i < growthRates.length; i++) growthRates[i] = Integer.parseInt(console.next().trim()) + (int) (Math.random() * 10) - 5; } catch (FileNotFoundException e) { } }

1
spoopydaleOP•

public void levelUp() { getGrowthRates(); lvl++; if ((int) (Math.random() * 101) <= growthRates[0]) hp++; if ((int) (Math.random() * 101) <= growthRates[1]) str++; if ((int) (Math.random() * 101) <= growthRates[2]) skl++; if ((int) (Math.random() * 101) <= growthRates[3]) spd++; if ((int) (Math.random() * 101) <= growthRates[4]) luc++; if ((int) (Math.random() * 101) <= growthRates[5]) def++; if ((int) (Math.random() * 101) <= growthRates[6]) res++; }

public void setClassInfo() { switch (type) { case JNYMN: case RCRT: case PUPIL: classPower = 1; classBonusA = 0; classBonusB = 0; break;

case CLR:
case TRBDR:
case THF:
    classPower = 1;
    classBonusA = 0;
    classBonusB = 0;
    break;

case MYR:
case MCNRY:
case LORD:
case PRT:
case FGT:
case ARCH:
case MAGE:
case PKNG:
case KNG:
case CVLR:
    classPower = 3;
    classBonusA = 20;
    classBonusB = 0;
    break;

case GNRL:
case HERO:
case BRSKR:
case FKNG:
case PLDN:
    classPower = 3;
    classBonusA = 20;
    classBonusB = 60;
    break;
}

}

public static Weapon getDefaultWeapon(CharacterType t) { switch (t) { case GNRL: case RCRT: case PKNG: case KNG: case FKNG: case CVLR: case PLDN: return new Weapon("Iron Lance");

case HERO:
case THF:
case MYR:
case MCNRY:
case LORD:
    return new Weapon("Iron Sword");

case PRT:
case FGT:
case JNYMN:
case BRSKR:
    return new Weapon("Iron Axe");

case ARCH:
    return new Weapon("Iron Bow");

case PUPIL:
case MAGE:
    return new Weapon("Fire");

case TRBDR:
case CLR:
    return new Weapon("Heal");
}
return new Weapon("Dummy");

}

public void setName(String s){ name = s; }

/** *

  • @return a representation of the character's variables */ public String toString() { return "{Name:"+name+ " lvl:"+lvl+ " hp:"+hp+ " str:"+str+ " lvl:"+lvl+ " skl:"+skl+ " spd:"+spd+ " luc:"+luc+ " def:"+def+ " res:"+res+ " con:"+con+ " mov:"+mov+ " exp:"+exp+ " wpn:"+activeWeapon.toString().substring(5, activeWeapon.toString().indexOf("\n"))+ "}"; }

private boolean isInRange(Character target) { return activeWeapon.range >= (int) position.distance(target.position); }// end isInRange }// end class Character

1
spoopydaleOP•

Credit to u/zelkami

1