Don't instantiate me, use my static methods.
Tells the server to disconnect.
a disconnect packet.
Tells the server the user has moved on the playing field.
new X coordinate of the player.
new Y coordinate of the player.
angle the player is looking at.
a new client movement packet.
Asks the server to send all player info.
a new 'request player info' packet.
Asks the server to send all player kill / death counts.
a new 'request player kill / death count' packet.
Tells the server the user fired a shot.
Angle of shot.
a new client shoot packet.
Tells the server a predefined 'unknown' message.
an unknown packet.
Asks the server to send back the user ID of the player.
a new 'who am I' packet.
Generated using TypeDoc
Factory Pattern Class for wrapping packet generation for communication. See https://en.wikipedia.org/wiki/Factory_method_pattern#Example_implementations
Creates new Packets and returns them through static Command instance (factory pattern). Using this wrapper to create commands to the server is super easy. Just call its methods with 'Command.whoAmI()', 'Command.move(1.0, 2.0)' and so on.