Added galaxy name to the player class

This commit is contained in:
Obique PSWG
2015-06-14 10:37:03 -05:00
parent 6b6b76c04c
commit 313e72e658
3 changed files with 18 additions and 6 deletions
+10 -1
View File
@@ -50,7 +50,8 @@ public class Player implements Serializable, Comparable<Player> {
private int connectionId = 0;
private AccessLevel accessLevel = AccessLevel.PLAYER;
public int galaxyId = 0;
private int galaxyId = 0;
private String galaxyName = "";
private CreatureObject creatureObject= null;
private long lastInboundMessage = 0;
@@ -99,6 +100,10 @@ public class Player implements Serializable, Comparable<Player> {
this.galaxyId = galaxyId;
}
public void setGalaxyName(String galaxyName) {
this.galaxyName = galaxyName;
}
public void setCreatureObject(CreatureObject obj) {
this.creatureObject = obj;
}
@@ -145,6 +150,10 @@ public class Player implements Serializable, Comparable<Player> {
return galaxyId;
}
public String getGalaxyName() {
return galaxyName;
}
public CreatureObject getCreatureObject() {
return creatureObject;
}