Storing game objects with generic object information
- by Mick
In a simple game object class, you might have something like this:
public abstract class GameObject {
protected String name;
// other properties
protected double x, y;
public GameObject(String name, double x, double y) {
// etc
}
// setters, getters
}
I was thinking, since a lot of game objects (ex. generic…