blob: e8bec09b98b6449482a97031b848a2b12a77fd30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
\chapter{External packages}
Some external packages that are not part of the Java Standard Development Kit
were used in this project.
\section{StretchIcon}
StretchIcon enabled the resize of the Room illustration according to the
window's size in the rich Swing GUI, keeping a correct ratio.
\section{Guava}
Guava, from Google, contains several collections, caching, primitives support,
concurrency, annotations and string processing utilities.
\section{Lombok}
Lombok helped avoiding writing dozens of getters and setters by replacing them
with shorter annotations.
\section{Intrinsic Map}
As Items were already containing there names in a field, HashMap<String, Item>
were redundant. IntrinsicMap<Item> and the Mappable interface were created to
avoid this redundance.
\section{Google Web Toolkit}
The Google Web Toolkit was used to create the web version of the game.
It permitted the compilation of Java sources to Javascript code executable
directly inside a web browser, without requiring the Java Virtual Machine.
\section{JSON Simple}
JSON Simple was used to implement the save and load functionalities by enabling
the serialisation of the game datas into JSON Objects.
\subsection{rejava.io}
As some packages required by JSON Simple were not compatible with GWT,
the standard Java StringReader and StringWriter classes were partially
rewritten.
|