Best place to put packet class java
I have a game engine class, shared by the client program and the server program.  I have a particular function _updatePlayer(PlayerData data)_ which should update a player.  (PlayerData is basically a packet datatype.)

For best standards, where should the PlayerData class go?  Should it be it's own file, in a networking package, or a subclass of a static Packet class?  Normally, I'd make a master namespace(named after my project) in c++ or define the class in my networking class, but you can't define multiple classes in one file in java.

How would you do it?
Best place to put packet class java
===

I have a game engine class, shared by the client program and the server program.  I have a particular function _updatePlayer(PlayerData data)_ which should update a player.  (PlayerData is basically a packet datatype.)

For best standards, where should the PlayerData class go?  Should it be it's own file, in a networking package, or a subclass of a static Packet class?  Normally, I'd make a master namespace(named after my project) in c++ or define the class in my networking class, but you can't define multiple classes in one file in java.

How would you do it?