aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2017-12-09 18:17:36 +0100
committerpacien2017-12-09 18:17:36 +0100
commit1a9785dca6f875ecf1c34befc1b5abf7829eb9e5 (patch)
treeba705f98b68b941875c8c9c9114570c60897c5e1
downloadwallj-1a9785dca6f875ecf1c34befc1b5abf7829eb9e5.tar.gz
Bootstrap project
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-rw-r--r--.gitignore12
-rw-r--r--build.xml77
-rw-r--r--lib/jbox2d-library-2.2.1.1.jarbin0 -> 286025 bytes
-rw-r--r--lib/zen5.jarbin0 -> 13596 bytes
-rw-r--r--readme.md22
-rw-r--r--src/docs/dev.md30
-rw-r--r--src/docs/report-template.tex732
-rw-r--r--src/docs/user.md27
-rw-r--r--src/java/fr/umlv/java/wallj/Main.java14
9 files changed, 914 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..957c765
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
1*
2!*/
3
4!.gitignore
5!.gitkeep
6
7!build.xml
8!lib/*.jar
9!*.java
10!*.txt
11!*.md
12!*.tex
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..8cd9e7e
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,77 @@
1<project name="Wall-J" default="zip" basedir=".">
2
3 <property name="dir.out" value="."/>
4 <property name="dir.lib" value="lib"/>
5 <property name="dir.src" value="src"/>
6 <property name="dir.javasrc" value="${dir.src}/java"/>
7 <property name="dir.docsrc" value="${dir.src}/docs"/>
8 <property name="dir.classes" value="classes"/>
9 <property name="dir.docs" value="docs"/>
10 <property name="dir.apidoc" value="${dir.docs}/doc"/>
11 <property name="dir.zipsubdir" value="Naili_Tran-Girard_WallJ.zip"/>
12
13 <property name="file.jar" value="${dir.out}/wallj.jar"/>
14 <property name="file.zip" value="${dir.out}/NailiTran-Girard_WallJ.zip"/>
15 <property name="file.ant" value="build.xml"/>
16 <property name="file.readme" value="readme.md"/>
17
18 <property name="class.entry" value="fr.umlv.java.wallj.Main"/>
19
20 <target name="compile">
21 <mkdir dir="${dir.classes}"/>
22 <javac srcdir="${dir.src}" destdir="${dir.classes}"/>
23 </target>
24
25 <target name="jar" depends="compile">
26 <jar jarfile="${file.jar}" basedir="${dir.classes}">
27 <manifest>
28 <attribute name="Main-Class" value="${class.entry}"/>
29 </manifest>
30 </jar>
31 </target>
32
33 <target name="javadoc">
34 <mkdir dir="${dir.apidoc}"/>
35 <javadoc sourcepath="${dir.javasrc}" destdir="${dir.apidoc}"/>
36 </target>
37
38 <target name="docs">
39 <mkdir dir="${dir.docs}"/>
40 <apply executable="pandoc" dest="${dir.docs}">
41 <arg value="--template"/>
42 <arg value="${dir.docsrc}/report-template.tex"/>
43 <arg value="--number-sections"/>
44 <arg value="--listings"/>
45 <arg value="--output"/>
46 <targetfile/>
47 <srcfile/>
48 <fileset dir="${dir.docsrc}" includes="*.md"/>
49 <mapper type="glob" from="*.md" to="*.pdf"/>
50 </apply>
51 </target>
52
53 <target name="zip" depends="jar,docs">
54 <zip destfile="${file.zip}" encoding="UTF-8">
55 <zipfileset dir="." excludes="**/*" prefix="${dir.zipsubdir}/${dir.apidoc}"/>
56 <zipfileset dir="." excludes="**/*" prefix="${dir.zipsubdir}/${dir.classes}"/>
57
58 <zipfileset dir="${dir.lib}" includes="*.jar" prefix="${dir.zipsubdir}/${dir.lib}"/>
59 <zipfileset dir="${dir.javasrc}" includes="**/*.java" prefix="${dir.zipsubdir}/${dir.javasrc}"/>
60 <zipfileset dir="${dir.docs}" includes="*.pdf" prefix="${dir.zipsubdir}/${dir.docs}"/>
61
62 <zipfileset file="${file.ant}" prefix="${dir.zipsubdir}"/>
63 <zipfileset file="${file.jar}" prefix="${dir.zipsubdir}"/>
64 <zipfileset file="${file.readme}" prefix="${dir.zipsubdir}"/>
65 </zip>
66 </target>
67
68 <target name="clean">
69 <delete includeEmptyDirs="true" failonerror="false">
70 <fileset dir="${dir.classes}"/>
71 <fileset dir="${dir.docs}"/>
72 <fileset file="${file.jar}"/>
73 <fileset file="${file.zip}"/>
74 </delete>
75 </target>
76
77</project>
diff --git a/lib/jbox2d-library-2.2.1.1.jar b/lib/jbox2d-library-2.2.1.1.jar
new file mode 100644
index 0000000..a18bd24
--- /dev/null
+++ b/lib/jbox2d-library-2.2.1.1.jar
Binary files differ
diff --git a/lib/zen5.jar b/lib/zen5.jar
new file mode 100644
index 0000000..a083786
--- /dev/null
+++ b/lib/zen5.jar
Binary files differ
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..9f86149
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,22 @@
1UPEM / Java / Wall-J
2====================
3
4A space cleaner game written in Java.
5Semester project part of the Java introductory course at UPEM.
6
7Specs.: http://monge.univ-mlv.fr/ens/Licence/L3/2017-2018/Java/project.php
8
9
10Authors
11-------
12
13- Pacien TRAN-GIRARD
14- Adam NAILI
15
16
17Copyright
18---------
19
20Project licensed under the CC BY-NC-SA 4.0. All rights reserved to the authors.
21
22Embedded third-party dependencies are licensed under their own respective terms.
diff --git a/src/docs/dev.md b/src/docs/dev.md
new file mode 100644
index 0000000..2a40e1b
--- /dev/null
+++ b/src/docs/dev.md
@@ -0,0 +1,30 @@
1---
2title: "Wall-J Devel. notes"
3author: [Pacien TRAN-GIRARD, Adam NAILI]
4date: 2017-12-09
5...
6
7# Project description
8
9## Licensing
10
11## Credits
12
13---
14
15# Compilation and usage
16
17## Building the project
18
19## Running the program
20
21---
22
23# Implementation details
24
25## Modules
26
27## Additional features
28
29## Notes
30
diff --git a/src/docs/report-template.tex b/src/docs/report-template.tex
new file mode 100644
index 0000000..fc98ced
--- /dev/null
+++ b/src/docs/report-template.tex
@@ -0,0 +1,732 @@
1%%
2% Copyright (c) 2017, Pascal Wagler;
3% Copyright (c) 2014--2017, John MacFarlane
4%
5% All rights reserved.
6%
7% Redistribution and use in source and binary forms, with or without
8% modification, are permitted provided that the following conditions
9% are met:
10%
11% - Redistributions of source code must retain the above copyright
12% notice, this list of conditions and the following disclaimer.
13%
14% - Redistributions in binary form must reproduce the above copyright
15% notice, this list of conditions and the following disclaimer in the
16% documentation and/or other materials provided with the distribution.
17%
18% - Neither the name of John MacFarlane nor the names of other
19% contributors may be used to endorse or promote products derived
20% from this software without specific prior written permission.
21%
22% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23% "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24% LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25% FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26% COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27% INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28% BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29% LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30% CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31% LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32% ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33% POSSIBILITY OF SUCH DAMAGE.
34%%
35
36%%
37% For usage information and examples visit the GitHub page of this template:
38% https://github.com/Wandmalfarbe/pandoc-latex-template
39%%
40
41\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
42\PassOptionsToPackage{hyphens}{url}
43$if(colorlinks)$
44\PassOptionsToPackage{dvipsnames,svgnames*,x11names*,table}{xcolor}
45$endif$
46%
47\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$else$a4paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{scrartcl}
48$if(beamer)$
49\setbeamertemplate{caption}[numbered]
50\setbeamertemplate{caption label separator}{: }
51\setbeamercolor{caption name}{fg=normal text.fg}
52\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
53$endif$
54$if(beamerarticle)$
55\usepackage{beamerarticle} % needs to be loaded first
56$endif$
57$if(fontfamily)$
58\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
59$else$
60\usepackage{lmodern}
61$endif$
62$if(linestretch)$
63\usepackage{setspace}
64\setstretch{$linestretch$}
65$endif$
66\usepackage{amssymb,amsmath}
67\usepackage{ifxetex,ifluatex}
68\usepackage{fixltx2e} % provides \textsubscript
69\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
70 \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
71 \usepackage[utf8]{inputenc}
72 \usepackage{textcomp} % provides euro and other symbols
73\else % if luatex or xelatex
74$if(mathspec)$
75 \ifxetex
76 \usepackage{mathspec}
77 \else
78 \usepackage{unicode-math}
79 \fi
80$else$
81 \usepackage{unicode-math}
82$endif$
83 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
84$for(fontfamilies)$
85 \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
86$endfor$
87$if(mainfont)$
88 \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
89$endif$
90$if(sansfont)$
91 \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
92$endif$