Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aethyr
creeper
Commits
d019477d
Commit
d019477d
authored
Aug 23, 2014
by
d0tslash
Browse files
cleaned up exits
parent
e9bf339a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/comandante/creeper/managers/GameManager.java
View file @
d019477d
...
...
@@ -216,21 +216,21 @@ public class GameManager {
private
String
getExits
(
Room
room
)
{
StringBuilder
stringBuilder
=
new
StringBuilder
();
stringBuilder
.
append
(
"
e
xits: "
);
stringBuilder
.
append
(
"
[ E
xits: "
);
stringBuilder
.
append
(
new
Ansi
().
fg
(
Ansi
.
Color
.
BLUE
).
toString
());
if
(
room
.
getNorthId
().
isPresent
())
{
stringBuilder
.
append
(
"
n
orth "
);
stringBuilder
.
append
(
"
N
orth "
);
}
if
(
room
.
getSouthId
().
isPresent
())
{
stringBuilder
.
append
(
"
s
outh "
);
stringBuilder
.
append
(
"
S
outh "
);
}
if
(
room
.
getEastId
().
isPresent
())
{
stringBuilder
.
append
(
"
e
ast "
);
stringBuilder
.
append
(
"
E
ast "
);
}
if
(
room
.
getWestId
().
isPresent
())
{
stringBuilder
.
append
(
"
w
est "
);
stringBuilder
.
append
(
"
W
est "
);
}
stringBuilder
.
append
(
"\r\n"
).
append
(
new
Ansi
().
reset
().
toString
());
stringBuilder
.
append
(
new
Ansi
().
reset
().
toString
())
.
append
(
"]\r\n"
)
;
return
stringBuilder
.
toString
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment