|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.ac.fun.osawalab.tileworld.connector.Connector
jp.ac.fun.osawalab.tileworld.connector.Player
public class Player
Tileworldのプレイヤー接続のクラスです。
プレイヤーの接続用に生成されて、プレイヤークライアント からの要求コマンドを処理します。
Viewer
,
TempConnector
コンストラクタの概要 | |
---|---|
Player(String ID,
ConnectorThread connectorThread,
int tickPort)
インスタンスは、ビューアーとしてログインした後に生成されます。 |
メソッドの概要 | |
---|---|
Agents |
getAgentList()
このプレイヤー接続に関連づけられたAgentの集合を返します。 |
boolean |
parseQuery(String query)
要求コマンドを解釈してその応答処理を呼び出します。 |
String |
toString()
Player のクラスの文字列表現として、設定されているIDを返します. |
クラス jp.ac.fun.osawalab.tileworld.connector.Connector から継承されたメソッド |
---|
getID, getTickPort, sendMessage, sendReply, setID, setTickPort |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
---|
public Player(String ID, ConnectorThread connectorThread, int tickPort)
ID
- 接続ID。connectorThread
- 接続を管理しているスレッド。tickPort
- クライアント側の、メッセージ受信ポート。メソッドの詳細 |
---|
public Agents getAgentList()
public boolean parseQuery(String query)
Connector.parseQuery(String)
が理解できるコマンドと、
ADD、MOVE、LOGOUTです。
Connector
内の parseQuery
query
- 要求コマンド。
Connector.parseQuery(java.lang.String)
public String toString()
Player
のクラスの文字列表現として、設定されているIDを返します.
Object
内の toString
Object.toString()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |