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
20b6149a
Commit
20b6149a
authored
Nov 28, 2018
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
place nickname add
parent
398088a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
Place.java
src/GameEnvironment/bean/Place.java
+27
-3
No files found.
src/GameEnvironment/bean/Place.java
View file @
20b6149a
...
@@ -7,40 +7,64 @@ public class Place implements Serializable{
...
@@ -7,40 +7,64 @@ public class Place implements Serializable{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
private
String
name
;
private
String
name
;
private
String
intro
;
private
String
intro
;
private
List
<
String
>
nickname
;
private
List
<
Place
>
ableGo
;
private
List
<
Place
>
ableGo
;
private
List
<
NpcInstance
>
npcInstances
;
private
List
<
NpcInstance
>
npcInstances
;
private
List
<
GoodsInstance
>
goodsInstances
;
private
List
<
GoodsInstance
>
goodsInstances
;
public
String
getName
()
{
public
String
getName
()
{
return
name
;
return
name
;
}
}
public
void
setName
(
String
name
)
{
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
this
.
name
=
name
;
}
}
public
String
getIntro
()
{
public
String
getIntro
()
{
return
intro
;
return
intro
;
}
}
public
void
setIntro
(
String
intro
)
{
public
void
setIntro
(
String
intro
)
{
this
.
intro
=
intro
;
this
.
intro
=
intro
;
}
}
public
List
<
String
>
getNickname
()
{
return
nickname
;
}
public
void
setNickname
(
List
<
String
>
nickname
)
{
this
.
nickname
=
nickname
;
}
public
List
<
Place
>
getAbleGo
()
{
public
List
<
Place
>
getAbleGo
()
{
return
ableGo
;
return
ableGo
;
}
}
public
void
setAbleGo
(
List
<
Place
>
ableGo
)
{
public
void
setAbleGo
(
List
<
Place
>
ableGo
)
{
this
.
ableGo
=
ableGo
;
this
.
ableGo
=
ableGo
;
}
}
public
List
<
NpcInstance
>
getNpcInstances
()
{
public
List
<
NpcInstance
>
getNpcInstances
()
{
return
npcInstances
;
return
npcInstances
;
}
}
public
void
setNpcInstances
(
List
<
NpcInstance
>
npcInstances
)
{
public
void
setNpcInstances
(
List
<
NpcInstance
>
npcInstances
)
{
this
.
npcInstances
=
npcInstances
;
this
.
npcInstances
=
npcInstances
;
}
}
public
List
<
GoodsInstance
>
getGoodsInstances
()
{
public
List
<
GoodsInstance
>
getGoodsInstances
()
{
return
goodsInstances
;
return
goodsInstances
;
}
}
public
void
setGoodsInstances
(
List
<
GoodsInstance
>
goodsInstances
)
{
public
void
setGoodsInstances
(
List
<
GoodsInstance
>
goodsInstances
)
{
this
.
goodsInstances
=
goodsInstances
;
this
.
goodsInstances
=
goodsInstances
;
}
}
@Override
public
static
long
getSerialversionuid
()
{
return
serialVersionUID
;
}
@Override
public
String
toString
()
{
public
String
toString
()
{
int
ableGoSize
=
0
;
int
ableGoSize
=
0
;
int
npcInstancesSize
=
0
;
int
npcInstancesSize
=
0
;
...
@@ -54,7 +78,7 @@ public class Place implements Serializable{
...
@@ -54,7 +78,7 @@ public class Place implements Serializable{
if
(
goodsInstances
!=
null
)
{
if
(
goodsInstances
!=
null
)
{
goodsInstancesSize
=
goodsInstances
.
size
();
goodsInstancesSize
=
goodsInstances
.
size
();
}
}
return
"Place [name="
+
name
+
", intro="
+
intro
+
", ableGo="
+
ableGoSize
+
", npcInstances="
+
npcInstancesSize
return
"Place [name="
+
name
+
", intro="
+
intro
+
"
nickname="
+
nickname
+
"
, ableGo="
+
ableGoSize
+
", npcInstances="
+
npcInstancesSize
+
", goodsInstances="
+
goodsInstancesSize
+
"]"
;
+
", goodsInstances="
+
goodsInstancesSize
+
"]"
;
}
}
...
...
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