SecurePlayLibray J2SE
v2.1

com.SecurePlay
Class SPTPlayerJoinClass

java.lang.Object
  extended bycom.SecurePlay.SPRootTransactionClass
      extended bycom.SecurePlay.SPAbstractTransactionClass
          extended bycom.SecurePlay.SPTBurstClass
              extended bycom.SecurePlay.SPTPlayerJoinClass
All Implemented Interfaces:
SPAbstractTransactionInterface

public class SPTPlayerJoinClass
extends SPTBurstClass

Author:
IT GlobalSecure Inc.
See Also:
SecurePlay License Information
 

Field Summary
(package private)  java.lang.String gamestatus
          Game status of this transaction.
(package private)  java.lang.String newCID
           
(package private)  java.lang.String newGID
           
(package private)  java.lang.String newPID
           
 
Fields inherited from class com.SecurePlay.SPAbstractTransactionClass
AGE, configuration, gameinstance, mt_completeTransaction, mt_error, privateflag, releaseversion, status_error, status_ready, transactionstatus, transtype
 
Fields inherited from class com.SecurePlay.SPRootTransactionClass
comms, EventListenerList, gameID, insend, master, playerIDList, ReSend_altmessage, ReSend_encryptflag, ReSend_messagebody, ReSend_messageID, ReSend_messagetype, ReSend_privateflag, ReSend_receivers, ReSend_sender, secureplay, transactionID
 
Constructor Summary
SPTPlayerJoinClass()
          Default Constructor
SPTPlayerJoinClass(SPGameInterface gameobj, java.lang.String master, boolean pflag, java.lang.String transactionID, java.lang.String[] pidlist, java.lang.String AGE, java.lang.String npid, java.lang.String ncid, java.lang.String ngid)
          Specific Constructor.
 
Method Summary
 SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj, SPMessageClass message)
          Creates a new instance transaction.
 java.lang.String APIgetNewCID()
           
 java.lang.String APIgetNewGID()
           
 java.lang.String APIgetNewPID()
           
 java.lang.String APIgetTransactionType()
          This method returns a String of the transactiontype.
static SPAbstractTransactionInterface createBurst(SPGameInterface gameobj, java.lang.String master, java.lang.String[] transinfo, java.lang.String transactionID, java.lang.String AGE, java.lang.String[] configarr)
          OVERRIDE - OVERRIDE - OVERRIDE - OVERRIDE
static SPAbstractTransactionInterface createPlayJoin(SPGameInterface gameobj, java.lang.String master, java.lang.String[] playerIDList, boolean privateflag, java.lang.String AGE, java.lang.String pid, java.lang.String cid, java.lang.String gid)
          This method creates a SPTBeginGame transaction.
static java.lang.String gettranstype()
          This method gets the transaction type.
static boolean registerTransaction()
          Registers this transaction.
 
Methods inherited from class com.SecurePlay.SPTBurstClass
APIgetTransactionContent, createBurst
 
Methods inherited from class com.SecurePlay.SPAbstractTransactionClass
APIcompleteTransaction, APIgetAGE, APIgetConfiguration, APIgetGameinstance, APIgetPrivacyFlag, APIgetTransactionstatus, APIisPlayerInternal, APIisTransError, APIsetTransactionID, logError, onincomingTransaction, prinit, pronincomingTransaction, pruniqueinit, setAGE
 
Methods inherited from class com.SecurePlay.SPRootTransactionClass
APIaddListener, APIclearListeners, APIgetGameID, APIgetGetReplayList, APIgetListenerCount, APIgetListeners, APIgetMaster, APIgetPlayerIDList, APIgetTransactionID, APIisPlayerIncluded, APIremoveListener, APIReplayRemoveOldSender, APIresendLastMessage, APIsetReplayList, APIsetSecurePlayClass, detectReplay, sendMessage, 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
APIgetGameID, APIgetMaster, APIgetPlayerIDList, APIgetTransactionID, sendMessage
 

Field Detail

gamestatus

java.lang.String gamestatus
Game status of this transaction. It can be used if necessary.


newGID

java.lang.String newGID

newPID

java.lang.String newPID

newCID

java.lang.String newCID
Constructor Detail

SPTPlayerJoinClass

public SPTPlayerJoinClass()
Default Constructor


SPTPlayerJoinClass

public SPTPlayerJoinClass(SPGameInterface gameobj,
                          java.lang.String master,
                          boolean pflag,
                          java.lang.String transactionID,
                          java.lang.String[] pidlist,
                          java.lang.String AGE,
                          java.lang.String npid,
                          java.lang.String ncid,
                          java.lang.String ngid)
Specific Constructor.

Parameters:
gameobj - SPGameInterface - the game that is associated with this transaction.
master - String - master of this transaction
pflag - boolean - WILL be ignored. Since this transaction is designed to begin a game it has to send the begin message to every participant of the game. The prarameter only exists here for inheritance reasons.
transactionID - String - transaction id of this transaction.
pidlist -
AGE - String - set AGE=
npid -
ncid -
ngid -
Method Detail

gettranstype

public static java.lang.String gettranstype()
This method gets the transaction type.

Returns:
String

registerTransaction

public static boolean registerTransaction()
Registers this transaction.

Returns:
boolean

createPlayJoin

public static SPAbstractTransactionInterface createPlayJoin(SPGameInterface gameobj,
                                                            java.lang.String master,
                                                            java.lang.String[] playerIDList,
                                                            boolean privateflag,
                                                            java.lang.String AGE,
                                                            java.lang.String pid,
                                                            java.lang.String cid,
                                                            java.lang.String gid)
This method creates a SPTBeginGame transaction.

Parameters:
gameobj - SPGameInterface - This is the instance of the game associated with this transaction.
master - String - master of this transaction.
playerIDList -
privateflag -
AGE -
pid -
cid -
gid -
Returns:
SPAbstractTransactionInterface - returns PlayerJoin class created.

APIcreateTransaction

public SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj,
                                                           SPMessageClass message)
Creates a new instance transaction.

Specified by:
APIcreateTransaction in interface SPAbstractTransactionInterface
Overrides:
APIcreateTransaction in class SPTBurstClass
Parameters:
gameapiobj - SPGameInterface - game associated with this transaction.
message - SPMessageClass - message that has all the transaction configure info
Returns:
SPAbstractTransactionInterface

APIgetNewCID

public java.lang.String APIgetNewCID()

APIgetNewPID

public java.lang.String APIgetNewPID()

APIgetNewGID

public java.lang.String APIgetNewGID()

APIgetTransactionType

public java.lang.String APIgetTransactionType()
This method returns a String of the transactiontype.

Specified by:
APIgetTransactionType in interface SPAbstractTransactionInterface
Overrides:
APIgetTransactionType in class SPTBurstClass
Returns:
this.transtype - String - name of transaction type

createBurst

public static SPAbstractTransactionInterface createBurst(SPGameInterface gameobj,
                                                         java.lang.String master,
                                                         java.lang.String[] transinfo,
                                                         java.lang.String transactionID,
                                                         java.lang.String AGE,
                                                         java.lang.String[] configarr)
OVERRIDE - OVERRIDE - OVERRIDE - OVERRIDE

Parameters:
gameobj -
master -
transinfo -
transactionID -
AGE -
configarr -
Returns:
SPAbstractTransactionInterface - retuns null

SecurePlayLibray J2SE
v2.1

2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.