Skip to content

Instantly share code, notes, and snippets.

@maraoz
Created November 8, 2012 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maraoz/4041383 to your computer and use it in GitHub Desktop.
Save maraoz/4041383 to your computer and use it in GitHub Desktop.
public class Fireball extends GameObject implements Updatable {
private static final int VELOCITY = 5;
@NetworkData
private Vector2D pos;
@NetworkData
private final Vector2D speed;
@NetworkData
private List<SomeObject> list;
...
}
public class Vector2D {
public float x,y;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment