|
||||||||||
| 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.SPTStrobe.SPTStrobeClass
The Strobe Class is used to provide securely synchronized game play. This is essentially a combination of the Multipart transaction and the Simultaneous transaction. Each participant sends a simultaneous message to the others. Once all sent, then a “tick” or event has occurred. Then another message can be sent and the first message read.
![]() |
![]() |
![]() |
![]() |
| 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 | |
SPTStrobeClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
Overloaded Constructor |
|
| Method Summary | |
boolean |
APIBcreateStrobeTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
This method allows the creation of a new Strobe type, internally controlled transaction. |
SPTStrobeClass |
APIcreateStrobeTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
This method allows the creation of a new Strobe type, internally controlled transaction. |
java.lang.String[] |
APIgetSecret(java.lang.String sender)
This method returns the actual secret for the specified player that this STROBE step is protecting, if available. |
boolean |
APIrequestsendHiddenSecret(java.lang.String pid,
java.lang.String sender,
java.lang.String[] newsecret)
This method allows any party to request the specified transaction participant send a Secret to support the simultaneous transaction. |
boolean |
APIsendHiddenSecret(java.lang.String sender,
java.lang.String[] newsecret)
This method allows the specified transaction participant to send the transform of a secret to the other participants in the Simultaneous transaction. |
SPTStrobeAPIClass |
APITAOcreateStrobeTransaction(SPGameAPIClass gapi,
java.lang.String transmaster,
java.lang.String[] playerIDList,
boolean privateflag)
This method allows the creation of a new Strobe type, internally controlled transaction. |
boolean |
APIverifyStrobeStep()
This method verifies whether the just completed STROBE step is valid. |
protected SPAbstractTransactionInterface |
buildSPawn()
This method provides the unique transaction creation services for spawned Strobe transactions |
SPAbstractTransactionInterface |
createTransaction(SPGameAPIInterface gameapiobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
This method creates a SPStrobeClass transaction. |
int |
getPrpadlength()
Getter function that returns the property: prpadlength |
SPMap |
getSecretA()
Getter function that returns the property: secretA |
SPMap |
getSecretB()
Getter function that returns the property: secretB |
SPMap |
getSecrettransformA()
Getter function that returns the property: secrettransformA |
SPMap |
getSecrettransformB()
Getter function that returns the property: secrettransformB |
static java.lang.String |
gettranstype()
This method gets the transaction type. |
boolean |
isAactive()
Getter function that returns the property: Aactive |
void |
onrequestsendHiddenSecret(SPMessageClass incoming)
Handles incoming requests to create a sendHiddenSecret message by specified recipient |
boolean |
onrevealSecret(SPMessageClass incoming)
This method handles the incoming message to reveal a secret. |
boolean |
onsendHiddenSecret(SPMessageClass incoming)
This method handles incoming sendHiddenSecret messages. |
boolean |
pronincomingTransaction(SPMessageClass incoming)
This method provides the unique handlers for incoming Strobe turn message types |
boolean |
prsendinternalSecrets()
This method safely sends all of the internal Secrets from participants in the Simultaneous transaction to remote players. |
void |
pruniqueinit()
Uniques initialization |
static boolean |
registerTransaction()
Registers this transaction. |
protected boolean |
spawnConfigure(SPAbstractTransactionInterface a)
This method provides the unique transaction configuration services for spawned Strobe transactions |
SPTStrobeAPIClass |
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 SPTStrobeClass(SPGameInterface gameobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
gameobj - SPGameInterface - the game object with which the transaction is associatedmaster - String - the master of the transactionplayerIDList - String[] - player id list of players who are associated with the transactionprivateflag - boolean - private flagtransactionID - String - the transaction id| Method Detail |
public void pruniqueinit()
pruniqueinit in class SPAbstractTransactionClass
public boolean APIsendHiddenSecret(java.lang.String sender,
java.lang.String[] newsecret)
sender - String - sender of the secretnewsecret - String - the secret
public boolean APIverifyStrobeStep()
public java.lang.String[] APIgetSecret(java.lang.String sender)
sender - String - sender of the secret
public boolean onsendHiddenSecret(SPMessageClass incoming)
incoming - SPMessageClass - incoming message
public boolean prsendinternalSecrets()
public boolean onrevealSecret(SPMessageClass incoming)
incoming - SPMessageClass - incoming message
public boolean pronincomingTransaction(SPMessageClass incoming)
pronincomingTransaction in class SPAbstractTransactionClassincoming - SPMessageClass - incoming message
public boolean APIrequestsendHiddenSecret(java.lang.String pid,
java.lang.String sender,
java.lang.String[] newsecret)
pid - String - player id, or the master of the transactionsender - String - sender, or the requestor, can not be masternewsecret - String - the secret
public void onrequestsendHiddenSecret(SPMessageClass incoming)
incoming - SPMessageClass - incoming message
protected SPAbstractTransactionInterface buildSPawn()
buildSPawn in class SPAbstractTransactionClasspublic SPTStrobeAPIClass SPgetAPI()
protected boolean spawnConfigure(SPAbstractTransactionInterface a)
spawnConfigure in class SPAbstractTransactionClassa - SPAbstractTransactionInterface - the transaction to be spawned
public boolean isAactive()
public int getPrpadlength()
public SPMap getSecretA()
public SPMap getSecretB()
public SPMap getSecrettransformA()
public SPMap getSecrettransformB()
public SPTStrobeClass APIcreateStrobeTransaction(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 boolean APIBcreateStrobeTransaction(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 SPTStrobeAPIClass APITAOcreateStrobeTransaction(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 | |||||||||