Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qwgame
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵国君
qwgame
Commits
f4b0c0b4
Commit
f4b0c0b4
authored
Jan 26, 2019
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get place name by place nickname
parent
518f9163
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
GameEnv.java
src/GameEnvironment/GameEnv.java
+5
-2
No files found.
src/GameEnvironment/GameEnv.java
View file @
f4b0c0b4
...
...
@@ -416,7 +416,11 @@ public class GameEnv implements Serializable{
}
// 通过别名查询当前地点最近的别名地点
public
String
getPlaceNameByNickname
(
String
curPlaceName
,
String
nickname
)
{
if
(
this
.
placeIndex
.
get
(
curPlaceName
).
getNickname
().
indexOf
(
nickname
)>=
0
)
{
Place
place
=
this
.
placeIndex
.
get
(
curPlaceName
);
if
(
place
==
null
)
{
return
nickname
;
}
if
(
place
.
getNickname
().
indexOf
(
nickname
)>=
0
)
{
return
curPlaceName
;
}
else
{
List
<
String
>
placePath
=
getAllPath
(
curPlaceName
,
nickname
);
...
...
@@ -426,7 +430,6 @@ public class GameEnv implements Serializable{
return
nickname
;
}
}
}
public
String
queryCurPlaceNpcInstanceByNickname
(
String
curPlaceName
,
String
nickname
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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