mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 22:59:02 +00:00
@@ -7,7 +7,7 @@ import java.util.ArrayList;
|
||||
|
||||
public interface ControllableUnit {
|
||||
|
||||
int getObjectId();
|
||||
long getObjectId();
|
||||
|
||||
void setKeyboardBuffer(ArrayList<Integer> kbBuffer);
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ public abstract class GameObject implements JSONSerialisable {
|
||||
/**
|
||||
* Object's unique identifier
|
||||
*/
|
||||
private int objectId;
|
||||
private long objectId;
|
||||
|
||||
/**
|
||||
* X coordinate of the object in its World
|
||||
@@ -178,11 +178,11 @@ public abstract class GameObject implements JSONSerialisable {
|
||||
|
||||
}
|
||||
|
||||
public int getObjectId() {
|
||||
public long getObjectId() {
|
||||
return objectId;
|
||||
}
|
||||
|
||||
public void setObjectId(int objectId) {
|
||||
public void setObjectId(long objectId) {
|
||||
this.objectId = objectId;
|
||||
}
|
||||
|
||||
|
||||
@@ -241,7 +241,7 @@ public class GameUniverse implements JSONSerialisable {
|
||||
|
||||
}
|
||||
|
||||
public int getNextObjectId() {
|
||||
public long getNextObjectId() {
|
||||
return ++nextObjectId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user