net.jetrix.protocols
Class TetrifastProtocol

java.lang.Object
  extended by net.jetrix.protocols.AbstractProtocol
      extended by net.jetrix.protocols.TetrinetProtocol
          extended by net.jetrix.protocols.TetrifastProtocol
All Implemented Interfaces:
Protocol

public class TetrifastProtocol
extends TetrinetProtocol

Protocol to communicate with Tetrifast compatible clients.

Version:
$Revision: 798 $, $Date: 2009-02-18 16:24:28 +0100 (Wed, 18 Feb 2009) $
Author:
Emmanuel Bourg

Field Summary
static String INIT_TOKEN
          Initialization token
 
Constructor Summary
TetrifastProtocol()
           
 
Method Summary
 String getName()
          Return the name of this protocol
 String translate(NewGameMessage m)
           
 String translate(PlayerNumMessage m)
           
 
Methods inherited from class net.jetrix.protocols.TetrinetProtocol
applyStyle, decode, encode, getEOL, getMessage, getStyles, stripStyle, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate
 
Methods inherited from class net.jetrix.protocols.AbstractProtocol
equals, hashCode, readFrame, readLine, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INIT_TOKEN

public static final String INIT_TOKEN
Initialization token

See Also:
Constant Field Values
Constructor Detail

TetrifastProtocol

public TetrifastProtocol()
Method Detail

getName

public String getName()
Description copied from class: TetrinetProtocol
Return the name of this protocol

Specified by:
getName in interface Protocol
Overrides:
getName in class TetrinetProtocol
Returns:
the name of this protocol

translate

public String translate(PlayerNumMessage m)
Overrides:
translate in class TetrinetProtocol

translate

public String translate(NewGameMessage m)
Overrides:
translate in class TetrinetProtocol


Copyright © 2001-2010. All Rights Reserved.