extmodule
Class JNI_Feed

java.lang.Object
  extended by extmodule.JNI_Feed
All Implemented Interfaces:
IF_ExtModule_Feed
Direct Known Subclasses:
JNI_GetProposal

public class JNI_Feed
extends java.lang.Object
implements IF_ExtModule_Feed

Implements an external feed module using JNI.

Author:
Witthold/Korol

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

JNI_Feed

public JNI_Feed()
Method Detail

initModule

public boolean initModule(int[] betSizes,
                          int[] betStructure,
                          int[] blindStructure,
                          int ante,
                          java.lang.String playerNames,
                          int[] cashOfPlayer)
Description copied from interface: IF_ExtModule_Feed
Tries to initialize the module.

Specified by:
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 button
ante - The ante for each player
playerNames - The player names in the table order. The name at index 0 is the own name
cashOfPlayer - The initial cash of the players.
Returns:
The success of initializing the module (Is the module able to deal with the limits, blinds, antes, amount of players,...)

newHand

public void newHand(int button)
Description copied from interface: IF_ExtModule_Feed
Informs the module about the beginning of a new hand.

Specified by:
newHand in interface IF_ExtModule_Feed

newHoleCards

public void newHoleCards(int player,
                         int[] cards)
Description copied from interface: IF_ExtModule_Feed
Informs the module about new hole cards of a player.

Specified by:
newHoleCards in interface IF_ExtModule_Feed

newAction

public void newAction(Action action)
Description copied from interface: IF_ExtModule_Feed
Informs the module about a new action.

Specified by:
newAction in interface IF_ExtModule_Feed

newRound

public void newRound(int round,
                     int[] newCards)
Description copied from interface: IF_ExtModule_Feed
Informs the module about a new round.

Specified by:
newRound in interface IF_ExtModule_Feed

showdown

public void showdown(int player,
                     int gain)
Description copied from interface: IF_ExtModule_Feed
Informs the module about the showdown of the hand.

Specified by:
showdown in interface IF_ExtModule_Feed