diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/DndApplication.iml b/.idea/DndApplication.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/DndApplication.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..c1c2a99 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..2356e9d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/1410_DND/src2/DndCharacterBuilder.java b/1410_DND/src2/DndCharacterBuilder.java new file mode 100644 index 0000000..f10f0b8 --- /dev/null +++ b/1410_DND/src2/DndCharacterBuilder.java @@ -0,0 +1,11 @@ +public class DndCharacterBuilder { + + public static void main(String[] args) { + + PanelHolder guiPanels = new PanelHolder(); + + UImanager gui = new UImanager(guiPanels); + + } + +} \ No newline at end of file diff --git a/1410_DND/src2/PanelHolder.java b/1410_DND/src2/PanelHolder.java new file mode 100644 index 0000000..b5904ba --- /dev/null +++ b/1410_DND/src2/PanelHolder.java @@ -0,0 +1,129 @@ +public static class PanelHolder { + + private JPanel mainMenuPanel; + private JPanel racePanel; + private JPanel classPanel; + private JPanel abilityScorePanel; + private JPanel descriptionPanel; + private JPanel equipmentPanel; + private JPanel finalizePanel; + private JPanel loadMenuPanel; + + public PanelHolder() { + + this.mainMenuPanel = createMainMenuPanel(); + this.racePanel = createRaceSelectPanel(); + this.classPanel = createClassSelectPanel(); + this.abilityScorePanel = createAbilityScoreSelectPanel(); + this.descriptionPanel = createDescriptionPanel(); + this.equipmentPanel = createEquipmentSelectPanel(); + this.finalizePanel = createFinalizePanel(); + this.loadMenuPanel = createLoadMenu(); + + } + + public JPanel getMainMenuPanel() { + + return mainMenuPanel; + + } + + public JPanel getRacePanel() { + + return racePanel; + + } + + public JPanel getClassPanel() { + + return classPanel; + + } + + public JPanel getAbilityScorePanel() { + + return abilityScorePanel; + + } + + public JPanel getDescriptionPanel() { + + return descriptionPanel; + + } + + public JPanel getEquipmentPanel() { + + return equipmentPanel; + + } + + public JPanel getFinalizePanel() { + + return finalizePanel; + + } + + public JPanel getLoadMenuPanel() { + + return loadMenuPanel; + + } + + // TODO: Need to implement. + private JPanel createMainMenuPanel() { + + + + } + + // TODO: Need to implement. + private JPanel createRaceSelectPanel() { + + + + } + + // TODO: Need to implement. + private JPanel createClassSelectPanel() { + + + + } + + // TODO: Need to implement. + private JPanel createAbilityScoreSelectPanel() { + + + + } + + // TODO: Need to implement. + private JPanel createDescriptionPanel() { + + + + } + + // TODO: Need to implement. + private JPanel createEquipmentSelectPanel() { + + + + } + + // TODO: Need to implement. + private JPanel createFinalizePanel() { + + + + } + + // TODO: Need to implement. + private JPanel createLoadMenu() { + + + + } + +} \ No newline at end of file diff --git a/1410_DND/src2/UImanager.java b/1410_DND/src2/UImanager.java new file mode 100644 index 0000000..8b88590 --- /dev/null +++ b/1410_DND/src2/UImanager.java @@ -0,0 +1,76 @@ +public class UImanager { + + private JFrame gui; + private PanelHolder guiPanels; + private int currentPanel; + + public UImanager (PanelHolder guiPanels) { + + this.gui = new JFrame("D&D Character Builder"); + this.guiPanels = guiPanels; + + if (returningUser()) { + + this.currentPanel = 0; + + } else { + + this.currentPanel = 1; + + } + + frameSetup(); + + + } + + // TODO: Need to implement. + private void frameSetup() { + + + + } + + // TODO: Need to implement. + private boolean returningUser() { + + return false; + + } + + private JPanel getNextPanel() { + + switch (currentPanel) { + + case: 1 + return guiPanels.getRacePanel(); + case: 2 + return guiPanels.getClassPanel(); + case: 3 + return guiPanels.getAbilityScorePanel(); + case: 4 + return guiPanels.getDescriptionPanel(); + case: 5 + return guiPanels.getEquipmentPanel(); + case: 6 + return guiPanels.getLoadMenuPanel(); + case: 7 + return guiPanels.getFinalizePanel(); + default: + return guiPanels.getMainMenuPanel(); + + } + + } + + private void clearAndReset(JPanel nextPanel) { + + gui.removeAll(); + gui.addComponent(nextPanel); + + gui.repaint(); + gui.revalidate(); + + } + +} \ No newline at end of file diff --git a/dndcharacterbuilder/.editorconfig b/dndcharacterbuilder/.editorconfig deleted file mode 100644 index 1f494b0..0000000 --- a/dndcharacterbuilder/.editorconfig +++ /dev/null @@ -1,17 +0,0 @@ -# Editor configuration, see http://editorconfig.org -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true -max_line_length = 80 - -[*.sh] -end_of_line = lf - -[*.java] -indent_size = 4 -max_line_length = 120 diff --git a/dndcharacterbuilder/pom.xml b/dndcharacterbuilder/pom.xml deleted file mode 100644 index 2a209fe..0000000 --- a/dndcharacterbuilder/pom.xml +++ /dev/null @@ -1,173 +0,0 @@ - - 4.0.0 - com.builder - dndcharacterbuilder - 10 - - 1.8 - 1.8 - UTF-8 - 5.6.0 - 3.0.0-M3 - 3.1.2 - 8.45.1 - 3.0.0-M5 - 0.8.4 - 3.0.0 - - 0% - 0% - 20 - 5 - - - - org.junit.jupiter - junit-jupiter-api - ${junit.version} - test - - - org.junit.jupiter - junit-jupiter-engine - ${junit.version} - test - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - ${maven-enforcer-plugin.version} - - - - enforce - - - - - 3.6.3 - - - true - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - ${maven-checkstyle-plugin.version} - - - com.puppycrawl.tools - checkstyle - ${checkstyle.version} - - - com.github.ngeor - checkstyle-rules - 4.9.3 - - - - com/github/ngeor/checkstyle.xml - true - ${skipTests} - - - - checkstyle - validate - - check - - - - - - org.apache.maven.plugins - maven-surefire-plugin - ${maven-surefire-plugin.version} - - - org.jacoco - jacoco-maven-plugin - ${jacoco-maven-plugin.version} - - - pre-unit-test - - prepare-agent - - - - post-unit-test - test - - report - - - - check-unit-test - test - - check - - - ${project.build.directory}/jacoco.exec - - - BUNDLE - - - INSTRUCTION - COVEREDRATIO - ${jacoco.unit-tests.limit.instruction-ratio} - - - BRANCH - COVEREDRATIO - ${jacoco.unit-tests.limit.branch-ratio} - - - - - CLASS - - - COMPLEXITY - TOTALCOUNT - ${jacoco.unit-tests.limit.class-complexity} - - - - - METHOD - - - COMPLEXITY - TOTALCOUNT - ${jacoco.unit-tests.limit.method-complexity} - - - - - - - - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven-javadoc-plugin.version} - - - - diff --git a/dndcharacterbuilder/src/test/java/com/builder/AppTest.java b/dndcharacterbuilder/src/test/java/com/builder/AppTest.java deleted file mode 100644 index d81e15c..0000000 --- a/dndcharacterbuilder/src/test/java/com/builder/AppTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.builder; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Unit test for simple App. - */ -class AppTest { - /** - * Rigorous Test. - */ - @Test - void testApp() { - assertEquals(1, 1); - } -} diff --git a/dndcharacterbuilder/target/test-classes/com/builder/AppTest.class b/dndcharacterbuilder/target/test-classes/com/builder/AppTest.class deleted file mode 100644 index 66bce2e..0000000 Binary files a/dndcharacterbuilder/target/test-classes/com/builder/AppTest.class and /dev/null differ