src: cleanup useless importation

Signed-off-by: Jean Privat <jean@pryen.org>
nitg: intro of the FFI with java

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg: support compilation of Java files to .jar

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tests: intro tests for the FFI with Java

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
modelbuilder: correctly detect property name conflicts

The tricky part is the handling of existing constructors.

Signed-off-by: Jean Privat <jean@pryen.org>
tests: update base_virtual_type_redef.res

Signed-off-by: Jean Privat <jean@pryen.org>
tests: add error_prop_name*

Signed-off-by: Jean Privat <jean@pryen.org>
Merge: Correct detection of property name conflicts

Fixes #395
Pull-Request: #398
shoot: make android

But the game is unplayable yet without keyboard, see next patches

Signed-off-by: Jean Privat <jean@pryen.org>
shoot: add Player::going_target

A simple target used to control player with pointers.

Signed-off-by: Jean Privat <jean@pryen.org>
shoot: control player with `PointerEvent`

Signed-off-by: Jean Privat <jean@pryen.org>
lib/java: add services to support Java strings

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tests: adds a test for java strings

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/jvm: change a C function to a Nit extern method

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/jvm: rename JObject class to JavaObject

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/java: intro JavaObject::new/release_global_ref

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/java: improve documentation

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Merge: FFI with Java

Supports:

* Implementing Nit methods in Java
* Associating a Nit extern class to a Java type
* Callback Nit from Java code

To do next:

* Write the manual
* Support callbacks to super and casts (which also implies have static types in Java)
* Support Java code on Android
* Add more complexe examples, such as using an external .jar

Pull-Request: #396
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
shoot: specialize scene to add witdth and height

Signed-off-by: Jean Privat <jean@pryen.org>
shoot: add scene to sprites and use it to gather global width and height

Signed-off-by: Jean Privat <jean@pryen.org>