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:
@@ -1,7 +1,14 @@
|
||||
<?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.jdt.launching.JRE_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER"/>
|
||||
<classpathentry kind="lib" path="/home/plhardy/clients/artlog/code/laby/libs/artgaphics-0.2.0.jar"/>
|
||||
<classpathentry kind="lib" path="/home/plhardy/artisanlogiciel/code/laby/libs/sharedrawweb-0.2.0.jar"/>
|
||||
<classpathentry kind="lib" path="/home/plhardy/artisanlogiciel/code/laby/libs/artgaphics-0.2.0.jar"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
||||
|
||||
1
java/.gitignore
vendored
Normal file
1
java/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/module-info.class
|
||||
1
java/org/artisanlogiciel/aaa/authorize/.gitignore
vendored
Normal file
1
java/org/artisanlogiciel/aaa/authorize/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/JWToken.class
|
||||
4
java/org/artisanlogiciel/aaa/authorize/JWToken.java
Normal file
4
java/org/artisanlogiciel/aaa/authorize/JWToken.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package org.artisanlogiciel.aaa.authorize;
|
||||
|
||||
public class JWToken {
|
||||
}
|
||||
20
java/org/artisanlogiciel/games/maze/.gitignore
vendored
Normal file
20
java/org/artisanlogiciel/games/maze/.gitignore
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/Brick.class
|
||||
/BrickTextMapping.class
|
||||
/DrawingGenerator.class
|
||||
/LabyLayers.class
|
||||
/LabyMap.class
|
||||
/LabyModel.class
|
||||
/Main.class
|
||||
/Maze$1.class
|
||||
/Maze$2.class
|
||||
/Maze$3.class
|
||||
/Maze.class
|
||||
/MazeCreationListener.class
|
||||
/MazeParamEditor.class
|
||||
/MazeParams.class
|
||||
/MazeParamsFixed.class
|
||||
/MovesProvider.class
|
||||
/Position.class
|
||||
/PositionWithDepth.class
|
||||
/WallsProvider.class
|
||||
/XYGridIterator.class
|
||||
44
java/org/artisanlogiciel/games/maze/gui/.gitignore
vendored
Normal file
44
java/org/artisanlogiciel/games/maze/gui/.gitignore
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
/CellGridComponent.class
|
||||
/Display$1.class
|
||||
/Display$2.class
|
||||
/Display$3.class
|
||||
/Display$MazeFrame.class
|
||||
/Display.class
|
||||
/HexagonCellRenderer$UV.class
|
||||
/HexagonCellRenderer.class
|
||||
/Maze3dSettings.class
|
||||
/MazeCellRenderer.class
|
||||
/MazeColorMap.class
|
||||
/MazeComponent.class
|
||||
/MazeControler$1.class
|
||||
/MazeControler$10.class
|
||||
/MazeControler$11.class
|
||||
/MazeControler$12.class
|
||||
/MazeControler$13.class
|
||||
/MazeControler$14.class
|
||||
/MazeControler$15.class
|
||||
/MazeControler$16.class
|
||||
/MazeControler$17.class
|
||||
/MazeControler$18.class
|
||||
/MazeControler$19.class
|
||||
/MazeControler$2.class
|
||||
/MazeControler$20.class
|
||||
/MazeControler$21.class
|
||||
/MazeControler$22.class
|
||||
/MazeControler$23.class
|
||||
/MazeControler$24.class
|
||||
/MazeControler$25.class
|
||||
/MazeControler$26.class
|
||||
/MazeControler$27.class
|
||||
/MazeControler$3.class
|
||||
/MazeControler$4.class
|
||||
/MazeControler$5.class
|
||||
/MazeControler$6.class
|
||||
/MazeControler$7.class
|
||||
/MazeControler$8.class
|
||||
/MazeControler$9.class
|
||||
/MazeControler.class
|
||||
/MazeDefault.class
|
||||
/MazeSettings$1.class
|
||||
/MazeSettings.class
|
||||
/StatusListener.class
|
||||
@@ -31,13 +31,13 @@ public class Maze3dSettings
|
||||
void createSettingsGui() {
|
||||
if (params != null) {
|
||||
|
||||
IntegerField xl = new IntegerField("width",params.getXl());
|
||||
xl = new IntegerField("width",params.getXl());
|
||||
addField(xl);
|
||||
|
||||
IntegerField zl = new IntegerField("height",params.getZl());
|
||||
zl = new IntegerField("height",params.getZl());
|
||||
addField(zl);
|
||||
|
||||
IntegerField yl = new IntegerField("depth",params.getYl());
|
||||
yl = new IntegerField("depth",params.getYl());
|
||||
addField(yl);
|
||||
|
||||
reverse = new JCheckBox("reverse",params.isReverse());
|
||||
@@ -52,6 +52,9 @@ public class Maze3dSettings
|
||||
hg = new IntegerField(params.getHg());
|
||||
addField(hg);
|
||||
}
|
||||
else {
|
||||
System.err.println("params null");
|
||||
}
|
||||
}
|
||||
|
||||
Maze3dParams createParams()
|
||||
|
||||
2
java/org/artisanlogiciel/games/maze/gui/component/.gitignore
vendored
Normal file
2
java/org/artisanlogiciel/games/maze/gui/component/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/IntegerField.class
|
||||
/Panel.class
|
||||
9
java/org/artisanlogiciel/games/maze/model/.gitignore
vendored
Normal file
9
java/org/artisanlogiciel/games/maze/model/.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/BooleanLongSet.class
|
||||
/HalfSquareModelCreator$SetXY.class
|
||||
/HalfSquareModelCreator.class
|
||||
/HalfSquareProvider.class
|
||||
/HalfSquareRasterModel.class
|
||||
/HexagonModelProvider.class
|
||||
/LabyModelProvider.class
|
||||
/LineColumnModel.class
|
||||
/WidthHeightProvider.class
|
||||
@@ -6,7 +6,7 @@ import org.artisanlogiciel.games.maze.WallsProvider;
|
||||
|
||||
/**
|
||||
* minimal model without repetition
|
||||
* keep only left and down wall and rely on neightbor squeres to obtain right and up
|
||||
* keep only left and down wall and rely on neightbor squares to obtain right and up
|
||||
* left down compatible with Bricks
|
||||
*
|
||||
* LEFT 01
|
||||
|
||||
3
java/org/artisanlogiciel/games/maze/persist/.gitignore
vendored
Normal file
3
java/org/artisanlogiciel/games/maze/persist/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/HalfSquareRasterModelPersistRaw.class
|
||||
/MazePersistRaw.class
|
||||
/MazePersistWorldEdit.class
|
||||
3
java/org/artisanlogiciel/games/maze/solve/.gitignore
vendored
Normal file
3
java/org/artisanlogiciel/games/maze/solve/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/DirectionPosition.class
|
||||
/MazeResolutionListener.class
|
||||
/SolvingModel.class
|
||||
8
java/org/artisanlogiciel/games/minetest/.gitignore
vendored
Normal file
8
java/org/artisanlogiciel/games/minetest/.gitignore
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/Material.class
|
||||
/Node.class
|
||||
/Range.class
|
||||
/Raw.class
|
||||
/Slice.class
|
||||
/WorlEditGenerator.class
|
||||
/World.class
|
||||
/WorldEditReader.class
|
||||
3
java/org/artisanlogiciel/games/stl/.gitignore
vendored
Normal file
3
java/org/artisanlogiciel/games/stl/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/Maze3dParams.class
|
||||
/Wall3d.class
|
||||
/Wall3dStream.class
|
||||
7
java/org/artisanlogiciel/lua/.gitignore
vendored
Normal file
7
java/org/artisanlogiciel/lua/.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/CharProvider.class
|
||||
/LuaNumber.class
|
||||
/LuaObject.class
|
||||
/LuaSequence.class
|
||||
/LuaString.class
|
||||
/LuaTuple.class
|
||||
/Parser.class
|
||||
@@ -62,7 +62,7 @@ public class Parser {
|
||||
pushBackChar(c);
|
||||
if ( errors == null)
|
||||
{
|
||||
errors = new ArrayList();
|
||||
errors = new ArrayList<String>();
|
||||
}
|
||||
System.err.println(info);
|
||||
errors.add(info);
|
||||
|
||||
4
java/org/artisanlogiciel/osm/.gitignore
vendored
Normal file
4
java/org/artisanlogiciel/osm/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/Node.class
|
||||
/NodeRef.class
|
||||
/OsmReader.class
|
||||
/Way.class
|
||||
1
java/org/artisanlogiciel/osm/convert/.gitignore
vendored
Normal file
1
java/org/artisanlogiciel/osm/convert/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/OsmToDrawing.class
|
||||
1
java/org/artisanlogiciel/util/.gitignore
vendored
Normal file
1
java/org/artisanlogiciel/util/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/UTF8Control.class
|
||||
1
java/org/artisanlogiciel/xpm/.gitignore
vendored
Normal file
1
java/org/artisanlogiciel/xpm/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/Xpm.class
|
||||
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