-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
default: build | ||
|
||
build: | ||
javac -classpath ./libs/dot-parser.jar:./libs/json-parser.jar:. StagServer.java | ||
|
||
run: build | ||
java StagServer data/entities.dot data/actions.json | ||
|
||
clean: | ||
rm *.class |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"actions": [ | ||
|
||
{ | ||
"triggers": ["open", "unlock"], | ||
"subjects": ["door", "key"], | ||
"consumed": ["key"], | ||
"produced": ["cellar"], | ||
"narration": "You unlock the door and see steps leading down into a cellar" | ||
}, | ||
|
||
{ | ||
"triggers": ["chop", "cut", "cutdown"], | ||
"subjects": ["tree", "axe"], | ||
"consumed": ["tree"], | ||
"produced": ["log"], | ||
"narration": "You cut down the tree with the axe" | ||
}, | ||
|
||
{ | ||
"triggers": ["drink"], | ||
"subjects": ["potion"], | ||
"consumed": ["potion"], | ||
"produced": ["health"], | ||
"narration": "You drink the potion and your health improves" | ||
}, | ||
|
||
{ | ||
"triggers": ["fight", "hit", "punch", "kick", "slap", "attack", "kill"], | ||
"subjects": ["elf"], | ||
"consumed": ["health"], | ||
"produced": [], | ||
"narration": "You attack the elf, but he fights back and you lose some health" | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
digraph layout { | ||
/* ortho splines just makes the arrows into straight lines (rather than curvy ones !) */ | ||
splines = ortho; | ||
node [shape = "rect"]; | ||
|
||
subgraph locations { | ||
subgraph cluster001 { | ||
node [shape = "none"]; | ||
start [description = "An empty room"]; | ||
subgraph artefacts { | ||
node [shape = "diamond"]; | ||
potion [description = "Magic potion"]; | ||
} | ||
subgraph furniture { | ||
node [shape = "hexagon"]; | ||
door [description = "Wooden door"]; | ||
} | ||
} | ||
|
||
subgraph cluster002 { | ||
node [shape = "none"]; | ||
forest [description = "A dark forest"]; | ||
subgraph artefacts { | ||
node [shape = "diamond"]; | ||
key [description = "Brass key"]; | ||
} | ||
} | ||
|
||
subgraph cluster003 { | ||
node [shape = "none"]; | ||
cellar [description = "A dusty cellar"] | ||
subgraph characters { | ||
node [shape = "ellipse"]; | ||
elf [description = "Angry Elf"]; | ||
} | ||
} | ||
} | ||
|
||
subgraph paths { | ||
start -> forest; | ||
forest -> start; | ||
cellar -> start; | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
public class Artefacts extends Entity { | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
public class Characters extends Entity { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
public abstract class Entity { | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
public class Furniture extends Entity { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
public class Game { | ||
private Handler handler; | ||
|
||
public Game() { | ||
|
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
public class Handler { | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
public class Location extends Entity { | ||
|
||
|
||
} |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="library" exported="" name="libs" level="project" /> | ||
</component> | ||
</module> |