added up to date project
parent
fc8ba7eca1
commit
5a9e8bd5ee
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="lib" path="C:/Users/theo/Downloads/Telegram Desktop/gson-2.8.2.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="lib" path="C:/Users/theo/Downloads/Telegram Desktop/jdbc-api-1.4.jar"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
@ -0,0 +1,104 @@
|
||||
!SESSION 2019-05-07 14:13:38.893 -----------------------------------------------
|
||||
eclipse.buildId=4.11.0.I20190307-0500
|
||||
java.version=1.8.0_201
|
||||
java.vendor=Oracle Corporation
|
||||
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr_FR
|
||||
Framework arguments: -product org.eclipse.epp.package.java.product
|
||||
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
|
||||
|
||||
!ENTRY org.eclipse.egit.core 1 0 2019-05-07 14:14:51.214
|
||||
!MESSAGE Using Apache MINA sshd as ssh client.
|
||||
|
||||
!ENTRY org.eclipse.ui 4 0 2019-05-07 14:15:25.587
|
||||
!MESSAGE Unhandled event loop exception
|
||||
!STACK 0
|
||||
org.eclipse.swt.SWTException: Widget is disposed
|
||||
at org.eclipse.swt.SWT.error(SWT.java:4699)
|
||||
at org.eclipse.swt.SWT.error(SWT.java:4614)
|
||||
at org.eclipse.swt.SWT.error(SWT.java:4585)
|
||||
at org.eclipse.swt.widgets.Widget.error(Widget.java:451)
|
||||
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:350)
|
||||
at org.eclipse.swt.widgets.Composite.getChildren(Composite.java:469)
|
||||
at org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceDropAdapter.lambda$0(MarketplaceDropAdapter.java:136)
|
||||
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
|
||||
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
|
||||
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3919)
|
||||
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3550)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
|
||||
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
|
||||
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
|
||||
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
|
||||
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
|
||||
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:566)
|
||||
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
|
||||
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
|
||||
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
|
||||
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
|
||||
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
|
||||
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
|
||||
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
|
||||
at java.lang.reflect.Method.invoke(Unknown Source)
|
||||
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:661)
|
||||
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
|
||||
at org.eclipse.equinox.launcher.Main.run(Main.java:1476)
|
||||
|
||||
!ENTRY org.eclipse.ui 4 0 2019-05-07 14:15:25.598
|
||||
!MESSAGE Unhandled event loop exception
|
||||
!STACK 0
|
||||
org.eclipse.swt.SWTException: Widget is disposed
|
||||
at org.eclipse.swt.SWT.error(SWT.java:4699)
|
||||
at org.eclipse.swt.SWT.error(SWT.java:4614)
|
||||
at org.eclipse.swt.SWT.error(SWT.java:4585)
|
||||
at org.eclipse.swt.widgets.Widget.error(Widget.java:451)
|
||||
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:350)
|
||||
at org.eclipse.swt.widgets.Composite.getChildren(Composite.java:469)
|
||||
at org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceDropAdapter.lambda$0(MarketplaceDropAdapter.java:136)
|
||||
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
|
||||
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
|
||||
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3919)
|
||||
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3550)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
|
||||
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
|
||||
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
|
||||
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
|
||||
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
|
||||
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
|
||||
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:566)
|
||||
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
|
||||
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
|
||||
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
|
||||
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
|
||||
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
|
||||
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
|
||||
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
|
||||
at java.lang.reflect.Method.invoke(Unknown Source)
|
||||
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:661)
|
||||
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
|
||||
at org.eclipse.equinox.launcher.Main.run(Main.java:1476)
|
||||
!SESSION 2019-05-07 14:17:10.480 -----------------------------------------------
|
||||
eclipse.buildId=4.11.0.I20190307-0500
|
||||
java.version=1.8.0_201
|
||||
java.vendor=Oracle Corporation
|
||||
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr_FR
|
||||
Framework arguments: -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product
|
||||
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -data file:/C:/Users/theo/Documents/Java/Projet/javaProject/ -product org.eclipse.epp.package.java.product
|
||||
|
||||
!ENTRY org.eclipse.egit.core 1 0 2019-05-07 14:17:13.291
|
||||
!MESSAGE Using Apache MINA sshd as ssh client.
|
||||
!SESSION 2019-05-07 14:18:23.681 -----------------------------------------------
|
||||
eclipse.buildId=4.11.0.I20190307-0500
|
||||
java.version=1.8.0_201
|
||||
java.vendor=Oracle Corporation
|
||||
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr_FR
|
||||
Framework arguments: -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product
|
||||
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -data C:\Users\theo\Documents\Java\Projet\javaProject -product org.eclipse.epp.package.java.product
|
||||
|
||||
!ENTRY org.eclipse.egit.core 1 0 2019-05-07 14:18:26.153
|
||||
!MESSAGE Using Apache MINA sshd as ssh client.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
version=1
|
@ -0,0 +1,3 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.debug.ui.PREF_LAUNCH_PERSPECTIVES=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<launchPerspectives/>\r\n
|
||||
preferredTargets=default\:default|
|
@ -0,0 +1,2 @@
|
||||
CatalogDescriptor=http\://marketplace.eclipse.org
|
||||
eclipse.preferences.version=1
|
@ -0,0 +1,8 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.codeComplete.visibilityCheck=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.junit.content_assist_favorite_static_members_migrated=true
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.launching.PREF_VM_XML=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<vmSettings defaultVM\="57,org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType13,1557231542900" defaultVMConnector\="">\r\n<vmType id\="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">\r\n<vm id\="1557231542900" name\="jdk-12.0.1" path\="C\:\\Program Files\\Java\\jre1.8.0_211"/>\r\n</vmType>\r\n</vmSettings>\r\n
|
@ -0,0 +1,10 @@
|
||||
content_assist_number_of_computers=16
|
||||
content_assist_proposals_background=255,255,255
|
||||
content_assist_proposals_foreground=0,0,0
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.ui.formatterprofiles.version=16
|
||||
org.eclipse.jdt.ui.text.code_templates_migrated=true
|
||||
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
|
||||
spelling_locale_initialized=true
|
||||
useAnnotationsPrefPage=true
|
||||
useQuickDiffPrefPage=true
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jsch.core.hasChangedDefaultWin32SshHome=true
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.m2e.discovery.pref.projects=
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
mylyn.attention.migrated=true
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.mylyn.monitor.activity.tracking.enabled.checked=true
|
@ -0,0 +1,5 @@
|
||||
eclipse.preferences.version=1
|
||||
migrated.task.repositories.secure.store=true
|
||||
org.eclipse.mylyn.tasks.ui.filters.nonmatching=true
|
||||
org.eclipse.mylyn.tasks.ui.filters.nonmatching.encouraged=true
|
||||
org.eclipse.mylyn.tasks.ui.welcome.message=true
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
overviewRuler_migration=migrated_3.1
|
@ -0,0 +1,5 @@
|
||||
PROBLEMS_FILTERS_MIGRATE=true
|
||||
eclipse.preferences.version=1
|
||||
platformState=1557231219850
|
||||
quickStart=false
|
||||
tipsAndTricks=true
|
@ -0,0 +1,3 @@
|
||||
//org.eclipse.ui.commands/state/org.eclipse.ui.navigator.resources.nested.changeProjectPresentation/org.eclipse.ui.commands.radioState=false
|
||||
PLUGINS_NOT_ACTIVATED_ON_STARTUP=;org.eclipse.m2e.discovery;
|
||||
eclipse.preferences.version=1
|
@ -0,0 +1,4 @@
|
||||
content_assist_number_of_computers=3
|
||||
eclipse.preferences.version=1
|
||||
useAnnotationsPrefPage=true
|
||||
useQuickDiffPrefPage=true
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="org.eclipse.debug.ui.SELECT_LAUNCH_SHORTCUT_DIALOG">
|
||||
<item key="DIALOG_WIDTH" value="270"/>
|
||||
<item key="DIALOG_HEIGHT" value="436"/>
|
||||
<item key="DIALOG_FONT_NAME" value="1|Segoe UI|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|Segoe UI"/>
|
||||
</section>
|
||||
<section name="org.eclipse.debug.ui.LAUNCH_CONFIGURATIONS_DIALOG_SECTION">
|
||||
<item key="org.eclipse.debug.ui.DIALOG_SASH_WEIGHTS_1" value="237"/>
|
||||
<item key="org.eclipse.debug.ui.DIALOG_SASH_WEIGHTS_2" value="762"/>
|
||||
<item key="org.eclipse.debug.ui.EXPANDED_NODES" value=", "/>
|
||||
<item key="DIALOG_WIDTH" value="800"/>
|
||||
<item key="DIALOG_HEIGHT" value="640"/>
|
||||
<item key="DIALOG_FONT_NAME" value="1|Segoe UI|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|Segoe UI"/>
|
||||
</section>
|
||||
</section>
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizardDialog_dialogBounds.absolute">
|
||||
<item key="DIALOG_X_ORIGIN" value="420"/>
|
||||
<item key="DIALOG_Y_ORIGIN" value="0"/>
|
||||
<item key="DIALOG_WIDTH" value="526"/>
|
||||
<item key="DIALOG_HEIGHT" value="728"/>
|
||||
<item key="DIALOG_FONT_NAME" value="1|Segoe UI|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|Segoe UI"/>
|
||||
</section>
|
||||
</section>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
java
|
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
INDEX VERSION 1.131+C:\Users\theo\Documents\Java\Projet\javaProject\.metadata\.plugins\org.eclipse.jdt.core
|
||||
2178533069.index
|
Binary file not shown.
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<item key="org.eclipse.jdt.debug.ui.jre_preference_page_context.columnWidth0" value="121"/>
|
||||
<item key="org.eclipse.jdt.debug.ui.jre_preference_page_context.columnWidth1" value="194"/>
|
||||
<item key="org.eclipse.jdt.debug.ui.jre_preference_page_context.columnWidth2" value="82"/>
|
||||
<item key="org.eclipse.jdt.debug.ui.jre_preference_page_context.sortColumn" value="1"/>
|
||||
</section>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<dirs>
|
||||
<entry loc="C:\Program Files\Java\jdk-12.0.1" stamp="1557162016192"/>
|
||||
<entry loc="C:\Program Files\Java\jre1.8.0_211" stamp="1557232084287"/>
|
||||
</dirs>
|
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<libraryInfos>
|
||||
<libraryInfo home="C:\Program Files\Java\jdk-12.0.1" version="12.0.1"/>
|
||||
<libraryInfo home="C:\Program Files\Java\jre1.8.0_211" version="1.8.0_211">
|
||||
<bootpath>
|
||||
<entry path="C:\Program Files\Java\jre1.8.0_211\lib\resources.jar"/>
|
||||
<entry path="C:\Program Files\Java\jre1.8.0_211\lib\rt.jar"/>
|
||||
<entry path="C:\Program Files\Java\jre1.8.0_211\lib\sunrsasign.jar"/>
|
||||
<entry path="C:\Program Files\Java\jre1.8.0_211\lib\jsse.jar"/>
|
||||
<entry path="C:\Program Files\Java\jre1.8.0_211\lib\jce.jar"/>
|
||||
<entry path="C:\Program Files\Java\jre1.8.0_211\lib\charsets.jar"/>
|
||||
<entry path="C:\Program Files\Java\jre1.8.0_211\lib\jfr.jar"/>
|
||||
<entry path="C:\Program Files\Java\jre1.8.0_211\classes"/>
|
||||
</bootpath>
|
||||
<extensionDirs>
|
||||
<entry path="C:\Program Files\Java\jre1.8.0_211\lib\ext"/>
|
||||
<entry path="C:\Windows\Sun\Java\lib\ext"/>
|
||||
</extensionDirs>
|
||||
<endorsedDirs>
|
||||
<entry path="C:\Program Files\Java\jre1.8.0_211\lib\endorsed"/>
|
||||
</endorsedDirs>
|
||||
</libraryInfo>
|
||||
</libraryInfos>
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<typeInfoHistroy/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<qualifiedTypeNameHistroy/>
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<item key="org.eclipse.jdt.ui.last.selected.execution.enviroment" value="JavaSE-11"/>
|
||||
<item key="org.eclipse.jdt.ui.last.selected.jre.kind2" value="0"/>
|
||||
<section name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
|
||||
<item key="group_libraries" value="true"/>
|
||||
<item key="layout" value="2"/>
|
||||
<item key="rootMode" value="1"/>
|
||||
<item key="linkWithEditor" value="false"/>
|
||||
<item key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<packageExplorer group_libraries="1" layout="2" linkWithEditor="0" rootMode="1" workingSetName="Aggregate for window 1557231296038">
<customFilters userDefinedPatternsEnabled="false">
<xmlDefinedFilters>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.StaticsFilter" isEnabled="false"/>
<child filterId="org.eclipse.buildship.ui.packageexplorer.filter.gradle.buildfolder" isEnabled="true"/>
<child filterId="org.eclipse.mylyn.java.ui.MembersFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonJavaProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_.*" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonSharedProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.SyntheticMembersFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ContainedLibraryFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.HideInnerClassFilesFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter" isEnabled="true"/>
<child filterId="org.eclipse.m2e.MavenModuleFilter" isEnabled="false"/>
<child filterId="org.eclipse.buildship.ui.packageexplorer.filter.gradle.subProject" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ClosedProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.DeprecatedMembersFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.EmptyLibraryContainerFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.PackageDeclarationFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ImportDeclarationFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonJavaElementFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.LibraryFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.CuAndClassFileFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.EmptyPackageFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonPublicFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.LocalTypesFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.FieldsFilter" isEnabled="false"/>
</xmlDefinedFilters>
</customFilters>
</packageExplorer>"/>
|
||||
</section>
|
||||
<section name="completion_proposal_size">
|
||||
</section>
|
||||
<section name="quick_assist_proposal_size">
|
||||
</section>
|
||||
<section name="JavaElementSearchActions">
|
||||
</section>
|
||||
</section>
|
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<session version="1.0">
<refactoring comment="Delete resource 'projet java'" deleteContents="false" description="Delete resource 'projet java'" element1="/projet java" flags="7" id="org.eclipse.ltk.core.refactoring.delete.resources" resources="1" stamp="1557232596087"/>
<refactoring comment="Delete resource 'projet_Java'" deleteContents="false" description="Delete resource 'projet_Java'" element1="/projet_Java" flags="7" id="org.eclipse.ltk.core.refactoring.delete.resources" resources="1" stamp="1557232599612"/>
|
||||
</session>
|
@ -0,0 +1,2 @@
|
||||
1557232596087 Delete resource 'projet java'
|
||||
1557232599612 Delete resource 'projet_Java'
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="RefactoringWizard.preview">
|
||||
<item key="width" value="600"/>
|
||||
<item key="height" value="400"/>
|
||||
</section>
|
||||
</section>
|
@ -0,0 +1,3 @@
|
||||
2019-05-07 14:15:22,176 [Worker-1: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is not available. Remote download required.
|
||||
2019-05-07 14:17:19,303 [Worker-0: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read.
|
||||
2019-05-07 14:18:32,085 [Worker-1: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read.
|
@ -0,0 +1,43 @@
|
||||
<configuration scan="true">
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||||
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>OFF</level> <!-- change to DEBUG to mimic '-consolelog' behaviour -->
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<File>${org.eclipse.m2e.log.dir}/0.log</File>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
||||
<FileNamePattern>${org.eclipse.m2e.log.dir}/%i.log</FileNamePattern>
|
||||
<MinIndex>1</MinIndex>
|
||||
<MaxIndex>10</MaxIndex>
|
||||
</rollingPolicy>
|
||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
||||
<MaxFileSize>100MB</MaxFileSize>
|
||||
</triggeringPolicy>
|
||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||||
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<appender name="EclipseLog" class="org.eclipse.m2e.logback.appender.EclipseLogAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>WARN</level>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<appender name="MavenConsoleLog" class="org.eclipse.m2e.logback.appender.MavenConsoleAppender">
|
||||
</appender>
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="FILE" />
|
||||
<appender-ref ref="STDOUT" />
|
||||
<appender-ref ref="EclipseLog" />
|
||||
<appender-ref ref="MavenConsoleLog" />
|
||||
</root>
|
||||
|
||||
<logger name="com.ning.http.client" level="INFO" />
|
||||
</configuration>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<setup:Workspace
|
||||
xmi:version="2.0"
|
||||
xmlns:xmi="http://www.omg.org/XMI"
|
||||
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
|
||||
name="workspace"/>
|
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
</section>
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<list key="org.eclipse.ui.internal.wizards.datatransfer.SmartImportRootWizardPage.knownSources">
|
||||
<item value="C:\Users\theo\Documents\Java\Projet\javaProject"/>
|
||||
</list>
|
||||
<section name="ChooseWorkspaceDialogSettings">
|
||||
<item key="DIALOG_X_ORIGIN" value="380"/>
|
||||
<item key="DIALOG_Y_ORIGIN" value="185"/>
|
||||
</section>
|
||||
<section name="WORKBENCH_SETTINGS">
|
||||
<list key="ENABLED_TRANSFERS">
|
||||
</list>
|
||||
</section>
|
||||
<section name="NewWizardAction">
|
||||
</section>
|
||||
</section>
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<state reopen="true"/>
|
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="org.eclipse.ui.internal.QuickAccess">
|
||||
<item key="dialogHeight" value="-1"/>
|
||||
<item key="dialogWidth" value="-1"/>
|
||||
<list key="orderedElements">
|
||||
</list>
|
||||
<list key="orderedProviders">
|
||||
</list>
|
||||
<list key="textEntries">
|
||||
</list>
|
||||
<list key="textArray">
|
||||
</list>
|
||||
</section>
|
||||
<section name="ImportExportAction">
|
||||
</section>
|
||||
<section name="WorkbenchPreferenceDialogSettings">
|
||||
<item key="DIALOG_X_ORIGIN" value="-90"/>
|
||||
<item key="DIALOG_Y_ORIGIN" value="0"/>
|
||||
</section>
|
||||
</section>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<workingSetManager>
|
||||
<workingSet editPageId="org.eclipse.jdt.internal.ui.DynamicSourcesWorkingSet" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1557231294284_0" label="Java Main Sources" name="Java Main Sources"/>
|
||||
<workingSet editPageId="org.eclipse.jdt.internal.ui.DynamicSourcesWorkingSet" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1557231294301_1" label="Java Test Sources" name="Java Test Sources"/>
|
||||
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1557231296038_2" label="Window Working Set" name="Aggregate for window 1557231296038"/>
|
||||
</workingSetManager>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="contentassistsize">
|
||||
</section>
|
||||
</section>
|
@ -0,0 +1,3 @@
|
||||
#Tue May 07 14:18:25 CEST 2019
|
||||
org.eclipse.core.runtime=2
|
||||
org.eclipse.platform=4.11.0.v20190307-0500
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>javaProject</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -0,0 +1,112 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
|
||||
org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
|
||||
org.eclipse.jdt.core.compiler.annotation.nonnull.secondary=
|
||||
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
|
||||
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary=
|
||||
org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
|
||||
org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
|
||||
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.APILeak=warning
|
||||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
|
||||
org.eclipse.jdt.core.compiler.problem.deadCode=warning
|
||||
org.eclipse.jdt.core.compiler.problem.deprecation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
|
||||
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
|
||||
org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
|
||||
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
|
||||
org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
|
||||
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
|
||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
|
||||
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
|
||||
org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
|
||||
org.eclipse.jdt.core.compiler.problem.nullReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
|
||||
org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
|
||||
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning
|
||||
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
|
||||
org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
|
||||
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
||||
org.eclipse.jdt.core.compiler.release=enabled
|
||||
org.eclipse.jdt.core.compiler.source=1.5
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,36 @@
|
||||
|
||||
{
|
||||
"listePersonnage":[
|
||||
{
|
||||
"nom":"test",
|
||||
"pVieMax":10,
|
||||
"pVie":10,
|
||||
"pAttaque":20,
|
||||
"arme":"",
|
||||
"armure":"",
|
||||
"bourse":100
|
||||
}
|
||||
],
|
||||
"listeSalle":[
|
||||
|
||||
{"positionX":0,
|
||||
"positionY":0,
|
||||
"sortie":false,
|
||||
"monstre":[{"nom":"premiermonstre",
|
||||
"pAttaque":5}
|
||||
],
|
||||
"porte":[{"ouvert":true,
|
||||
"position":"H"}]
|
||||
}
|
||||
],
|
||||
"listeArme":[
|
||||
{"nom":"arme1",
|
||||
"prix":10,
|
||||
"resistance":10,
|
||||
"pArme":10}],
|
||||
"listeArmure":[ {"nom":"armure1",
|
||||
"prix":10,
|
||||
"resistance":10,
|
||||
"pArmure":10}]
|
||||
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,26 @@
|
||||
package modeles;
|
||||
|
||||
/**
|
||||
* @author flavien
|
||||
*
|
||||
*/
|
||||
public class Arme extends Objet {
|
||||
|
||||
private int pArme;
|
||||
|
||||
public int getpArme() {
|
||||
return this.pArme;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return "Arme";
|
||||
}
|
||||
|
||||
public Arme(String nm, int valeur, int resistance, int attaque) {
|
||||
super(nm, valeur, resistance);
|
||||
this.pArme=attaque;
|
||||
}
|
||||
|
||||
/* public void effectArme ? (poison, incinération, gel, saignement, paralysie,... */
|
||||
}
|
||||
|
@ -0,0 +1,28 @@
|
||||
|
||||
package modeles;
|
||||
|
||||
/**
|
||||
* @author flavien
|
||||
*
|
||||
*/
|
||||
public class Armure extends Objet {
|
||||
|
||||
private int pArmure;
|
||||
|
||||
public int getpArmure() {
|
||||
return this.pArmure;
|
||||
}
|
||||
|
||||
public String getType () {
|
||||
return "Armure";
|
||||
}
|
||||
|
||||
public Armure(String nm, int valeur, int resistance,int efficacité) {
|
||||
super(nm, valeur, resistance);
|
||||
this.pArmure=efficacité;
|
||||
}
|
||||
|
||||
|
||||
/* public armureEffect(...) */
|
||||
}
|
||||
|
@ -0,0 +1,33 @@
|
||||
package modeles;
|
||||
|
||||
public class Bourse extends Objet {
|
||||
private int valeur;
|
||||
|
||||
public Bourse(int somme) {
|
||||
super("bourse",somme,99999999);
|
||||
|
||||
}
|
||||
|
||||
public int getValeur() {
|
||||
return this.valeur;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return "Bourse";
|
||||
}
|
||||
|
||||
public int Achat(int cout) { //commande pour vérifier si la personne peut acheter un objet et pour faire le décompte de la thunasse
|
||||
if (cout <= this.valeur) return (this.valeur=this.valeur-cout);
|
||||
else {
|
||||
int manque = cout-this.valeur;
|
||||
System.out.println("L'achat est impossible, il vous manque : "+manque);
|
||||
return manque;
|
||||
}
|
||||
}
|
||||
|
||||
public int fusionBourse(Bourse sacPiece) {
|
||||
this.valeur += sacPiece.valeur;
|
||||
return this.valeur;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package modeles;
|
||||
|
||||
import java.util.InputMismatchException;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class Clavier {
|
||||
private static Scanner scanner = new Scanner(System.in);
|
||||
|
||||
public static String entrerClavierString() {
|
||||
String chaine="";
|
||||
|
||||
try {
|
||||
chaine = scanner.next();
|
||||
} catch (InputMismatchException e) {
|
||||
System.out.println("La valeur lu au clavier n'est pas une chaine");
|
||||
}
|
||||
return chaine;
|
||||
}
|
||||
|
||||
public static int entrerClavierInt() {
|
||||
int entier=0;
|
||||
try {
|
||||
entier = scanner.nextInt();
|
||||
} catch (InputMismatchException e) {
|
||||
System.out.println("La valeur lu au clavier n'est pas un entier");
|
||||
}
|
||||
return entier;
|
||||
}
|
||||
|
||||
public static boolean entrerClavierBoolean() {
|
||||
boolean bool=true;
|
||||
try {
|
||||
bool = scanner.nextBoolean();
|
||||
} catch (InputMismatchException e) {
|
||||
System.out.println("La valeur lu au clavier n'est pas un booléen");
|
||||
}
|
||||
return bool;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
package modeles;
|
||||
|
||||
/**
|
||||
* @author Nicolas
|
||||
*
|
||||
*/
|
||||
public class EtreVivant {
|
||||
|
||||
private String nom;
|
||||
protected int pVieMax;
|
||||
protected int pVie;
|
||||
private int pAttaque;
|
||||
protected Salle salle;
|
||||
private boolean vivant;
|
||||
/**
|
||||
* @param nom
|
||||
* @param pVieMax
|
||||
* @param pVie
|
||||
* @param pAttaque
|
||||
* @param salle
|
||||
* @param vivant
|
||||
*/
|
||||
public EtreVivant(String nom, int pVieMax, int pAttaque) {
|
||||
super();
|
||||
this.nom = nom;
|
||||
this.pVieMax = pVieMax;
|
||||
this.pVie = pVieMax;
|
||||
this.pAttaque = pAttaque;
|
||||
this.salle = salle;
|
||||
this.vivant = true;
|
||||
}
|
||||
/**
|
||||
* @return the nom
|
||||
*/
|
||||
public String getNom() {
|
||||
return nom;
|
||||
}
|
||||
/**
|
||||
* @param nom the nom to set
|
||||
*/
|
||||
public void setNom(String nom) {
|
||||
this.nom = nom;
|
||||
}
|
||||
/**
|
||||
* @return the pVieMax
|
||||
*/
|
||||
public int getpVieMax() {
|
||||
return pVieMax;
|
||||
}
|
||||
/**
|
||||
* @param pVieMax the pVieMax to set
|
||||
*/
|
||||
public void setpVieMax(int pVieMax) {
|
||||
this.pVieMax = pVieMax;
|
||||
}
|
||||
/**
|
||||
* @return the pVie
|
||||
*/
|
||||
public int getpVie() {
|
||||
return pVie;
|
||||
}
|
||||
/**
|
||||
* @param pVie the pVie to set
|
||||
*/
|
||||
public void setpVie(int pVie) {
|
||||
this.pVie = pVie;
|
||||
}
|
||||
/**
|
||||
* @return the pAttaque
|
||||
*/
|
||||
public int getpAttaque() {
|
||||
return pAttaque;
|
||||
}
|
||||
/**
|
||||
* @param pAttaque the pAttaque to set
|
||||
*/
|
||||
public void setpAttaque(int pAttaque) {
|
||||
this.pAttaque = pAttaque;
|
||||
}
|
||||
/**
|
||||
* @return the salle
|
||||
*/
|
||||
public Salle getSalle() {
|
||||
return salle;
|
||||
}
|
||||
/**
|
||||
* @param salle the salle to set
|
||||
*/
|
||||
public void setSalle(Salle salle) {
|
||||
this.salle = salle;
|
||||
}
|
||||
/**
|
||||
* @return the vivant
|
||||
*/
|
||||
public boolean isVivant() {
|
||||
return vivant;
|
||||
}
|
||||
/**
|
||||
* @param vivant the vivant to set
|
||||
*/
|
||||
public void setVivant(boolean vivant) {
|
||||
this.vivant = vivant;
|
||||
}
|
||||
|
||||
public int getPvMax() {
|
||||
return this.pVieMax;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,28 @@
|
||||
package modeles;
|
||||
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileReader;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
|
||||
public class Generateur {
|
||||
|
||||
public Labyrinthe labyrithe() {
|
||||
BufferedReader bfr= null;
|
||||
try {
|
||||
bfr = new BufferedReader(new FileReader("C:\\Users\\theo\\Documents\\Java\\Projet\\javaProject\\src\\modeles\\lab.json"));
|
||||
} catch (FileNotFoundException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
//FileReader file = new FileReader(json);
|
||||
Gson gson = new Gson();
|
||||
//String str="{\"positionX\":0,\"positionY\":0,\"sortie\":false,\"monstre\":[{\"nom\":\"premier monstre\",\"pAttaque\":5}],\"porte\":[{\"ouvert\":true, \"position\":\"H\"}]}";
|
||||
Labyrinthe labyrithe = gson.fromJson(bfr, Labyrinthe.class);
|
||||
return labyrithe;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package modeles;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author flavien
|
||||
*
|
||||
*/
|
||||
public class Labyrinthe {
|
||||
protected List<Personnage> listePersonnage=new ArrayList<Personnage>();
|
||||
protected List<Arme> listeArme= new ArrayList<Arme>();
|
||||
protected List<Armure> listeArmure=new ArrayList<Armure>();
|
||||
protected List<Porte> listePorte=new ArrayList<Porte>();
|
||||
protected List<Monstre> listeMonstre=new ArrayList<Monstre>();
|
||||
|
||||
public void generateLabyrinthe(int nInstance) {
|
||||
/*switch (nInstance)
|
||||
case 1 :
|
||||
return Labyrinthe1();
|
||||
break;
|
||||
}*/
|
||||
labyrinthe1();
|
||||
}
|
||||
|
||||
public void labyrinthe1() {
|
||||
Arme arme=new Arme("Epee en bois",5,10,2);
|
||||
listeArme.add(arme);
|
||||
Arme arme1=new Arme("Epee en acier",15,10,4);
|
||||
listeArme.add(arme1);
|
||||
Arme arme2=new Arme("Epee en acier solide",25,20,4);
|
||||
listeArme.add(arme2);
|
||||
Arme arme3=new Arme("Epee de cristal",30,5,7);
|
||||
listeArme.add(arme3);
|
||||
Arme arme4=new Arme("Lame Blanche",200,30,10);
|
||||
listeArme.add(arme4);
|
||||
|
||||
Armure armure1=new Armure("armure de cuir",10,10,5);
|
||||
listeArmure.add(armure1);
|
||||
Armure armure=new Armure("armure en papier",5,5,2);
|
||||
listeArmure.add(armure);
|
||||
Armure armure2=new Armure("armure de fer",30,10,5);
|
||||
listeArmure.add(armure2);
|
||||
Armure armure3=new Armure("Le kevlar",150,15,8);
|
||||
listeArmure.add(armure3);
|
||||
|
||||
Personnage perso=new Personnage("Aramis",10,1);
|
||||
listePersonnage.add(perso);
|
||||
Personnage perso2=new Personnage("Boromis",8,2);
|
||||
listePersonnage.add(perso2);
|
||||
|
||||
Monstre mons = new Monstre("pantin en bois",5, 1);
|
||||
Monstre mons2= new Monstre("araignee geante agressive", 7, 5);
|
||||
Monstre mons3=new Monstre("pantin de fer",40,1);
|
||||
Monstre mons4 = new Monstre("Golem de Jade",40, 3);
|
||||
Monstre mons5 = new Monstre("Neltharion le Gardeterre",100,10);
|
||||
Monstre mons6 = new Monstre("Neltharion, le Destructeur", 80,20);
|
||||
|
||||
this.listeMonstre.add(mons);
|
||||
this.listeMonstre.add(mons2);
|
||||
this.listeMonstre.add(mons3);
|
||||
this.listeMonstre.add(mons4);
|
||||
this.listeMonstre.add(mons5);
|
||||
this.listeMonstre.add(mons6);
|
||||
|
||||
List<Integer> listeEnnemie=new ArrayList<Integer>();
|
||||
for (int i =0; i<this.listeMonstre.size();i++) {
|
||||
listeEnnemie.add(i);
|
||||
}
|
||||
|
||||
Marche marche = new Marche(listeEnnemie);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package modeles;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author flavien
|
||||
*
|
||||
*/
|
||||
public class Marche extends Salle {
|
||||
private List<Integer> listeObjet=new ArrayList<Integer>();
|
||||
public Marche(List<Integer> listeEnnemie) {
|
||||
super(0,0, false, listeEnnemie);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
|
||||
//methode pour enregistrer la liste objet (il faudra sans doute changer le type de listeObjet) settingListeObjet(Labyrinthe lab)
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package modeles;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class Menu {
|
||||
|
||||
public String menuCombat(Monstre mons, Personnage perso) {
|
||||
int degat;
|
||||
int reponse = 0;
|
||||
System.out.println("Un monstre du nom de "+mons.getNom()+" se présente devant vous et il est très en colère :");
|
||||
while (true){
|
||||
System.out.println("\t - 1° attaquer\n\t - 2° Potion \n\t- 3° Fuir");
|
||||
reponse=Clavier.entrerClavierInt();
|
||||
switch (reponse) {
|
||||
case 1:
|
||||
degat = perso.attaquer(mons);
|
||||
System.out.println("Vous avez infligé "+degat+" à votre adversaire.");
|
||||
if (!mons.isVivant()) {
|
||||
perso.salle.cle();
|
||||
System.out.println(perso.obtenirBourse());
|
||||
return "Votre ennemie trépasse et vous obtenez la clé des portes de la salle.";
|
||||
} else {
|
||||
System.out.println("Au tour de votre adversaire. Il attaque préparez vous ! ");
|
||||
System.out.println("il vous inflige "+ mons.attaquer(perso)+".");
|
||||
if (!perso.isVivant()) {
|
||||
return "C'est ainsi que vous trépassez sous les coups des ténèbres. Reposez vous héros... Vous avez l'éternité.";
|
||||
}
|
||||
else System.out.println("votre ennemie n'est pas encore à bout achever le !");
|
||||
}
|
||||
break;
|
||||
|
||||
case 2 :
|
||||
if (!perso.getPotion().isEmpty()) {
|
||||
perso.utiliser(perso.getPotion().remove(0));
|
||||
System.out.println("Vous avez utilisé une potion. Votre vie est maintenant au maximum.");
|
||||
} else {
|
||||
System.out.println("Il ne vous reste plus de potion. Désolé.");
|
||||
}
|
||||
break;
|
||||
|
||||
case 3 :
|
||||
System.out.println("Vous tentez de fuir.");
|
||||
Random rd = new Random();
|
||||
if (rd.nextInt(100)<50) {
|
||||
return "Vous avez fuit.";
|
||||
} else {
|
||||
System.out.println("Ce fut un échec !");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package modeles;
|
||||
|
||||
/**
|
||||
* @author Nicolas
|
||||
*
|
||||
*/
|
||||
public class Monstre extends EtreVivant {
|
||||
/**
|
||||
* @param arme
|
||||
* @param armure
|
||||
* @param bourse
|
||||
*/
|
||||
public Monstre(String nom,int pVimax, int pAttaque) {
|
||||
super(nom, pVimax, pAttaque);
|
||||
|
||||
}
|
||||
|
||||
public int attaquer(Personnage def) {
|
||||
int pAttaqueLoc;
|
||||
pAttaqueLoc=this.getpAttaque()-(def.getArmure().getpArmure());
|
||||
def.pVie=pAttaqueLoc;
|
||||
return pAttaqueLoc;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package modeles;
|
||||
|
||||
|
||||
public abstract class Objet {
|
||||
private String nom;
|
||||
private int prix;
|
||||
private int usure;
|
||||
private Personnage proprietaire;
|
||||
|
||||
|
||||
public Objet(String nm, int valeur, int resistance) {
|
||||
this.nom=nm;
|
||||
this.prix=valeur;
|
||||
this.usure=resistance;
|
||||
}
|
||||
|
||||
public int getPrix() {
|
||||
return this.prix;
|
||||
}
|
||||
|
||||
public String getNom() {
|
||||
return this.nom;
|
||||
}
|
||||
|
||||
public int getUsure() {
|
||||
return this.usure;
|
||||
}
|
||||
|
||||
public void utilisation() { // diminue la résistance de l'objet
|
||||
this.usure--;
|
||||
if (this.usure == 0) System.out.println(this.nom+"s'est cassée !");
|
||||
}
|
||||
|
||||
public abstract String getType();
|
||||
|
||||
public Personnage getProprietaire() {
|
||||
return this.proprietaire;
|
||||
}
|
||||
|
||||
public void setProprietaire(Personnage perso) {
|
||||
this.proprietaire=perso;
|
||||
}
|
||||
|
||||
public void lacher() {
|
||||
this.proprietaire=null;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,98 @@
|
||||
|
||||
package modeles;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
public class Personnage extends EtreVivant {
|
||||
|
||||
private Arme arme;
|
||||
private Armure armure;
|
||||
private Bourse bourse;
|
||||
private List<Potion> listepotion= new ArrayList<Potion>();
|
||||
|
||||
public Personnage(String nom, int pVieMax,int pAttaque) {
|
||||
super(nom, pVieMax, pAttaque);
|
||||
}
|
||||
|
||||
public void equiper(Arme arme) {
|
||||
arme.setProprietaire(this);
|
||||
this.arme=arme;
|
||||
}
|
||||
public void equiper(Armure armure) {
|
||||
armure.setProprietaire(this);
|
||||
this.armure=armure;
|
||||
}
|
||||
|
||||
public void utiliser(Potion potion) {
|
||||
soin();
|
||||
}
|
||||
|
||||
public void seDeplacer(Salle salle) {
|
||||
this.salle=salle;
|
||||
}
|
||||
|
||||
public void allerMarche(Salle marche){
|
||||
this.salle=marche;
|
||||
}
|
||||
|
||||
public List<Potion> getPotion() {
|
||||
return this.listepotion;
|
||||
}
|
||||
|
||||
public void gagnerUnePotion() {
|
||||
Potion potion=new Potion(100);
|
||||
listepotion.add(potion);
|
||||
}
|
||||
|
||||
public void soin() {
|
||||
this.pVie=this.pVieMax;
|
||||
}
|
||||
|
||||
public int attaquer(Monstre monstre) {
|
||||
if(arme!=null) {
|
||||
monstre.pVie=monstre.pVie-(arme.getpArme()+getpAttaque());
|
||||
return arme.getpArme()+getpAttaque();
|
||||
}
|
||||
else {
|
||||
monstre.pVie=monstre.pVie=getpAttaque();
|
||||
return getpAttaque();
|
||||
}
|
||||
}
|
||||
|
||||
public Bourse getBourse() {
|
||||
return this.bourse;
|
||||
}
|
||||
|
||||
public int getValeurBourse() {
|
||||
return this.getBourse().getValeur();
|
||||
}
|
||||
/**
|
||||
* @return the arme
|
||||
*/
|
||||
public Arme getArme() {
|
||||
return arme;
|
||||
}
|
||||
|
||||
public String obtenirBourse() {
|
||||
Random rd = new Random();
|
||||
this.bourse.fusionBourse(new Bourse(rd.nextInt(20)));
|
||||
String str="Vous avez gagnez une bourse. Vous comptez vos pièces... Genial !! Vous avez désormais ".concat(String.valueOf(this.getValeurBourse()).concat(" pièces d'argent !"));
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the armure
|
||||
*/
|
||||
public Armure getArmure() {
|
||||
return armure;
|
||||
}
|
||||
|
||||
public void soin(int heal) {
|
||||
if (pVie+heal > pVieMax)pVie=pVieMax;
|
||||
else pVie+=heal;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,42 @@
|
||||
package modeles;
|
||||
/*
|
||||
* @author flavien
|
||||
*/
|
||||
|
||||
public class Porte {
|
||||
private int id =0;
|
||||
private boolean ouvert;
|
||||
private Salle salle1;
|
||||
private Salle salle2;
|
||||
|
||||
public Porte() {
|
||||
|
||||
}
|
||||
|
||||
public Porte(int id,boolean ouvert, Salle salle,Salle salle2) {
|
||||
super();
|
||||
this.ouvert = ouvert;
|
||||
this.salle1 = salle;
|
||||
this.salle2 = salle2;
|
||||
this.id++;
|
||||
}
|
||||
public boolean estOuverte() {
|
||||
return ouvert;
|
||||
}
|
||||
|
||||
public void ouverture() {
|
||||
this.ouvert= true;
|
||||
}
|
||||
|
||||
public Salle prochainSaut(Salle s) {
|
||||
if (s==this.salle1) {
|
||||
return salle2;
|
||||
} else return salle1;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package modeles;
|
||||
|
||||
/**
|
||||
* @author flavien
|
||||
*
|
||||
*/
|
||||
public class Potion extends Objet {
|
||||
|
||||
public String getType() {
|
||||
return "Potion";
|
||||
}
|
||||
|
||||
public Potion(int valeur) {
|
||||
super("potion", valeur, 1);
|
||||
}
|
||||
|
||||
public void utilisation() {
|
||||
super.utilisation();
|
||||
this.getProprietaire().soin(this.getProprietaire().getpVieMax());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package modeles;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javafx.util.Pair;
|
||||
|
||||
/**
|
||||
* @author flavien
|
||||
*
|
||||
*/
|
||||
public class Salle {
|
||||
private Pair<Integer,Integer> coordonnees;
|
||||
private boolean sortie;
|
||||
private List<Porte> listePorte= new ArrayList<Porte>();
|
||||
private List<Integer> listeEnnemie= new ArrayList<Integer>(); //indice de monstre
|
||||
|
||||
public Salle(int x, int y, boolean out) {
|
||||
this.coordonnees=new Pair<Integer,Integer>(x,y);
|
||||
this.sortie=out;
|
||||
|
||||
}
|
||||
|
||||
public Salle(int positionX, int positionY, boolean sortie, List<Integer> listeEnnemie) {
|
||||
this.coordonnees=new Pair<Integer,Integer>(positionX,positionY);
|
||||
this.sortie = sortie;
|
||||
this.listeEnnemie = listeEnnemie;
|
||||
}
|
||||
|
||||
public Salle(int positionX, int positionY, boolean sortie, List<Integer> listeEnnemie, Porte sal) {
|
||||
this.coordonnees=new Pair<Integer,Integer>(positionX,positionY);
|
||||
this.sortie = sortie;
|
||||
this.listeEnnemie = listeEnnemie;
|
||||
this.listePorte.add(sal);
|
||||
}
|
||||
|
||||
|
||||
public String getType(){
|
||||
return "salle";
|
||||
}
|
||||
|
||||
public Pair<Integer,Integer> getCoordonnes() {
|
||||
return this.coordonnees;
|
||||
}
|
||||
|
||||
public boolean estSortie() {
|
||||
return sortie;
|
||||
}
|
||||
|
||||
public void cle() {
|
||||
if (listeEnnemie.isEmpty()) {
|
||||
for (Porte p : listePorte) {
|
||||
p.ouverture();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean estVide() {
|
||||
return listeEnnemie.isEmpty();
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
|
||||
{
|
||||
"listePersonnage":[
|
||||
{
|
||||
"nom":"test",
|
||||
"pVieMax":10,
|
||||
"pVie":10,
|
||||
"pAttaque":20,
|
||||
"arme":"",
|
||||
"armure":"",
|
||||
"bourse":100
|
||||
}
|
||||
],
|
||||
"listeSalle":[
|
||||
|
||||
{"positionX":0,
|
||||
"positionY":0,
|
||||
"sortie":false,
|
||||
"monstre":[{"nom":"premiermonstre",
|
||||
"pAttaque":5}
|
||||
],
|
||||
"porte":[{"ouvert":true,
|
||||
"position":"H"}]
|
||||
}
|
||||
],
|
||||
"listeArme":[
|
||||
{"nom":"arme1",
|
||||
"prix":10,
|
||||
"resistance":10,
|
||||
"pArme":10}],
|
||||
"listeArmure":[ {"nom":"armure1",
|
||||
"prix":10,
|
||||
"resistance":10,
|
||||
"pArmure":10}]
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package modeles;
|
||||
|
||||
public class main {
|
||||
|
||||
/*public static void main(String[] args) {
|
||||
|
||||
Generateur gene = new Generateur();
|
||||
Labyrinthe lab = gene.labyrithe();
|
||||
//lab.getListeSalle();
|
||||
|
||||
Arme arme = new Arme("arme1", 10, 10, 10);
|
||||
System.out.println("");
|
||||
|
||||
}*/
|
||||
|
||||
|
||||
}
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue