changes 1

This commit is contained in:
Woosle Park
2019-03-26 14:01:03 -04:00
parent 5b019b3e63
commit f2c11cc7f8
9 changed files with 33 additions and 96 deletions

View File

@@ -43,14 +43,6 @@ public abstract class GameObject implements JSONSerializable, MongoSerializable
* Current World of the object
*/
private World world;
/**
* Counter for user stats
*/
private int counter;
/**
* Execution Time
*/
private double time;
public GameObject() {
@@ -71,9 +63,6 @@ public abstract class GameObject implements JSONSerializable, MongoSerializable
int newX = getX() + direction.dX;
int newY = getY() + direction.dY;
counter = 0;
time = 0;
if (newX < 0 || newY < 0 || newX >= world.getWorldSize() || newY >= world.getWorldSize()) {
//Next tile is out of world bounds, move to next world
World nextWorld = GameServer.INSTANCE.getGameUniverse().getWorld(
@@ -241,22 +230,6 @@ public abstract class GameObject implements JSONSerializable, MongoSerializable
this.world = world;
}
public void setCounter(int c){
counter=c;
}
public int getCounter(){
return counter;
}
public void setTime(double t){
time=t;
}
public double getTime(){
return time;
}
@Override
public JSONObject jsonSerialise() {
JSONObject json = new JSONObject();

View File

@@ -26,9 +26,9 @@
<tr>
<td>$row.getKey().getUsername()</td>
<td>$row.getValue().size()</td>
<td>$row.getValue().size()</td>
<td>$row.getValue().size()</td>
<td>$row.getValue().size()</td>
<td>$row.getValue()</td>
<td>$row.getValue()</td>
<td>$row.getValue()</td>
</tr>
#end
</tbody>