diff --git a/.idea/$PRODUCT_WORKSPACE_FILE$ b/.idea/$PRODUCT_WORKSPACE_FILE$ new file mode 100644 index 0000000000000000000000000000000000000000..3733e0d369c0331583e53353e77299dc56783aab --- /dev/null +++ b/.idea/$PRODUCT_WORKSPACE_FILE$ @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="masterDetails"> + <states> + <state key="ProjectJDKs.UI"> + <settings> + <last-edited>1.8</last-edited> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + </states> + </component> +</project> \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..5c98b428844d9f7d529e2b6fb918d15bf072f3df --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,2 @@ +# Default ignored files +/workspace.xml \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..a07277e4e9b5232cdf27c177ecf83aa7901b275c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> +<<<<<<< HEAD + <component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="12" project-jdk-type="JavaSDK"> +======= + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK"> +>>>>>>> 37a6af2e6d36ab514d01a93dbd5be6538a2572c7 + <output url="file://$PROJECT_DIR$/out" /> + </component> +</project> \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000000000000000000000000000000000..1fe4435f739a457406c6c8482d6bbcec0854e0aa --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/infinitymonkeys.iml" filepath="$PROJECT_DIR$/infinitymonkeys.iml" /> + </modules> + </component> +</project> \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000000000000000000000000000000000000..e96534fb27b68192f27f985d3879e173ec77adb8 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="Palette2"> + <group name="Swing"> + <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" /> + </item> + <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" /> + </item> + <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" /> + </item> + <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true"> + <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" /> + </item> + <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" /> + <initial-values> + <property name="text" value="Button" /> + </initial-values> + </item> + <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> + <initial-values> + <property name="text" value="RadioButton" /> + </initial-values> + </item> + <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> + <initial-values> + <property name="text" value="CheckBox" /> + </initial-values> + </item> + <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" /> + <initial-values> + <property name="text" value="Label" /> + </initial-values> + </item> + <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> + <preferred-size width="150" height="-1" /> + </default-constraints> + </item> + <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> + <preferred-size width="150" height="-1" /> + </default-constraints> + </item> + <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> + <preferred-size width="150" height="-1" /> + </default-constraints> + </item> + <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" /> + </item> + <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> + <preferred-size width="200" height="200" /> + </default-constraints> + </item> + <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> + <preferred-size width="200" height="200" /> + </default-constraints> + </item> + <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> + </item> + <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> + </item> + <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" /> + </item> + <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" /> + </item> + <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1"> + <preferred-size width="-1" height="20" /> + </default-constraints> + </item> + <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" /> + </item> + <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" /> + </item> + </group> + </component> +</project> \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="" vcs="Git" /> + </component> +</project> \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000000000000000000000000000000000000..d977b687b3c340eccc8cf30a665528eea8e5f65f --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,483 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ChangeListManager"> + <list default="true" id="688d774d-cfc7-4b0d-b00c-5ca931aba600" name="Default Changelist" comment=""> + <change beforePath="$PROJECT_DIR$/.idea/modules.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/src/GUI/ChatScreen.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GUI/ChatScreen.java" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/src/server/User.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/server/User.java" afterDir="false" /> + </list> + <ignored path="$PROJECT_DIR$/out/" /> + <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> + <option name="SHOW_DIALOG" value="false" /> + <option name="HIGHLIGHT_CONFLICTS" value="true" /> + <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> + <option name="LAST_RESOLUTION" value="IGNORE" /> + </component> + <component name="DefaultGradleProjectSettings"> + <option name="testRunner" value="GRADLE" /> + <option name="delegatedBuild" value="true" /> + </component> + <component name="FileEditorManager"> + <leaf> + <file pinned="false" current-in-tab="true"> + <entry file="file://$PROJECT_DIR$/src/GUI/ChatScreen.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="323"> + <caret line="81" selection-start-line="81" selection-end-line="81" /> + </state> + </provider> + </entry> + </file> + </leaf> + </component> + <component name="FindInProjectRecents"> + <findStrings> + <find>RMI</find> + <find>Black</find> + <find>colorOptions</find> + <find>Send</find> + <find>message</find> + <find>userSelectComboBox</find> + <find>updateUserList</find> + <find>send</find> + <find>broadcastMessage</find> + <find>sent</find> + </findStrings> + </component> + <component name="Git.Settings"> + <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> + <option name="RECENT_BRANCH_BY_REPOSITORY"> + <map> + <entry key="$PROJECT_DIR$" value="master" /> + </map> + </option> + </component> + <component name="IdeDocumentHistory"> + <option name="CHANGED_PATHS"> + <list> + <option value="$PROJECT_DIR$/src/server/Server.java" /> + <option value="$PROJECT_DIR$/src/client/ChatUpdate.java" /> + <option value="$PROJECT_DIR$/src/client/Client.java" /> + <option value="$PROJECT_DIR$/src/server/ChatController.java" /> + <option value="$PROJECT_DIR$/src/remote/IChatController.java" /> + <option value="$PROJECT_DIR$/src/remote/IChatUpdate.java" /> + <option value="$PROJECT_DIR$/src/server/ClientController.java" /> + <option value="$PROJECT_DIR$/src/remote/IClientController.java" /> + <option value="$PROJECT_DIR$/src/client/ClientUpdate.java" /> + <option value="$PROJECT_DIR$/src/remote/IClientUpdate.java" /> + <option value="$PROJECT_DIR$/src/GUI/ChatScreen.form" /> + <option value="$PROJECT_DIR$/src/server/User.java" /> + <option value="$PROJECT_DIR$/src/GUI/ChatScreen.java" /> + </list> + </option> + </component> + <component name="ProjectConfigurationFiles"> + <option name="files"> + <list> + <option value="$PROJECT_DIR$/.idea/uiDesigner.xml" /> + </list> + </option> + </component> + <component name="ProjectFrameBounds" extendedState="6"> + <option name="x" value="-3" /> + <option name="width" value="1946" /> + <option name="height" value="876" /> + </component> + <component name="ProjectView"> + <navigator proportions="" version="1"> + <foldersAlwaysOnTop value="true" /> + </navigator> + <panes> + <pane id="ProjectPane"> + <subPane> + <expand> + <path> + <item name="infinitymonkeys" type="b2602c69:ProjectViewProjectNode" /> + <item name="infinitymonkeys" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="infinitymonkeys" type="b2602c69:ProjectViewProjectNode" /> + <item name="infinitymonkeys" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="infinitymonkeys" type="b2602c69:ProjectViewProjectNode" /> + <item name="infinitymonkeys" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + <item name="client" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="infinitymonkeys" type="b2602c69:ProjectViewProjectNode" /> + <item name="infinitymonkeys" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + <item name="GUI" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="infinitymonkeys" type="b2602c69:ProjectViewProjectNode" /> + <item name="infinitymonkeys" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + <item name="GUI" type="462c0819:PsiDirectoryNode" /> + <item name="ChatScreen" type="e9f4de52:FormNode" /> + </path> + <path> + <item name="infinitymonkeys" type="b2602c69:ProjectViewProjectNode" /> + <item name="infinitymonkeys" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + <item name="remote" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="infinitymonkeys" type="b2602c69:ProjectViewProjectNode" /> + <item name="infinitymonkeys" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + <item name="server" type="462c0819:PsiDirectoryNode" /> + </path> + </expand> + <select /> + </subPane> + </pane> + <pane id="PackagesPane" /> + <pane id="Scope" /> + </panes> + </component> + <component name="PropertiesComponent"> + <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" /> + <property name="WebServerToolWindowFactoryState" value="false" /> + <property name="aspect.path.notification.shown" value="true" /> + <property name="last_opened_file_path" value="$PROJECT_DIR$/../Git Projects" /> + <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" /> + <property name="nodejs_npm_path_reset_for_default_project" value="true" /> + <property name="project.structure.last.edited" value="Global Libraries" /> + <property name="project.structure.proportion" value="0.15" /> + <property name="project.structure.side.proportion" value="0.2" /> + </component> + <component name="RunDashboard"> + <option name="ruleStates"> + <list> + <RuleState> + <option name="name" value="ConfigurationTypeDashboardGroupingRule" /> + </RuleState> + <RuleState> + <option name="name" value="StatusDashboardGroupingRule" /> + </RuleState> + </list> + </option> + </component> + <component name="RunManager" selected="Application.Client2"> + <configuration name="Client 3" type="Application" factoryName="Application"> + <option name="MAIN_CLASS_NAME" value="client.Client" /> + <module name="infinitymonkeys" /> + <option name="PROGRAM_PARAMETERS" value="Eldar -Djava.rmi.server.codebase=file:"C:\infinitemonkeys\out\production\infinitemonkeys\"" /> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> + <configuration name="Client1" type="Application" factoryName="Application"> + <option name="MAIN_CLASS_NAME" value="client.Client" /> + <module name="infinitymonkeys" /> + <option name="PROGRAM_PARAMETERS" value="Max -Djava.rmi.server.codebase=file:"C:\infinitemonkeys\out\production\infinitemonkeys\"" /> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> + <configuration name="Client2" type="Application" factoryName="Application"> + <option name="MAIN_CLASS_NAME" value="client.Client" /> + <module name="infinitymonkeys" /> + <option name="PROGRAM_PARAMETERS" value="Hai -Djava.rmi.server.codebase=file:"C:\infinitemonkeys\out\production\infinitemonkeys\"" /> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> + <configuration name="Server" type="Application" factoryName="Application"> + <option name="MAIN_CLASS_NAME" value="server.Server" /> + <module name="infinitymonkeys" /> + <option name="PROGRAM_PARAMETERS" value="-Djava.rmi.server.codebase=file:"C:\infinitemonkeys\out\production\infinitemonkeys\"" /> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> + <list> + <item itemvalue="Application.Server" /> + <item itemvalue="Application.Client1" /> + <item itemvalue="Application.Client2" /> + <item itemvalue="Application.Client 3" /> + </list> + </component> + <component name="SvnConfiguration"> + <configuration /> + </component> + <component name="TaskManager"> + <task active="true" id="Default" summary="Default task"> + <changelist id="688d774d-cfc7-4b0d-b00c-5ca931aba600" name="Default Changelist" comment="" /> + <created>1571631720382</created> + <option name="number" value="Default" /> + <option name="presentableId" value="Default" /> + <updated>1571631720382</updated> + <workItem from="1571631723795" duration="17601000" /> + </task> + <task id="LOCAL-00001" summary="Changed the join method to send over a reference of the ClientUpdate Interface"> + <created>1571646862883</created> + <option name="number" value="00001" /> + <option name="presentableId" value="LOCAL-00001" /> + <option name="project" value="LOCAL" /> + <updated>1571646862883</updated> + </task> + <option name="localTasksCounter" value="2" /> + <servers /> + </component> + <component name="TimeTrackingManager"> + <option name="totallyTimeSpent" value="17601000" /> + </component> + <component name="ToolWindowManager"> + <frame x="-7" y="-7" width="1295" height="704" extended-state="6" /> + <editor active="true" /> + <layout> + <window_info id="Designer" /> + <window_info id="Image Layers" /> + <window_info id="Capture Tool" /> + <window_info id="UI Designer" /> + <window_info id="Favorites" side_tool="true" /> + <window_info id="JavaEE:App" side_tool="true" /> + <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24939272" /> + <window_info id="Structure" order="1" side_tool="true" weight="0.25" /> + <window_info anchor="bottom" id="Terminal" visible="true" weight="0.26923078" /> + <window_info anchor="bottom" id="Docker" show_stripe_button="false" /> + <window_info anchor="bottom" id="Event Log" side_tool="true" /> + <window_info anchor="bottom" id="Messages" weight="0.32867134" /> + <window_info anchor="bottom" id="Database Changes" /> + <window_info anchor="bottom" id="Version Control" weight="0.32867134" /> + <window_info anchor="bottom" id="Message" order="0" /> + <window_info anchor="bottom" id="Find" order="1" /> + <window_info anchor="bottom" id="Run" order="2" weight="0.32867134" /> + <window_info anchor="bottom" id="Debug" order="3" weight="0.4" /> + <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" /> + <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" /> + <window_info anchor="bottom" id="TODO" order="6" /> + <window_info anchor="right" id="Maven" /> + <window_info anchor="right" id="Palette" /> + <window_info anchor="right" id="Capture Analysis" /> + <window_info anchor="right" id="Database" /> + <window_info anchor="right" id="Palette	" /> + <window_info anchor="right" id="Theme Preview" /> + <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> + <window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> + <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" /> + </layout> + </component> + <component name="TypeScriptGeneratedFilesManager"> + <option name="version" value="1" /> + </component> + <component name="Vcs.Log.History.Properties"> + <option name="COLUMN_ORDER"> + <list> + <option value="0" /> + <option value="2" /> + <option value="3" /> + <option value="1" /> + </list> + </option> + </component> + <component name="VcsManagerConfiguration"> + <MESSAGE value="Changed the join method to send over a reference of the ClientUpdate Interface" /> + <option name="LAST_COMMIT_MESSAGE" value="Changed the join method to send over a reference of the ClientUpdate Interface" /> + </component> + <component name="editorHistoryManager"> + <entry file="file://$PROJECT_DIR$/src/GUI/StartScreen.form"> + <provider selected="true" editor-type-id="ui-designer" /> + </entry> + <entry file="file://$PROJECT_DIR$/src/client/DrawingUpdate.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="170"> + <caret line="15" column="28" selection-start-line="15" selection-start-column="28" selection-end-line="15" selection-end-column="28" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/GUI/PaintGUI.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="186"> + <caret line="218" lean-forward="true" selection-start-line="218" selection-end-line="218" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/server/DrawingController.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="187"> + <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/server/Server.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="-650"> + <caret line="10" lean-forward="true" selection-start-line="10" selection-end-line="10" /> + <folding> + <element signature="imports" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/remote/IChatController.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="187"> + <caret line="12" lean-forward="true" selection-start-line="12" selection-end-line="12" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/remote/IChatUpdate.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="170"> + <caret line="12" lean-forward="true" selection-start-line="12" selection-end-line="12" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/GUI/ChatScreen.form"> + <provider selected="true" editor-type-id="ui-designer" /> + </entry> + <entry file="file://$PROJECT_DIR$/src/needsDebugging/client/ChatUpdate.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="68"> + <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/client/ClientUpdate.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="663"> + <caret line="39" column="31" lean-forward="true" selection-start-line="39" selection-start-column="31" selection-end-line="39" selection-end-column="31" /> + <folding> + <element signature="imports" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/server/ChatController.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="-939"> + <caret line="9" column="45" selection-start-line="9" selection-start-column="45" selection-end-line="9" selection-end-column="45" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/remote/IClientController.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="187"> + <caret line="12" selection-start-line="12" selection-end-line="12" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/remote/IClientUpdate.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="170"> + <caret line="12" selection-start-line="12" selection-end-line="12" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/client/Client.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="119"> + <caret line="133" column="104" selection-start-line="133" selection-start-column="104" selection-end-line="133" selection-end-column="104" /> + <folding> + <element signature="e#892#893#0" expanded="true" /> + <element signature="e#923#924#0" expanded="true" /> + <element signature="e#969#970#0" expanded="true" /> + <element signature="e#1002#1003#0" expanded="true" /> + <element signature="e#1059#1060#0" expanded="true" /> + <element signature="e#1102#1103#0" expanded="true" /> + <element signature="e#1157#1158#0" expanded="true" /> + <element signature="e#1194#1195#0" expanded="true" /> + <element signature="e#1252#1253#0" expanded="true" /> + <element signature="e#1291#1292#0" expanded="true" /> + <element signature="e#1427#1428#0" expanded="true" /> + <element signature="e#1467#1468#0" expanded="true" /> + <element signature="e#1506#1507#0" expanded="true" /> + <element signature="e#1542#1543#0" expanded="true" /> + <element signature="e#1604#1605#0" expanded="true" /> + <element signature="e#1654#1655#0" expanded="true" /> + <element signature="e#3373#3374#0" expanded="true" /> + <element signature="e#3411#3412#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/client/ChatUpdate.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="114"> + <caret line="25" column="65" selection-start-line="25" selection-start-column="65" selection-end-line="25" selection-end-column="65" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/server/User.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="186"> + <caret line="47" lean-forward="true" selection-start-line="47" selection-end-line="47" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/server/ClientController.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="-1602"> + <caret line="12" column="13" selection-start-line="12" selection-start-column="13" selection-end-line="12" selection-end-column="13" /> + <folding> + <element signature="imports" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/GUI/ChatScreen.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="323"> + <caret line="81" selection-start-line="81" selection-end-line="81" /> + </state> + </provider> + </entry> + </component> + <component name="masterDetails"> + <states> + <state key="GlobalLibrariesConfigurable.UI"> + <settings> + <last-edited>JavaFX-11</last-edited> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + <state key="JdkListConfigurable.UI"> + <settings> + <last-edited>12</last-edited> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + <state key="ProjectJDKs.UI"> + <settings> + <last-edited>12</last-edited> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + <state key="ProjectLibrariesConfigurable.UI"> + <settings> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + </states> + </component> +</project> \ No newline at end of file diff --git a/comp90015-dsass2-infinitymonkeys-remaster.iml b/comp90015-dsass2-infinitymonkeys-remaster.iml new file mode 100644 index 0000000000000000000000000000000000000000..7152d058eeaf78185b07d439256d64bb8f90cd22 --- /dev/null +++ b/comp90015-dsass2-infinitymonkeys-remaster.iml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="JAVA_MODULE" version="4"> + <component name="FacetManager"> + <facet type="javaeeApplication" name="javaEEApplication"> + <configuration> + <descriptors> + <deploymentDescriptor name="application.xml" url="file://$MODULE_DIR$/META-INF/application.xml" /> + </descriptors> + </configuration> + </facet> + </component> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> +</module> \ No newline at end of file diff --git a/infinitymonkeys.iml b/infinitymonkeys.iml new file mode 100644 index 0000000000000000000000000000000000000000..7152d058eeaf78185b07d439256d64bb8f90cd22 --- /dev/null +++ b/infinitymonkeys.iml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="JAVA_MODULE" version="4"> + <component name="FacetManager"> + <facet type="javaeeApplication" name="javaEEApplication"> + <configuration> + <descriptors> + <deploymentDescriptor name="application.xml" url="file://$MODULE_DIR$/META-INF/application.xml" /> + </descriptors> + </configuration> + </facet> + </component> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> +</module> \ No newline at end of file diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ChatScreen$1.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ChatScreen$1.class new file mode 100644 index 0000000000000000000000000000000000000000..bf673f8ea6d84ed6e9fd40503c8a4767a75048d6 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ChatScreen$1.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ChatScreen.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ChatScreen.class new file mode 100644 index 0000000000000000000000000000000000000000..f4e30aaffc4a45f3d431149a0acbc881b95b8b2e Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ChatScreen.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ColorPallete.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ColorPallete.class new file mode 100644 index 0000000000000000000000000000000000000000..0795201c54134b35416d2e9bc194cb3e30720c7b Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ColorPallete.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/DrawingArea$1.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/DrawingArea$1.class new file mode 100644 index 0000000000000000000000000000000000000000..153fe6661e260df1c185996c6d8e8f84cc9d88a2 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/DrawingArea$1.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/DrawingArea$Mode.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/DrawingArea$Mode.class new file mode 100644 index 0000000000000000000000000000000000000000..300ae0e92370228635ee2d2eda3cef4cc4aadaae Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/DrawingArea$Mode.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/DrawingArea.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/DrawingArea.class new file mode 100644 index 0000000000000000000000000000000000000000..e8789e03a5bde6470e969558471b15342c72b15e Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/DrawingArea.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/MenuBar.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/MenuBar.class new file mode 100644 index 0000000000000000000000000000000000000000..a24c9fc484961be8f3ca5d24268b42ed44163d5e Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/MenuBar.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/PaintGUI$1.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/PaintGUI$1.class new file mode 100644 index 0000000000000000000000000000000000000000..cc90a9c6246be3e81b09d9081b834ead1f6cc592 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/PaintGUI$1.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/PaintGUI.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/PaintGUI.class new file mode 100644 index 0000000000000000000000000000000000000000..592ac85cd5cd5ffa4ac44a16db9b3f65232a079d Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/PaintGUI.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/StartScreen$1.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/StartScreen$1.class new file mode 100644 index 0000000000000000000000000000000000000000..1a7d5b7bdb4598ed53bab3ee9d3b760ec703980b Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/StartScreen$1.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/StartScreen.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/StartScreen.class new file mode 100644 index 0000000000000000000000000000000000000000..88ef04241f6adbc213948d6042d7c6c09d930b94 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/StartScreen.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ToolBar.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ToolBar.class new file mode 100644 index 0000000000000000000000000000000000000000..a261bb8a4822e43418c1708eeb8e113b94739e4a Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/ToolBar.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/Tools.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/Tools.class new file mode 100644 index 0000000000000000000000000000000000000000..b27fffe3334a1604da267722f9a0490a7cd01d2a Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/GUI/Tools.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/LICENSE b/out/production/comp90015-dsass2-infinitymonkeys-remaster/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..ba0e33f6a054056eae2fdf79d3c4f4949e618044 --- /dev/null +++ b/out/production/comp90015-dsass2-infinitymonkeys-remaster/LICENSE @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/> + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + COMP90015-DSAss2-InfinityMonkeys-remaster + Copyright (C) 2019 Ho Dac Hai + + This program 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 2 of the License, or + (at your option) any later version. + + This program 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, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + {signature of Ty Coon}, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/META-INF/comp90015-dsass2-infinitymonkeys-remaster.kotlin_module b/out/production/comp90015-dsass2-infinitymonkeys-remaster/META-INF/comp90015-dsass2-infinitymonkeys-remaster.kotlin_module new file mode 100644 index 0000000000000000000000000000000000000000..2983af70661ad375cc499ebc4da5a68ca46c532e Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/META-INF/comp90015-dsass2-infinitymonkeys-remaster.kotlin_module differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/ChatUpdate.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/ChatUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..67a49f505beee840b3e57a9e85b034dd23bf2d8c Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/ChatUpdate.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/Client.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/Client.class new file mode 100644 index 0000000000000000000000000000000000000000..b380d66220f652cc9b22291acc8445552a61b404 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/Client.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/ClientUpdate.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/ClientUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..66a59d861a1a2a8d97c3926e948b2857958cdca6 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/ClientUpdate.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/DrawingUpdate.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/DrawingUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..a3b8302dd9e3252b1941eb2af93b54760ea2b35b Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/client/DrawingUpdate.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/AbstractLayout.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/AbstractLayout.class new file mode 100644 index 0000000000000000000000000000000000000000..474957aebac577dec666c736cb908114cec498ff Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/AbstractLayout.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/DimensionInfo.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/DimensionInfo.class new file mode 100644 index 0000000000000000000000000000000000000000..0db2f7d9973c83b302461f624d4983b90631ad48 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/DimensionInfo.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/GridConstraints.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/GridConstraints.class new file mode 100644 index 0000000000000000000000000000000000000000..2e1afccb4b72a19b98e4c55f81b48e6b43dc9e93 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/GridConstraints.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/GridLayoutManager.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/GridLayoutManager.class new file mode 100644 index 0000000000000000000000000000000000000000..94e3f4118dcbf9a9181b35188b2003311c2b587e Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/GridLayoutManager.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/HorizontalInfo.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/HorizontalInfo.class new file mode 100644 index 0000000000000000000000000000000000000000..bdc1fe3e6f75eb653a1eaf739ff5a55fd296bee9 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/HorizontalInfo.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/LayoutState.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/LayoutState.class new file mode 100644 index 0000000000000000000000000000000000000000..61494dfee4228a07f5a011e1cb7b1e6d9357810a Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/LayoutState.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/Spacer.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/Spacer.class new file mode 100644 index 0000000000000000000000000000000000000000..e5348809c769b85ecd7f59e29933beefa569d8fb Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/Spacer.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/SupportCode$TextWithMnemonic.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/SupportCode$TextWithMnemonic.class new file mode 100644 index 0000000000000000000000000000000000000000..67909c5fb0122351434c01857cd99ad1d771cee3 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/SupportCode$TextWithMnemonic.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/SupportCode.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/SupportCode.class new file mode 100644 index 0000000000000000000000000000000000000000..4950c35c1362ec6ee6346c56fefa830498990c09 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/SupportCode.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/Util.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/Util.class new file mode 100644 index 0000000000000000000000000000000000000000..4866582c1e72f444a3ed4dcdb83c269e3a821ca0 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/Util.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/VerticalInfo.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/VerticalInfo.class new file mode 100644 index 0000000000000000000000000000000000000000..049e7022ec7e9bc69bae7d04eb657f2b4cc3ef33 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/com/intellij/uiDesigner/core/VerticalInfo.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IChatController.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IChatController.class new file mode 100644 index 0000000000000000000000000000000000000000..53c3ebdbeb067f1865fe93a3e90ce8ef69e59d0b Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IChatController.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IChatUpdate.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IChatUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..f84138bb8bf132eae71b572e7f8c37323da8ae93 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IChatUpdate.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IClientController.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IClientController.class new file mode 100644 index 0000000000000000000000000000000000000000..a715a7529d155693afd32a10c6d499fbc792097a Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IClientController.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IClientUpdate.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IClientUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..594d29d42b0c49bf0496f846c0945c7ceaeacf33 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IClientUpdate.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IDrawingController.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IDrawingController.class new file mode 100644 index 0000000000000000000000000000000000000000..77e8bd2728f2914be430a512c07dfd1396cf82db Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IDrawingController.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IDrawingUpdate.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IDrawingUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..e988f5b56317e1471a72d9c155b99fb2765377fd Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/remote/IDrawingUpdate.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/ChatController.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/ChatController.class new file mode 100644 index 0000000000000000000000000000000000000000..b56eaad1cdbc2c794f9ab2a79109a88eb63fa3fb Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/ChatController.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/ClientController.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/ClientController.class new file mode 100644 index 0000000000000000000000000000000000000000..f8f9cc0ee6a843d9f3771bc2c10ace5c357cb13d Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/ClientController.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/DrawingController.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/DrawingController.class new file mode 100644 index 0000000000000000000000000000000000000000..54810ef813fa516a548036a63fa70a7be2a0c5c5 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/DrawingController.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/Server.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/Server.class new file mode 100644 index 0000000000000000000000000000000000000000..0c1967b8f8157aa219773025b224455fa21cf3ef Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/Server.class differ diff --git a/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/User.class b/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/User.class new file mode 100644 index 0000000000000000000000000000000000000000..bb1cfcbe52b605032645164945747218b2160ba8 Binary files /dev/null and b/out/production/comp90015-dsass2-infinitymonkeys-remaster/server/User.class differ diff --git a/out/production/infinitymonkeys/GUI/ChatScreen$1.class b/out/production/infinitymonkeys/GUI/ChatScreen$1.class new file mode 100644 index 0000000000000000000000000000000000000000..ad070b4025d27146d6f511cc46e339e0c5c90c9d Binary files /dev/null and b/out/production/infinitymonkeys/GUI/ChatScreen$1.class differ diff --git a/out/production/infinitymonkeys/GUI/ChatScreen$2.class b/out/production/infinitymonkeys/GUI/ChatScreen$2.class new file mode 100644 index 0000000000000000000000000000000000000000..07582e35529293a7e6d54c86eba62b526188a63b Binary files /dev/null and b/out/production/infinitymonkeys/GUI/ChatScreen$2.class differ diff --git a/out/production/infinitymonkeys/GUI/ChatScreen.class b/out/production/infinitymonkeys/GUI/ChatScreen.class new file mode 100644 index 0000000000000000000000000000000000000000..d4722fd42983973ce3fd9102362ac5251df9d15d Binary files /dev/null and b/out/production/infinitymonkeys/GUI/ChatScreen.class differ diff --git a/out/production/infinitymonkeys/GUI/ColorPallete.class b/out/production/infinitymonkeys/GUI/ColorPallete.class new file mode 100644 index 0000000000000000000000000000000000000000..8df577c8690fd5e0b3d5b25f8cf23b457129201b Binary files /dev/null and b/out/production/infinitymonkeys/GUI/ColorPallete.class differ diff --git a/out/production/infinitymonkeys/GUI/DrawingArea$1.class b/out/production/infinitymonkeys/GUI/DrawingArea$1.class new file mode 100644 index 0000000000000000000000000000000000000000..3bf3599b49fa2317bb5c547aebf4ecbf58871f0c Binary files /dev/null and b/out/production/infinitymonkeys/GUI/DrawingArea$1.class differ diff --git a/out/production/infinitymonkeys/GUI/DrawingArea$Mode.class b/out/production/infinitymonkeys/GUI/DrawingArea$Mode.class new file mode 100644 index 0000000000000000000000000000000000000000..d3026d6d41527de6d5356b7e70e33b406f1832ec Binary files /dev/null and b/out/production/infinitymonkeys/GUI/DrawingArea$Mode.class differ diff --git a/out/production/infinitymonkeys/GUI/DrawingArea.class b/out/production/infinitymonkeys/GUI/DrawingArea.class new file mode 100644 index 0000000000000000000000000000000000000000..11e1ba0dc65316974a4a077932d3b3990b954bd1 Binary files /dev/null and b/out/production/infinitymonkeys/GUI/DrawingArea.class differ diff --git a/out/production/infinitymonkeys/GUI/MenuBar.class b/out/production/infinitymonkeys/GUI/MenuBar.class new file mode 100644 index 0000000000000000000000000000000000000000..9d80cbd3e3d7cc30dc751bb56542a73faf046c17 Binary files /dev/null and b/out/production/infinitymonkeys/GUI/MenuBar.class differ diff --git a/out/production/infinitymonkeys/GUI/PaintGUI$1.class b/out/production/infinitymonkeys/GUI/PaintGUI$1.class new file mode 100644 index 0000000000000000000000000000000000000000..05dffb8fa1c36748b9542754e26f8c8e15359c41 Binary files /dev/null and b/out/production/infinitymonkeys/GUI/PaintGUI$1.class differ diff --git a/out/production/infinitymonkeys/GUI/PaintGUI.class b/out/production/infinitymonkeys/GUI/PaintGUI.class new file mode 100644 index 0000000000000000000000000000000000000000..165d1af870b042236228c40f2dae99862c758f71 Binary files /dev/null and b/out/production/infinitymonkeys/GUI/PaintGUI.class differ diff --git a/out/production/infinitymonkeys/GUI/StartScreen$1.class b/out/production/infinitymonkeys/GUI/StartScreen$1.class new file mode 100644 index 0000000000000000000000000000000000000000..5f3fca41b1bc9a34e71f5e61b6c7e4a5112503d2 Binary files /dev/null and b/out/production/infinitymonkeys/GUI/StartScreen$1.class differ diff --git a/out/production/infinitymonkeys/GUI/StartScreen.class b/out/production/infinitymonkeys/GUI/StartScreen.class new file mode 100644 index 0000000000000000000000000000000000000000..6144e540958fa2d41f60d7e6557e4fd56278e677 Binary files /dev/null and b/out/production/infinitymonkeys/GUI/StartScreen.class differ diff --git a/out/production/infinitymonkeys/GUI/ToolBar.class b/out/production/infinitymonkeys/GUI/ToolBar.class new file mode 100644 index 0000000000000000000000000000000000000000..86440c28b7ba58855af71c32d05357aaef175bb9 Binary files /dev/null and b/out/production/infinitymonkeys/GUI/ToolBar.class differ diff --git a/out/production/infinitymonkeys/GUI/Tools.class b/out/production/infinitymonkeys/GUI/Tools.class new file mode 100644 index 0000000000000000000000000000000000000000..9620099b39c681d78c05e11f2192a974d533a6ef Binary files /dev/null and b/out/production/infinitymonkeys/GUI/Tools.class differ diff --git a/out/production/infinitymonkeys/LICENSE b/out/production/infinitymonkeys/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..ba0e33f6a054056eae2fdf79d3c4f4949e618044 --- /dev/null +++ b/out/production/infinitymonkeys/LICENSE @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/> + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + COMP90015-DSAss2-InfinityMonkeys-remaster + Copyright (C) 2019 Ho Dac Hai + + This program 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 2 of the License, or + (at your option) any later version. + + This program 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, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + {signature of Ty Coon}, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/out/production/infinitymonkeys/META-INF/infinitymonkeys.kotlin_module b/out/production/infinitymonkeys/META-INF/infinitymonkeys.kotlin_module new file mode 100644 index 0000000000000000000000000000000000000000..8fb60192d378759239a3ecbf60eac8c8de446e9c Binary files /dev/null and b/out/production/infinitymonkeys/META-INF/infinitymonkeys.kotlin_module differ diff --git a/out/production/infinitymonkeys/client/ChatUpdate.class b/out/production/infinitymonkeys/client/ChatUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..d3d43bbf0dbe0a7b388beca7ad07b42d699e904d Binary files /dev/null and b/out/production/infinitymonkeys/client/ChatUpdate.class differ diff --git a/out/production/infinitymonkeys/client/Client.class b/out/production/infinitymonkeys/client/Client.class new file mode 100644 index 0000000000000000000000000000000000000000..c77e62aac733fe7def8e84b41a6801f5ef591816 Binary files /dev/null and b/out/production/infinitymonkeys/client/Client.class differ diff --git a/out/production/infinitymonkeys/client/ClientUpdate.class b/out/production/infinitymonkeys/client/ClientUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..f3d25e75dcea30aad35683b0aedc4e92e2561079 Binary files /dev/null and b/out/production/infinitymonkeys/client/ClientUpdate.class differ diff --git a/out/production/infinitymonkeys/client/DrawingUpdate.class b/out/production/infinitymonkeys/client/DrawingUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..0d069f263b5239d56e9d5cbba428006c12a08e44 Binary files /dev/null and b/out/production/infinitymonkeys/client/DrawingUpdate.class differ diff --git a/out/production/infinitymonkeys/com/intellij/uiDesigner/core/AbstractLayout.class b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/AbstractLayout.class new file mode 100644 index 0000000000000000000000000000000000000000..474957aebac577dec666c736cb908114cec498ff Binary files /dev/null and b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/AbstractLayout.class differ diff --git a/out/production/infinitymonkeys/com/intellij/uiDesigner/core/DimensionInfo.class b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/DimensionInfo.class new file mode 100644 index 0000000000000000000000000000000000000000..0db2f7d9973c83b302461f624d4983b90631ad48 Binary files /dev/null and b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/DimensionInfo.class differ diff --git a/out/production/infinitymonkeys/com/intellij/uiDesigner/core/GridConstraints.class b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/GridConstraints.class new file mode 100644 index 0000000000000000000000000000000000000000..2e1afccb4b72a19b98e4c55f81b48e6b43dc9e93 Binary files /dev/null and b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/GridConstraints.class differ diff --git a/out/production/infinitymonkeys/com/intellij/uiDesigner/core/GridLayoutManager.class b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/GridLayoutManager.class new file mode 100644 index 0000000000000000000000000000000000000000..94e3f4118dcbf9a9181b35188b2003311c2b587e Binary files /dev/null and b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/GridLayoutManager.class differ diff --git a/out/production/infinitymonkeys/com/intellij/uiDesigner/core/HorizontalInfo.class b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/HorizontalInfo.class new file mode 100644 index 0000000000000000000000000000000000000000..bdc1fe3e6f75eb653a1eaf739ff5a55fd296bee9 Binary files /dev/null and b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/HorizontalInfo.class differ diff --git a/out/production/infinitymonkeys/com/intellij/uiDesigner/core/LayoutState.class b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/LayoutState.class new file mode 100644 index 0000000000000000000000000000000000000000..61494dfee4228a07f5a011e1cb7b1e6d9357810a Binary files /dev/null and b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/LayoutState.class differ diff --git a/out/production/infinitymonkeys/com/intellij/uiDesigner/core/Spacer.class b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/Spacer.class new file mode 100644 index 0000000000000000000000000000000000000000..e5348809c769b85ecd7f59e29933beefa569d8fb Binary files /dev/null and b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/Spacer.class differ diff --git a/out/production/infinitymonkeys/com/intellij/uiDesigner/core/SupportCode$TextWithMnemonic.class b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/SupportCode$TextWithMnemonic.class new file mode 100644 index 0000000000000000000000000000000000000000..67909c5fb0122351434c01857cd99ad1d771cee3 Binary files /dev/null and b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/SupportCode$TextWithMnemonic.class differ diff --git a/out/production/infinitymonkeys/com/intellij/uiDesigner/core/SupportCode.class b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/SupportCode.class new file mode 100644 index 0000000000000000000000000000000000000000..4950c35c1362ec6ee6346c56fefa830498990c09 Binary files /dev/null and b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/SupportCode.class differ diff --git a/out/production/infinitymonkeys/com/intellij/uiDesigner/core/Util.class b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/Util.class new file mode 100644 index 0000000000000000000000000000000000000000..4866582c1e72f444a3ed4dcdb83c269e3a821ca0 Binary files /dev/null and b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/Util.class differ diff --git a/out/production/infinitymonkeys/com/intellij/uiDesigner/core/VerticalInfo.class b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/VerticalInfo.class new file mode 100644 index 0000000000000000000000000000000000000000..049e7022ec7e9bc69bae7d04eb657f2b4cc3ef33 Binary files /dev/null and b/out/production/infinitymonkeys/com/intellij/uiDesigner/core/VerticalInfo.class differ diff --git a/out/production/infinitymonkeys/remote/IChatController.class b/out/production/infinitymonkeys/remote/IChatController.class new file mode 100644 index 0000000000000000000000000000000000000000..e45f4bf9040a0c82a58b3ef00527c279fade4b20 Binary files /dev/null and b/out/production/infinitymonkeys/remote/IChatController.class differ diff --git a/out/production/infinitymonkeys/remote/IChatUpdate.class b/out/production/infinitymonkeys/remote/IChatUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..d5575ab470b8e67f3224b6e865177ce1dee04ee2 Binary files /dev/null and b/out/production/infinitymonkeys/remote/IChatUpdate.class differ diff --git a/out/production/infinitymonkeys/remote/IClientController.class b/out/production/infinitymonkeys/remote/IClientController.class new file mode 100644 index 0000000000000000000000000000000000000000..af990bfd9d6831459f2f3939f2d796d185906326 Binary files /dev/null and b/out/production/infinitymonkeys/remote/IClientController.class differ diff --git a/out/production/infinitymonkeys/remote/IClientUpdate.class b/out/production/infinitymonkeys/remote/IClientUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..fa0006f9dd46ac92c7dd4b02ade6b505c33797d2 Binary files /dev/null and b/out/production/infinitymonkeys/remote/IClientUpdate.class differ diff --git a/out/production/infinitymonkeys/remote/IDrawingController.class b/out/production/infinitymonkeys/remote/IDrawingController.class new file mode 100644 index 0000000000000000000000000000000000000000..ed5925c413644c2148bd9b14149a734e51f912e3 Binary files /dev/null and b/out/production/infinitymonkeys/remote/IDrawingController.class differ diff --git a/out/production/infinitymonkeys/remote/IDrawingUpdate.class b/out/production/infinitymonkeys/remote/IDrawingUpdate.class new file mode 100644 index 0000000000000000000000000000000000000000..04552df1f1be58eafbbc8c8a7aa9177c13b188b4 Binary files /dev/null and b/out/production/infinitymonkeys/remote/IDrawingUpdate.class differ diff --git a/out/production/infinitymonkeys/server/ChatController.class b/out/production/infinitymonkeys/server/ChatController.class new file mode 100644 index 0000000000000000000000000000000000000000..9e315892458c07ba08f68892312f539f23895f84 Binary files /dev/null and b/out/production/infinitymonkeys/server/ChatController.class differ diff --git a/out/production/infinitymonkeys/server/ClientController.class b/out/production/infinitymonkeys/server/ClientController.class new file mode 100644 index 0000000000000000000000000000000000000000..fe0b87bb2045cdd4eb764eff6cfed1a0ac766134 Binary files /dev/null and b/out/production/infinitymonkeys/server/ClientController.class differ diff --git a/out/production/infinitymonkeys/server/DrawingController.class b/out/production/infinitymonkeys/server/DrawingController.class new file mode 100644 index 0000000000000000000000000000000000000000..28a0e95f65317dc06d0c1e3f0830495787b51dc4 Binary files /dev/null and b/out/production/infinitymonkeys/server/DrawingController.class differ diff --git a/out/production/infinitymonkeys/server/Server.class b/out/production/infinitymonkeys/server/Server.class new file mode 100644 index 0000000000000000000000000000000000000000..5ea7e2c5c0df974a0d3f05bf71dbdd9279cd976c Binary files /dev/null and b/out/production/infinitymonkeys/server/Server.class differ diff --git a/out/production/infinitymonkeys/server/User.class b/out/production/infinitymonkeys/server/User.class new file mode 100644 index 0000000000000000000000000000000000000000..17261fd1d0f03ebf8fb8b05a1c22619d50174f68 Binary files /dev/null and b/out/production/infinitymonkeys/server/User.class differ diff --git a/src.zip b/src.zip new file mode 100644 index 0000000000000000000000000000000000000000..d037531c7c7e5a2934c2e6521fdab3171a018182 Binary files /dev/null and b/src.zip differ diff --git a/src/GUI/ChatScreen.java b/src/GUI/ChatScreen.java index 6cfea2e926974c3df21b5389cc7452ef2f55b778..972ea6ec0e165b16ef3661237f19915f1f3d09e1 100644 --- a/src/GUI/ChatScreen.java +++ b/src/GUI/ChatScreen.java @@ -43,13 +43,35 @@ public class ChatScreen { public ChatScreen(Client client) { this.client = client; - exitThisRoomButton.addActionListener(actionListener); - sendButton.addActionListener(actionListener); yourNameDisplay.setText(client.getUserName()); // drawingPanel = new PaintGUI(client); // SwingUtilities.getRootPane(sendButton).setDefaultButton(sendButton); } + frame.addWindowListener(new WindowAdapter() + { + @Override + public void windowClosing(WindowEvent arg0) + { + int answer = JOptionPane.showConfirmDialog(null, + "Are you sure you want to quit the session?", + "Shut down session", JOptionPane.YES_NO_OPTION); + System.out.println(answer); + if (answer == 0) + { + System.out.println("Quitting session"); + try + { + client.getClientController().quit(client.getUserName()); + } + catch (RemoteException e) + { + e.printStackTrace(); + } + System.exit(0); + } + } + }); public JButton getSendButton() { return sendButton; @@ -70,6 +92,7 @@ public class ChatScreen { // } + ActionListener actionListener = new ActionListener() { public void actionPerformed(ActionEvent e) diff --git a/src/client/Client.java b/src/client/Client.java index 3edda911f8e581fa2eb7d576173e811ce6bb7abf..df3c80670c03fd12276ee1503a18a0d7e2a36cf8 100644 --- a/src/client/Client.java +++ b/src/client/Client.java @@ -20,13 +20,15 @@ public class Client private Registry registryServer; private IChatController chatController; private IClientController clientController; + private IDrawingController drawingController; private ClientUpdate clientUpdate; + private ChatUpdate chatUpdate; private DrawingUpdate drawingUpdate; - private StartScreen startScreen; + private ChatScreen chatScreen; private PaintGUI paintGUI; @@ -39,6 +41,12 @@ public class Client public ChatScreen getChatScreen() { return chatScreen; } + public void setConnectedUsers(String[] users) + { + this.connectedUsers = users; + } + + public IChatController getChatController() { return chatController; @@ -95,6 +103,22 @@ public class Client } } +// public void doSomething() +// { +//// new ChatScreen(); +// +// try +// { +// new ChatScreen(this); +// System.out.println("Sleeping..."); +// TimeUnit.MINUTES.sleep(5); +// } +// catch(Exception e) +// { +// e.printStackTrace(); +// } +// } + public boolean connect() { try @@ -119,4 +143,14 @@ public class Client return false; } + + public String getReceivedMessage() + { + return receivedMessage; + } + + public void setReceivedMessage(String receivedMessage) + { + this.receivedMessage = receivedMessage; + } } \ No newline at end of file diff --git a/src/server/ClientController.java b/src/server/ClientController.java index 5e7638f48e3e3307b6929a968b425e40722575a2..bcfd261f7da172aca929a6a4f291b39c277fb2b1 100644 --- a/src/server/ClientController.java +++ b/src/server/ClientController.java @@ -1,9 +1,9 @@ package server; import remote.IChatUpdate; +import remote.IClientController; import remote.IClientUpdate; import remote.IDrawingUpdate; -import remote.IClientController; import java.io.Serializable; import java.rmi.Remote; diff --git a/src/server/User.java b/src/server/User.java index 543f26e6c9056a69b382ae8dc4819d4116e95559..a79c8c6bb8c7f34404bd940feedbee095f699ad5 100644 --- a/src/server/User.java +++ b/src/server/User.java @@ -7,10 +7,11 @@ import remote.IDrawingUpdate; public class User { private String username; - private IChatUpdate IChatUpdate; - private IDrawingUpdate IDrawingUpdate; - private IClientUpdate IClientUpdate; + private remote.IChatUpdate IChatUpdate; + private remote.IDrawingUpdate IDrawingUpdate; + private remote.IClientUpdate IClientUpdate; private boolean isAdmin; + public User(String username, remote.IChatUpdate IChatUpdate, remote.IClientUpdate IClientUpdate, remote.IDrawingUpdate IDrawingUpdate) public User(String username, IChatUpdate IChatUpdate, IClientUpdate IClientUpdate, IDrawingUpdate IDrawingUpdate) { @@ -41,7 +42,11 @@ public class User return this.IChatUpdate; } - public IDrawingUpdate getIDrawingUpdate() { return this.IDrawingUpdate; } + public remote.IClientUpdate getIClientUpdate() + { + return this.IClientUpdate; + } + + public remote.IDrawingUpdate getIDrawingUpdate() { return this.IDrawingUpdate; } - public IClientUpdate getIClientUpdate() { return this.IClientUpdate; } }