pending files commited
don't really knwon what i am doing here, commit pending code ... Signed-off-by: philippe lhardy <philippe.lhardy@astrolabe.coop>
This commit is contained in:
7
java/out/production/laby/.classpath
Normal file
7
java/out/production/laby/.classpath
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path=""/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
||||
23
java/out/production/laby/.project
Normal file
23
java/out/production/laby/.project
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>Karmazoff</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
15
java/out/production/laby/LabelsBundle.properties
Normal file
15
java/out/production/laby/LabelsBundle.properties
Normal file
@@ -0,0 +1,15 @@
|
||||
width = Width
|
||||
height = Height
|
||||
depth = Depth
|
||||
north = North
|
||||
south = South
|
||||
east = East
|
||||
west = West
|
||||
resolve = Resolve
|
||||
create = Create
|
||||
save = Save
|
||||
quit = Quit
|
||||
title = A Maz ing
|
||||
seed = seed
|
||||
load = Load
|
||||
reverse = Reverse
|
||||
15
java/out/production/laby/LabelsBundle_fr.properties
Normal file
15
java/out/production/laby/LabelsBundle_fr.properties
Normal file
@@ -0,0 +1,15 @@
|
||||
width = Largeur
|
||||
height = Hauteur
|
||||
depth = Profondeur
|
||||
north = Nord
|
||||
south = Sud
|
||||
east = Est
|
||||
west = Ouest
|
||||
resolve = Résoudre
|
||||
create = Créer
|
||||
save = Sauver
|
||||
quit = Quitter
|
||||
title = La Bireinte
|
||||
seed = graine
|
||||
load = Charger
|
||||
reverse = Inverse
|
||||
59
java/out/production/laby/Makefile
Normal file
59
java/out/production/laby/Makefile
Normal file
@@ -0,0 +1,59 @@
|
||||
PACKAGE=org.artisanlogiciel.games
|
||||
PACKAGE_DIR=$(subst .,/,$(PACKAGE))
|
||||
# maps with ant build.xml
|
||||
OUT=../build
|
||||
# external libraries
|
||||
LIBS=../libs/artgaphics-0.1.0.jar
|
||||
EDITOR=emacs
|
||||
|
||||
$(OUT):
|
||||
echo "[ERROR] Missing $(OUT)"
|
||||
# mkdir -p $(OUT)
|
||||
|
||||
clean:
|
||||
@find $(PACKAGE_DIR) -name "*.class" -type f -print0|xargs -0 --no-run-if-empty rm 2>/dev/null
|
||||
@find $(OUT) -name "*.class" -type f -print0|xargs -0 --no-run-if-empty rm 2>/dev/null
|
||||
|
||||
test:
|
||||
echo "$(pwd)/$(PACKAGE_DIR)"
|
||||
javac -sourcepath . -cp $(LIBS) -d $(OUT) $(PACKAGE_DIR)/LabyModel.java
|
||||
javac -sourcepath . -cp $(LIBS) -d $(OUT) $(PACKAGE_DIR)/Main.java
|
||||
java -cp $(OUT):$(LIBS):../lang $(PACKAGE).Main
|
||||
|
||||
|
||||
run/%: $(OUT)
|
||||
javac -cp $(LIBS):$(OUT) -d $(OUT) $(PACKAGE_DIR)/$(subst run/,,$@).java
|
||||
java -cp $(OUT):$(LIBS) $(PACKAGE)/$(subst run/,,$@)
|
||||
|
||||
display: run/Display
|
||||
|
||||
|
||||
display/%: $(OUT)
|
||||
javac -cp $(LIBS) -d $(OUT) $(PACKAGE_DIR)/Display.java
|
||||
java -cp $(OUT):$(LIBS) $(PACKAGE).Display $(subst display/,,$@)
|
||||
|
||||
compile/%:
|
||||
javac -d $(OUT) $(PACKAGE_DIR)/$(subst compile/,,$@).java
|
||||
|
||||
$(PACKAGE_DIR)/%.java:
|
||||
./generate_new.sh class $(subst .java,,$(subst $(PACKAGE_DIR)/,,$@))
|
||||
|
||||
interface/%:
|
||||
./generate_new.sh interface package_dir=$(PACKAGE_DIR) $(subst interface/,,$@)
|
||||
$(EDITOR) $(PACKAGE_DIR)/$(subst interface/,,$@).java
|
||||
|
||||
work/%: $(PACKAGE_DIR)/$(subst work/,,%).java
|
||||
$(EDITOR) $<
|
||||
|
||||
work: work/LabyModel
|
||||
|
||||
save:
|
||||
git citool
|
||||
|
||||
.PHONY: clean test work display work/% run/% save compile/% interface/%
|
||||
|
||||
# tried to avoid intermediate file removal : does not work
|
||||
# .SECONDARY: $(PACKAGE_DIR)/%.java
|
||||
|
||||
# this does work : once precious intermediate file is not removed.
|
||||
.PRECIOUS: $(PACKAGE_DIR)/%.java
|
||||
24
java/out/production/laby/README
Normal file
24
java/out/production/laby/README
Normal file
@@ -0,0 +1,24 @@
|
||||
A Maze generator that keep all reverse paths to solutions.
|
||||
|
||||
See Makefile
|
||||
|
||||
#clean
|
||||
make clean
|
||||
|
||||
#console
|
||||
make test
|
||||
|
||||
#gui
|
||||
make display
|
||||
|
||||
#code emacs : work/ClassName
|
||||
make work/Display
|
||||
|
||||
#run a class
|
||||
make run/Display
|
||||
|
||||
#save work with git (ie git citool )
|
||||
make save
|
||||
|
||||
# create an interface
|
||||
make interface/InterfaceName
|
||||
16
java/out/production/laby/TODO
Normal file
16
java/out/production/laby/TODO
Normal file
@@ -0,0 +1,16 @@
|
||||
By pref
|
||||
|
||||
- rendering
|
||||
GUI
|
||||
* WALK it...
|
||||
* regenerate it
|
||||
|
||||
CONSOLE :
|
||||
* provide interactive ( view a part of maze )
|
||||
|
||||
- model
|
||||
* saving in stream ( better than in toString() that basically fails... )
|
||||
|
||||
- format :
|
||||
3D format ( for 3Dprinting )
|
||||
|
||||
Reference in New Issue
Block a user