mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-16 08:09:07 +00:00
changes 1
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user