SecurePlayLibray J2SE
v2.1

com.SecurePlay
Class SPTnewAGEClass

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

public class SPTnewAGEClass
extends SPTBlastClass

This transaction is used to notify other users of a new Abstract Game Engine and provide its parameters. It is a single step transaction that sends a single beginGame message.

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

Field Summary
private  java.lang.String newtransID
           
 
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
SPTnewAGEClass()
          Default Constructor
SPTnewAGEClass(SPGameInterface gameobj, java.lang.String master, java.lang.String transactionID, java.lang.String AGE, java.lang.String ntid, java.lang.String[] config)
          Specific Constructor.
 
Method Summary
 SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj, SPMessageClass message)
          Creates an instance of SPTnewAgeClass object.
 java.lang.String APIgetNewAGE()
          This method returns the new AGE.
 java.lang.String[] APIgetNewAGEParameters()
          This method returns the new AGE parameters.
 java.lang.String APIgetNewTransactionID()
          This method returns the transaction ID associated with the new AGE
 java.lang.String APIgetTransactionType()
          This method returns a String of the transactiontype.
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
static SPAbstractTransactionInterface createNewAGE(SPGameInterface gameobj, java.lang.String master, java.lang.String ntid, java.lang.String AGE, java.lang.String[] configarr)
          This method creates a SPTnewAGEClass 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
 

Field Detail

newtransID

private java.lang.String newtransID
Constructor Detail

SPTnewAGEClass

public SPTnewAGEClass()
Default Constructor


SPTnewAGEClass

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

Parameters:
gameobj - SPGameInterface - the game that is associated with this transaction.
master -
transactionID -
AGE -
ntid -
config -
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

createNewAGE

public static SPAbstractTransactionInterface createNewAGE(SPGameInterface gameobj,
                                                          java.lang.String master,
                                                          java.lang.String ntid,
                                                          java.lang.String AGE,
                                                          java.lang.String[] configarr)
This method creates a SPTnewAGEClass transaction.

Parameters:
gameobj -
master -
ntid -
AGE -
configarr -
Returns:
SPAbstractTransactionInterface - returns NewAGE class created

APIcreateTransaction

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

Specified by:
APIcreateTransaction in interface SPAbstractTransactionInterface
Overrides:
APIcreateTransaction in class SPTBlastClass
Parameters:
gameapiobj - SPGameInterface - game associated with this transaction
message - SPMessageClass - the message that contains the details of the transaction creation.
Returns:
SPAbstractTransactionInterface

APIgetNewAGE

public java.lang.String APIgetNewAGE()
This method returns the new AGE.

Returns:
String

APIgetNewTransactionID

public java.lang.String APIgetNewTransactionID()
This method returns the transaction ID associated with the new AGE

Returns:
String

APIgetNewAGEParameters

public java.lang.String[] APIgetNewAGEParameters()
This method returns the new AGE parameters.

Returns:
String[]

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

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.