|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbot.talk.Talk
public abstract class Talk
Abstract class which contains all protocol independent communication stuff.
| Field Summary | |
|---|---|
protected Bot |
bot
The actual Bot; needed for communication |
protected int |
port
|
protected java.lang.String |
serverAdress
|
| Constructor Summary | |
|---|---|
Talk(Bot bot,
java.lang.String serverAdress,
int port)
Builds a Talk object and sets the given fields. |
|
| Method Summary | |
|---|---|
abstract boolean |
initConnection()
Connects to a server (and a room if necessary). |
abstract void |
run()
Triggers the the game loop. |
abstract boolean |
sendCall()
Sends a call action. |
abstract boolean |
sendFold()
Sends a fold action. |
abstract boolean |
sendRaise()
Sends a raise action. |
abstract boolean |
sendRaise(int finalInPot)
Sends a raise action. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Bot bot
protected java.lang.String serverAdress
protected int port
| Constructor Detail |
|---|
public Talk(Bot bot,
java.lang.String serverAdress,
int port)
bot - serverAdress - port - | Method Detail |
|---|
public abstract boolean initConnection()
public abstract void run()
public abstract boolean sendFold()
public abstract boolean sendCall()
public abstract boolean sendRaise()
public abstract boolean sendRaise(int finalInPot)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||