|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.jetrix.protocols.TetrinetProtocol
public class TetrinetProtocol
Protocol to communicate with TetriNET 1.13 compatible clients.
| Constructor Summary | |
|---|---|
TetrinetProtocol()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TetrinetProtocol()
| Method Detail |
|---|
public String getName()
getName in interface Protocolpublic Message getMessage(String line)
getMessage in interface Protocolline - the client message to parse
Message equivalent of the specified
String or null if the protocol cannot understand the message.
public String translate(Message m,
Locale locale)
translate in interface Protocolm - the message to translatelocale - the locale used for internationalized text messages
Message or null if it can't be translated.public String translate(SpecialMessage m)
public String translate(PlineMessage m,
Locale locale)
public String translate(PlineActMessage m,
Locale locale)
public String translate(TeamMessage m)
public String translate(JoinMessage m,
Locale locale)
public String translate(LeaveMessage m,
Locale locale)
public String translate(PlayerNumMessage m)
public String translate(StartGameMessage m)
public String translate(StopGameMessage m)
public String translate(NewGameMessage m)
public String translate(EndGameMessage m)
public String translate(PauseMessage m)
public String translate(ResumeMessage m)
public String translate(IngameMessage m)
public String translate(GmsgMessage m,
Locale locale)
public String translate(LevelMessage m)
public String translate(FieldMessage m)
public String translate(PlayerLostMessage m)
public String translate(PlayerWonMessage m)
public String translate(NoConnectingMessage m)
public String translate(OneLineAddedMessage m)
public String translate(TwoLinesAddedMessage m)
public String translate(FourLinesAddedMessage m)
public String translate(AddLineMessage m)
public String translate(ClearLineMessage m)
public String translate(NukeFieldMessage m)
public String translate(RandomClearMessage m)
public String translate(SwitchFieldsMessage m)
public String translate(ClearSpecialsMessage m)
public String translate(GravityMessage m)
public String translate(BlockQuakeMessage m)
public String translate(BlockBombMessage m)
public String translate(SpectatorListMessage m,
Locale locale)
public String translate(SmsgMessage m,
Locale locale)
public String translate(WinlistMessage m,
Locale locale)
public String translate(NoopMessage m)
public Map<String,String> getStyles()
public String applyStyle(String text)
Protocol
applyStyle in interface Protocoltext - the string to transform
public char getEOL()
Protocol
getEOL in interface Protocolpublic static String decode(String initString)
initString - initialization string
IllegalArgumentException - thrown if the string can't be decoded
public static String encode(String nickname,
String version,
byte[] ip,
boolean tetrifast)
nickname - the nickname of the clientversion - the version of the clientip - the IP of the servertetrifast - is this a tetrifast client ?
public static String readLine(Reader in)
throws IOException
in - the stream to be read
IOException - thrown if the stream is closedpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||