|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.ac.fun.osawalab.tileworld.client.Client
jp.ac.fun.osawalab.tileworld.client.viewer.ViewerClient
public abstract class ViewerClient
ビューアー用のクライアント抽象クラスです。
Client
の
拡張クラスで、ビューアー用のコマンドを送信するメソッドの定義が行われています。
実際にビューアーを作成する場合、このクラスを拡張します。
Client
,
PlayerClient
コンストラクタの概要 | |
---|---|
ViewerClient(String host,
int port,
String id,
int messagePort)
コンストラクタです。 |
メソッドの概要 | |
---|---|
int |
getClock()
コマンド:「CLOCK」を送信し、現在のCLOCKを返します。 |
int |
getMaxClock()
コマンド:「CLOCK」を送信し、最大CLOCKを返します。 |
void |
sendReset()
コマンド:「RESET」を送ります。 |
void |
sendStart()
コマンド:「START」を送ります。 |
void |
sendStop()
コマンド:「STOP」を送ります。 |
void |
sendTick()
コマンド:「TICK」を送ります。 |
クラス jp.ac.fun.osawalab.tileworld.client.Client から継承されたメソッド |
---|
getAgentList, getAgentList, getMessage, getPlayerList, getReply, getScore, getScoreList, getScoreList, getWorld, login, logout, onMessageReceived, onTicked, printWorld, run, sendQuery |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public ViewerClient(String host, int port, String id, int messagePort)
host
- Tileworldサーバーのhostname。port
- Tileworldサーバーのport。id
- ビューアークライアントのID。messagePort
- サーバーからのメッセージを受けるport。メソッドの詳細 |
---|
public int getMaxClock()
public int getClock()
public void sendReset()
public void sendStart()
public void sendStop()
public void sendTick()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |