|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SPRootTransactionClass
This abstract class provides the common services for all game and transaction types.
![]() |
![]() |
| Field Summary | |
protected java.util.Vector |
EventListenerList
This holds the list of objects that listen to events from the transaction or game object |
protected java.lang.String |
gameID
If associated with a transaction: This property is the identifier of the game instance with which the transaction is associated. |
protected java.lang.String |
master
If associated with a transaction: This is the PlayerID of the player that is the master of this transaction. |
protected java.lang.String[] |
playerIDList
If associated with a transaction: This is an array that holds the Player IDs of the players within the game that are participating in this transaction. |
protected java.lang.String |
transactionID
If associated with a transaction: This property holds the unique identifier for the transaction instance within a game instance. |
| Constructor Summary | |
SPRootTransactionClass()
Default Constructor |
|
| Method Summary | |
boolean |
APIAddListener(SPEventInterface gameobj)
This method adds a listener object for events |
boolean |
APIClearListeners()
This method clears the listener objects for events |
int |
APIGetListenerCount()
This method returns the number of listener objects for events |
java.lang.Object[] |
APIGetListeners()
This method returns a list of listener objects for events |
boolean |
APIRemoveListener(SPEventInterface gameobj)
This method removes a listener object for events |
java.lang.String |
getGameID()
Gets the game id associated with the transaction or game. |
java.lang.String |
getMaster()
Gets the master of the transaction or game |
java.lang.String[] |
getPlayerIDList()
Gets the player id list of the players associated with the transaction or the game. |
java.lang.String |
getTransactionID()
Gets the transaction id. |
boolean |
isPlayerIncluded(java.lang.String pid)
This method tests to determine if a specified player is a transaction participant. |
void |
SPnotify(java.lang.String eventdescription,
java.lang.String[] args)
This method notifies the Listeners of events |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String gameID
protected java.lang.String[] playerIDList
protected java.lang.String transactionID
protected java.lang.String master
protected java.util.Vector EventListenerList
| Constructor Detail |
public SPRootTransactionClass()
| Method Detail |
public java.lang.String getGameID()
public java.lang.String getTransactionID()
public java.lang.String getMaster()
public java.lang.String[] getPlayerIDList()
public boolean APIAddListener(SPEventInterface gameobj)
gameobj -
public boolean APIRemoveListener(SPEventInterface gameobj)
gameobj -
public java.lang.Object[] APIGetListeners()
public boolean APIClearListeners()
public int APIGetListenerCount()
public void SPnotify(java.lang.String eventdescription,
java.lang.String[] args)
eventdescription - args - - String[] - argumentspublic boolean isPlayerIncluded(java.lang.String pid)
pid - String - the player id in question
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||