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
22549a7f
Commit
22549a7f
authored
Dec 22, 2018
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
global variable update
parent
2555aef0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
GameEnv.java
src/GameEnvironment/GameEnv.java
+3
-4
No files found.
src/GameEnvironment/GameEnv.java
View file @
22549a7f
...
...
@@ -41,7 +41,6 @@ public class GameEnv implements Serializable{
// System.out.println(jsonString);
String
jsonString
=
DBUtil
.
queryEnvJsonByBotName
(
botName
);
Map
<
String
,
Object
>
gameProjectMap
=
JSON
.
parseObject
(
jsonString
);
System
.
out
.
println
(
gameProjectMap
);
this
.
followNpcIndex
=
new
HashMap
<
String
,
NpcInstance
>();
this
.
placeLinkDirectGo
=
new
HashMap
<
String
,
Place
>();
this
.
placeNoLinkDirectGo
=
new
HashMap
<
String
,
Place
>();
...
...
@@ -440,6 +439,7 @@ public class GameEnv implements Serializable{
}
return
null
;
}
public
String
queryCurPlaceGoodsInstanceByNickname
(
String
curPlaceName
,
String
nickname
)
{
List
<
GoodsInstance
>
goodsInstances
=
this
.
placeIndex
.
get
(
curPlaceName
).
getGoodsInstances
();
for
(
int
i
=
0
;
i
<
goodsInstances
.
size
();
i
++)
{
...
...
@@ -792,7 +792,6 @@ public class GameEnv implements Serializable{
}
}
if
(
goodsInstanceBoolean
)
{
System
.
out
.
print
(
goodsInstance
);
List
<
Attr
>
attrs
=
goodsInstance
.
getAttrs
();
if
(
names
[
3
].
equals
(
"所在地点"
))
{
Place
placeOrigin
=
goodsInstance
.
getPlace
();
...
...
@@ -894,8 +893,8 @@ public class GameEnv implements Serializable{
return
true
;
}
}
}
else
if
(
names
.
length
==
3
&&
names
[
0
].
equals
(
"globalVariable"
))
{
this
.
globalAttrs
.
put
(
names
[
2
],
value
);
}
else
if
(
names
.
length
==
2
&&
names
[
0
].
equals
(
"globalVariable"
))
{
this
.
globalAttrs
.
put
(
names
[
1
],
value
);
}
return
false
;
}
...
...
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