-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMANUAL
More file actions
101 lines (83 loc) · 4.01 KB
/
MANUAL
File metadata and controls
101 lines (83 loc) · 4.01 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
-------------------------------------------------------------------------------\
SiteDeveloper By Casey Harford
-------------------------------------------------------------------------------
SiteDeveloper can be used to create a virtual world with buildings, sidewalks,
roads, and many other objects(see full list below).
-------------------------------------------------------------------------------\
Requirements
-------------------------------------------------------------------------------
To run, you'll require the Java Runtime Environment, version 1.6 or greater,
may work on old versions as well, but untested.
To compile, you'll require the Java Development Kit, version 1.6 or greater,
may work on old versions as well, but untested.
Both are available @ http://www.oracle.com
-------------------------------------------------------------------------------\
How to compile
-------------------------------------------------------------------------------
Navigate to the root of the project directory. Enter the following command:
javac src/*.java -d bin/
-------------------------------------------------------------------------------\
How to use it
-------------------------------------------------------------------------------
create tree loc 3 4 color green
The above command would create a tree at location x = 3, y = 4.
p - prints the buildspace, along with current objects
q - quits the program
Multiple commands can be given, here are the list of available objects:
- tree
- bench
- building
- sidewalk
- road
- house
Colors have not been configured yet, but will be implemented in the color,
graphical version coming soon. For now, just put in a valid "string" such
blue, or green, or yellow, or if you like, red.
-------------------------------------------------------------------------------\
Test Input/Output
-------------------------------------------------------------------------------
To see some sample input/ouput, run the following commands, while in the
bin/ directory
Example of good input:
java SiteDeveloper < ../test_input
Outputs:
* * * * * * * * * * * * * * * * * * * * * * * * * * *
* T R R T B B B B B B B B B B B B R R *
* R R B B B B B B B B B B B B R R H H *
* T R R T B B B B B B B B B B B B R R H H *
* R R B B B B B B B B B B B B R R *
* T R R T R R H H *
* R R B B B B B B B B B B B B R R H H *
* T R R T B B B B B B B B B B B B R R *
* R R B B B B B B B B B B B B R R H H *
* T R R T B B B B B B B B B B B B T R R H H *
* R R T T R R *
* T R R R R R R R R R R R R R R R R R R R R R R R R *
* R R R R R R R R R R R R R R R R R R R R R R R R *
* T R R *
* B B B B R R H H H H H H H H T T *
* B B B B R R H H H H H H H H T T *
* B B B B R R *
* B B B B R R H H H H H H H H *
* R R H H H H H H H H *
* B B B B R R *
* B B B B R R R R R R R R R R R R R R R R *
* B B B B R R R R R R R R R R R R R R R R *
* B B B B R R *
* R R H H H H H H H H *
* R R H H H H H H H H *
* T T T T *
* * * * * * * * * * * * * * * * * * * * * * * * * * *
Example of bad input:
java SiteDeveloper < ../test_bad_input
Outputs:
Error, invalid argument for loc
Invalid object specified
Error, invalid command(expecting color)
Error, outside of buildSpace 50, 50
Error, outside of buildSpace 50, 10
Error, outside of buildSpace 10, 50
-------------------------------------------------------------------------------\
UML Diagram
-------------------------------------------------------------------------------
Please see UML.png for the UML diagram of SiteDeveloper.