Package app.qwertz.luxxit.packet
Class LuxPacket
java.lang.Object
app.qwertz.luxxit.packet.LuxPacket
- Direct Known Subclasses:
ChatPacket,CInfoPacket,ClientCommandPacket,ExplosionPacket,GameTurnPacket,GivePlayerCardPacket,HeartEmotePacket,IdPacket,IdTwoPacket,InfoPacket,KillPacket,LuxConnectPacket,OptionsPacket,PlayerListPacket,QuoteEmotePacket,RemoteVersionPacket,ReverseBlueEmotePacket,SelectCountryPacket,SetCountryArmiesPacket,SetCountryOwnerPacket,SetGamePhasePacket,SetGameRoundPacket,SingEmotePacket,StarInfoPacket,UserKeyPacket,UserListEndPacket,UserListStartPacket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringReturns the string representation of the packet data (excluding prefix)static LuxPacketfromString(String input) Factory method to parse a raw string into the correct LuxPacket subclassabstract StringReturns the string prefix identifying this packet type, e.g.protected abstract voidReturns the full stringified packet (prefix + data)
-
Constructor Details
-
LuxPacket
public LuxPacket()
-
-
Method Details
-
getPrefix
Returns the string prefix identifying this packet type, e.g. "chat: " -
formatData
Returns the string representation of the packet data (excluding prefix) -
stringify
Returns the full stringified packet (prefix + data) -
fromString
Factory method to parse a raw string into the correct LuxPacket subclass -
parseData
-