|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SPRootTransactionClass
com.SecurePlay.SPAbstractTransactionClass
com.SecurePlay.SPTMultistepTurn.SPTMultistepTurnClass
This is implements the multistep transaction. See details under Abstract Transaction Class
![]() |
![]() |
| Field Summary |
| Fields inherited from class com.SecurePlay.SPAbstractTransactionClass |
classAPI, configuration, gameblock, gameinstance, transactionstatus, transtype |
| Fields inherited from class com.SecurePlay.SPRootTransactionClass |
EventListenerList, gameID, master, playerIDList, transactionID |
| Constructor Summary | |
SPTMultistepTurnClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
Overloaded Constructor |
|
| Method Summary | |
static boolean |
APIBcreateTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
This method allows the creation of a new Multistep type, internally controlled transaction. |
static SPTMultistepTurnClass |
APIcreateTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
This method allows the creation of a new Multistep type, internally controlled transaction. |
int |
APIgetStepCount()
This method returns the current number of steps that have been sent |
java.lang.String[] |
APIgetStepData(int step)
This method returns the dataList entry associated with the specified step value |
java.lang.String |
APIgetStepSource(int step)
This method returns the PlayerID of the sender of a specific transaction step. |
boolean |
APIrequestsendStep(java.lang.String pid,
java.lang.String sender,
java.lang.String[] dataentry)
This shell request method remotely requests another player to send a transaction step |
boolean |
APIsendStep(java.lang.String sender,
java.lang.String[] dataentry)
This method sends a transaction step to the other transaction participants. |
static SPTMultistepTurnAPIClass |
APITAOcreateTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
This method allows the creation of a new MultiStep type, internally controlled transaction. |
protected SPAbstractTransactionInterface |
buildSPawn()
This method provides the unique transaction creation services for spawned Multistep transactions |
SPAbstractTransactionInterface |
createTransaction(SPGameAPIInterface gameapiobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
This method creates a SPMultistepTurnClass transaction. |
java.util.Vector |
getPrdataList()
Getter function that returns the property: prdataList |
java.lang.String[] |
getPrdatasourceList()
Getter function that returns the property: prdatasourceList |
static java.lang.String |
gettranstype()
This method gets the transaction type. |
void |
onrequestsendStep(SPMessageClass incoming)
This method handles incoming requests for generation of sendStep transactions. |
boolean |
onsendStep(SPMessageClass incoming)
This method handles incoming sendStep requests. |
boolean |
pronincomingTransaction(SPMessageClass incoming)
This method provides the unique handlers for incoming Multistep turn message types |
static boolean |
registerTransaction()
Registers this transaction. |
protected boolean |
spawnConfigure(SPAbstractTransactionInterface a)
This method provides the unique transaction configuration services for spawned Multistep transactions |
SPTMultistepTurnAPIClass |
SPgetAPI()
Gets this class's API |
| Methods inherited from class com.SecurePlay.SPRootTransactionClass |
APIAddListener, APIClearListeners, APIGetListenerCount, APIGetListeners, APIRemoveListener, getGameID, getMaster, getPlayerIDList, getTransactionID, isPlayerIncluded, SPnotify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.SecurePlay.SPAbstractTransactionInterface |
getGameID, getMaster, getPlayerIDList, getTransactionID |
| Constructor Detail |
public SPTMultistepTurnClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
gameobj - master - playerIDList - privateflag - transactionID - | Method Detail |
public java.lang.String[] APIgetStepData(int step)
step - int - steps
public java.lang.String APIgetStepSource(int step)
step - int - the step
public boolean APIsendStep(java.lang.String sender,
java.lang.String[] dataentry)
sender - String - id of the senderdataentry - String[] - data of the step in a String array
public boolean onsendStep(SPMessageClass incoming)
incoming - SPMessageClass - incoming message
public boolean pronincomingTransaction(SPMessageClass incoming)
pronincomingTransaction in class SPAbstractTransactionClassincoming - SPMessageClass - incoming message
public boolean APIrequestsendStep(java.lang.String pid,
java.lang.String sender,
java.lang.String[] dataentry)
pid - String - player id, the mastersender - Stirng - sender iddataentry - String[] - the data of the step
public void onrequestsendStep(SPMessageClass incoming)
incoming - SPMessageClass
SPMessageClass - incoming messagepublic int APIgetStepCount()
protected SPAbstractTransactionInterface buildSPawn()
buildSPawn in class SPAbstractTransactionClassprotected boolean spawnConfigure(SPAbstractTransactionInterface a)
spawnConfigure in class SPAbstractTransactionClassa - SPAbstractTransactionInterface - the transaction to be spawned
public SPTMultistepTurnAPIClass SPgetAPI()
public java.util.Vector getPrdataList()
public java.lang.String[] getPrdatasourceList()
public static SPTMultistepTurnClass APIcreateTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
gapi - SPGameAPIInterface - the game that will be associated with this transaction.transmaster - String - player id of the master of the transactionplayerIDList - String[] - This is an array that holds the Player IDs of the players within the game that are participating in this transaction.privateflag - boolean - This is a flag to describe whether the specific transaction is a private transaction to the non-participating Players.
public static boolean APIBcreateTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
gapi - SPGameAPIInterface - the game that will be associated with this transaction.transmaster - String - player id of the master of the transactionplayerIDList - String[] - This is an array that holds the Player IDs of the players within the game that are participating in this transaction.privateflag - boolean - This is a flag to describe whether the specific transaction is a private transaction to the non-participating Players.
public static SPTMultistepTurnAPIClass APITAOcreateTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
gapi - SPGameAPIInterface - the game that will be associated with this transaction.transmaster - String - player id of the master of the transactionplayerIDList - String[] - This is an array that holds the Player IDs of the players within the game that are participating in this transaction.privateflag - boolean - This is a flag to describe whether the specific transaction is a private transaction to the non-participating Players.
public static java.lang.String gettranstype()
public static boolean registerTransaction()
public SPAbstractTransactionInterface createTransaction(SPGameAPIInterface gameapiobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
createTransaction in interface SPAbstractTransactionInterfacecreateTransaction in class SPAbstractTransactionClassgameapiobj - SPGameAPIInterface - the game that will be associated with this transaction.master - String - player id of the master of the transactionplayerIDList - String[] - This is an array that holds the Player IDs of the players within the game that are participating in this transaction.privateflag - boolean - This is a flag to describe whether the specific transaction is a private transaction to the non-participating Players.transactionID - String - transaction id.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||