|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectextmodule.JNI_Feed
public class JNI_Feed
Implements an external feed module using JNI.
Constructor Summary | |
---|---|
JNI_Feed()
|
Method Summary | |
---|---|
boolean |
initModule(int[] betSizes,
int[] betStructure,
int[] blindStructure,
int ante,
java.lang.String playerNames,
int[] cashOfPlayer)
Tries to initialize the module. |
void |
newAction(Action action)
Informs the module about a new action. |
void |
newHand(int button)
Informs the module about the beginning of a new hand. |
void |
newHoleCards(int player,
int[] cards)
Informs the module about new hole cards of a player. |
void |
newRound(int round,
int[] newCards)
Informs the module about a new round. |
void |
showdown(int player,
int gain)
Informs the module about the showdown of the hand. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JNI_Feed()
Method Detail |
---|
public boolean initModule(int[] betSizes, int[] betStructure, int[] blindStructure, int ante, java.lang.String playerNames, int[] cashOfPlayer)
IF_ExtModule_Feed
initModule
in interface IF_ExtModule_Feed
betStructure
- The limits for each betting round (0 for no limit)blindStructure
- The blind sizes for the players after the buttonante
- The ante for each playerplayerNames
- The player names in the table order. The name at index 0 is the own namecashOfPlayer
- The initial cash of the players.
public void newHand(int button)
IF_ExtModule_Feed
newHand
in interface IF_ExtModule_Feed
public void newHoleCards(int player, int[] cards)
IF_ExtModule_Feed
newHoleCards
in interface IF_ExtModule_Feed
public void newAction(Action action)
IF_ExtModule_Feed
newAction
in interface IF_ExtModule_Feed
public void newRound(int round, int[] newCards)
IF_ExtModule_Feed
newRound
in interface IF_ExtModule_Feed
public void showdown(int player, int gain)
IF_ExtModule_Feed
showdown
in interface IF_ExtModule_Feed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |