|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is the interface for all Game classes
![]() |
![]() |
| Method Summary | |
boolean |
addComms(java.lang.String commsID)
This method associates a comms service specified by the commsID string to a game instance. |
boolean |
addPlayer(java.lang.String pid)
This method safely adds an existing Player, specified by the playerID to the game instance. |
boolean |
addTransaction(SPAbstractTransactionInterface transObj)
This safely adds a transaction to a game instance and appropriately updates the game state. |
java.lang.String |
APIgetGameID()
Gets the game id |
SPLogInterface |
APIgetGameLog()
Gets the messagelog object from the gameinstance |
java.lang.String |
APIgetGamestatus()
Getter function that returns the property: gamestatus |
SPAbstractTransactionInterface |
APIgetGameTransaction(java.lang.String tid)
This method returns a specific transaction associated with a given game instance. |
java.lang.String |
APIgetLicenseSummary()
This method returns a summary of the licensee information for the current game instance. |
java.lang.String |
APIgetMaster()
Gets the master |
java.lang.String[] |
APIgetOpentransactionIDList()
Getter function that returns the open transaction IDs |
java.lang.String[] |
APIgetPlayerIDList()
Gets the player id list |
java.lang.String |
APIgetTransactionID()
Gets the transaction id |
boolean |
closeTransaction(java.lang.String transID)
Safely removes a transaction from a game instance. |
SPCommsManagerClass |
getCommsManager()
Gets the comms manager object |
SecurePlayClass |
getSecurePlay()
This method returns the unique SecurePlay library object associated with the game instance object. |
boolean |
isPlayerInternal(java.lang.String pid)
Checks to see if the player is internal |
void |
onIncomingTransaction(SPMessageClass messObj)
This method is the generic handler for incoming Game transaction methods. |
boolean |
removeComms(java.lang.String commsID)
This method removes the association of a communications service with a game instance. |
boolean |
removePlayer(java.lang.String pid)
This method safely removes a Player instance from an existing Game Instance. |
boolean |
setGameID(java.lang.String gid,
SecurePlayClass spc)
This method sets the internal ID for a comms service if it has not been set. |
boolean |
setPlayerComms(java.lang.String playerID,
java.lang.String commsID)
This method associates a specific player instance, specified by the playerID, with a specific communications service, specified by the commsID. |
void |
SPnotify(java.lang.String eventdescription,
java.lang.String[] args,
java.lang.String sourceMethod,
java.lang.String sourceClass,
java.lang.String errorType)
This method notifies the Listeners of events |
boolean |
transactionincluded(java.lang.String tid)
This method checks the specified transaction ID against the currently included transaction IDs in the game instance. |
| Method Detail |
public boolean addPlayer(java.lang.String pid)
pid - String - the id of the player to be added
public boolean removePlayer(java.lang.String pid)
pid - String - id of the player to be removed
public boolean setPlayerComms(java.lang.String playerID,
java.lang.String commsID)
playerID - String - id of the player to be addedcommsID - String - id of the comms object to be added
public boolean addComms(java.lang.String commsID)
commsID - String - id of the comms to be added
public boolean removeComms(java.lang.String commsID)
commsID - String - id of the comms to be removed
public boolean addTransaction(SPAbstractTransactionInterface transObj)
transObj - SPAbstractTransactionInterface - the transaction Object handler
public boolean closeTransaction(java.lang.String transID)
transID - String - the id of the transaction to be closed
public SPAbstractTransactionInterface APIgetGameTransaction(java.lang.String tid)
tid - String - identifier for transaction object
public void onIncomingTransaction(SPMessageClass messObj)
messObj - SPMessageClass - incoming Message Objectpublic boolean isPlayerInternal(java.lang.String pid)
pid - String - id of the player to be checked
public java.lang.String APIgetGameID()
public java.lang.String[] APIgetPlayerIDList()
public java.lang.String[] APIgetOpentransactionIDList()
public SPCommsManagerClass getCommsManager()
public java.lang.String APIgetMaster()
public java.lang.String APIgetTransactionID()
public SecurePlayClass getSecurePlay()
public void SPnotify(java.lang.String eventdescription,
java.lang.String[] args,
java.lang.String sourceMethod,
java.lang.String sourceClass,
java.lang.String errorType)
eventdescription - args - - String[] - argumentspublic SPLogInterface APIgetGameLog()
public java.lang.String APIgetLicenseSummary()
public java.lang.String APIgetGamestatus()
public boolean setGameID(java.lang.String gid,
SecurePlayClass spc)
gid - String - game idspc - - SecurePlayClass
public boolean transactionincluded(java.lang.String tid)
tid - String - the id of the transaction in question
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||