SecurePlayLibray J2SE
v2.1

com.SecurePlay
Class SPTnewGameClass

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

public class SPTnewGameClass
extends SPTBurstClass

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

Field Summary
(package private)  java.lang.String gamestatus
          Game status of this transaction.
private  boolean newencrypt
           
private  java.lang.String newGameType
           
private  java.lang.String newGID
           
private  java.lang.String newMaster
           
private  java.lang.String[] newPlayers
           
private  java.lang.String newSecurityManagerType
           
private  boolean newsign
           
 
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
SPTnewGameClass()
          Default Constructor
SPTnewGameClass(SPGameInterface gameobj, java.lang.String master, boolean pflag, java.lang.String transactionID, java.lang.String[] pidlist, java.lang.String AGE, java.lang.String nGameType, java.lang.String nGID, java.lang.String nMaster, java.lang.String[] nPlayers, boolean nsigpol, boolean nencpol, java.lang.String nSecManType)
          Specific Constructor.
 
Method Summary
 SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj, SPMessageClass message)
          Creates a new instance of an SPTBeginGame.
 boolean APIgetNewEncryptPolicy()
           
 java.lang.String APIgetNewGameType()
           
 java.lang.String APIgetNewGID()
           
 java.lang.String APIgetNewMaster()
           
 java.lang.String[] APIgetNewPlayers()
           
 java.lang.String APIgetNewSecurityManagerType()
           
 boolean APIgetNewSignaturePolicy()
           
 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 - OVERRIDE This method creates a SPTBurstClass transaction.
static SPAbstractTransactionInterface createNewGame(SPGameInterface gameobj, java.lang.String master, java.lang.String[] playerIDList, boolean privateflag, java.lang.String AGE, java.lang.String nGameType, java.lang.String nGID, java.lang.String nMaster, java.lang.String[] nPlayers, boolean nsigpol, boolean nencpol, java.lang.String nSecManType)
          This creates the new newGameClass 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.


newGameType

private java.lang.String newGameType

newGID

private java.lang.String newGID

newMaster

private java.lang.String newMaster

newPlayers

private java.lang.String[] newPlayers

newSecurityManagerType

private java.lang.String newSecurityManagerType

newsign

private boolean newsign

newencrypt

private boolean newencrypt
Constructor Detail

SPTnewGameClass

public SPTnewGameClass()
Default Constructor


SPTnewGameClass

public SPTnewGameClass(SPGameInterface gameobj,
                       java.lang.String master,
                       boolean pflag,
                       java.lang.String transactionID,
                       java.lang.String[] pidlist,
                       java.lang.String AGE,
                       java.lang.String nGameType,
                       java.lang.String nGID,
                       java.lang.String nMaster,
                       java.lang.String[] nPlayers,
                       boolean nsigpol,
                       boolean nencpol,
                       java.lang.String nSecManType)
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 - String[] - players involved in this transaction
AGE - String - set AGE
nGameType -
nGID -
nMaster -
nPlayers -
nsigpol -
nencpol -
nSecManType -
Method Detail

APIgetNewGameType

public java.lang.String APIgetNewGameType()

APIgetNewGID

public java.lang.String APIgetNewGID()

APIgetNewMaster

public java.lang.String APIgetNewMaster()

APIgetNewPlayers

public java.lang.String[] APIgetNewPlayers()

APIgetNewSecurityManagerType

public java.lang.String APIgetNewSecurityManagerType()

APIgetNewSignaturePolicy

public boolean APIgetNewSignaturePolicy()

APIgetNewEncryptPolicy

public boolean APIgetNewEncryptPolicy()

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

createNewGame

public static SPAbstractTransactionInterface createNewGame(SPGameInterface gameobj,
                                                           java.lang.String master,
                                                           java.lang.String[] playerIDList,
                                                           boolean privateflag,
                                                           java.lang.String AGE,
                                                           java.lang.String nGameType,
                                                           java.lang.String nGID,
                                                           java.lang.String nMaster,
                                                           java.lang.String[] nPlayers,
                                                           boolean nsigpol,
                                                           boolean nencpol,
                                                           java.lang.String nSecManType)
This creates the new newGameClass transaction

Parameters:
gameobj -
master -
playerIDList -
privateflag -
AGE -
nGameType -
nGID -
nMaster -
nPlayers -
nsigpol -
nencpol -
nSecManType -
Returns:
SPAbstractTransactionInterface - returns a SPTnewGameClass

APIcreateTransaction

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

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

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 - OVERRIDE This method creates a SPTBurstClass transaction.

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