SecurePlayLibray J2SE
v2.1

com.SecurePlay
Class SPTBeginGame

java.lang.Object
  extended bycom.SecurePlay.SPRootTransactionClass
      extended bycom.SecurePlay.SPAbstractTransactionClass
          extended bycom.SecurePlay.SPTBlastClass
              extended bycom.SecurePlay.SPTBeginGame
All Implemented Interfaces:
SPAbstractTransactionInterface

public class SPTBeginGame
extends SPTBlastClass

This transaction is used to begin a game if necessary. It is a single step transaction that sends a single beginGame message.

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

Field Summary
 
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
SPTBeginGame()
          Default Constructor
SPTBeginGame(SPGameInterface gameobj, java.lang.String master, java.lang.String transactionID, java.lang.String AGE, java.lang.String[] config)
          Specific Constructor.
 
Method Summary
 SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj, SPMessageClass message)
          Creates an instance of SPTBeginGame object.
 java.lang.String APIgetTransactionType()
          This method returns a String of the transactiontype.
static SPAbstractTransactionInterface createBeginGame(SPGameInterface gameobj, java.lang.String master, java.lang.String AGE, java.lang.String[] configarr)
          This method creates a SPTBeginGame transaction.
static SPAbstractTransactionInterface createBlast(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 - OVERRIDE This method creates a SPTBlastClass transaction.
static java.lang.String gettranstype()
          This method gets the transaction type.
static boolean registerTransaction()
          Registers this transaction.
 
Methods inherited from class com.SecurePlay.SPTBlastClass
APIgetTransactionContent, createBlast, onincomingTransaction
 
Methods inherited from class com.SecurePlay.SPAbstractTransactionClass
APIcompleteTransaction, APIgetAGE, APIgetConfiguration, APIgetGameinstance, APIgetPrivacyFlag, APIgetTransactionstatus, APIisPlayerInternal, APIisTransError, APIsetTransactionID, logError, 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
 

Constructor Detail

SPTBeginGame

public SPTBeginGame()
Default Constructor


SPTBeginGame

public SPTBeginGame(SPGameInterface gameobj,
                    java.lang.String master,
                    java.lang.String transactionID,
                    java.lang.String AGE,
                    java.lang.String[] config)
Specific Constructor.

Parameters:
gameobj - SPGameInterface - the game that is associated with this transaction.
master - String - master of this transaction
transactionID - String - transaction id of this transaction.
AGE - String - set AGE
config - String[] - configure array of this transaction.
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

createBeginGame

public static SPAbstractTransactionInterface createBeginGame(SPGameInterface gameobj,
                                                             java.lang.String master,
                                                             java.lang.String AGE,
                                                             java.lang.String[] configarr)
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.
AGE - String
configarr - String[] - configure array of this transaction.
Returns:
SPAbstractTransactionInterface - returns BeginGame class

APIcreateTransaction

public SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj,
                                                           SPMessageClass message)
Creates an instance of SPTBeginGame object.

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

APIgetTransactionType

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

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

createBlast

public static SPAbstractTransactionInterface createBlast(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 - OVERRIDE This method creates a SPTBlastClass transaction.

Parameters:
gameobj -
master -
transinfo -
transactionID -
AGE -
configarr -
Returns:
SPAbstractTransactionInterface - returns 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.