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.
Main Page | Class Hierarchy | Class List | Class Members

SecurePlayLibrary::SPTSynchronizedRandomClass Class Reference

#include <SPTSynchronizedRandomClass.h>

Inheritance diagram for SecurePlayLibrary::SPTSynchronizedRandomClass:

SecurePlayLibrary::SPTMultiPartSimultaneousClass SecurePlayLibrary::SPAbstractTransactionClass SecurePlayLibrary::SPRootTransactionClass SecurePlayLibrary::SPAbstractTransactionInterface List of all members.

Public Member Functions

 SPTSynchronizedRandomClass ()
 SPTSynchronizedRandomClass (SPGameInterface gameobj, string master, vector< string > playerIDList, bool privateflag, string transactionID, string AGE, int dsize, int ecount, bool replace)
bool APIsendHiddenSecret (string sender, bool manflag)
bool APIsendHiddenSecret (string sender, bool manflag, vector< string > newsecret)
int[] APIgetRandom ()
string APIgetTransactionType ()
SPAbstractTransactionInterface APIcreateTransaction (SPGameInterface gameapiobj, SPMessageClass message)
int APIgetEventCount ()
int APIgetRandomRange ()
bool APIgetReplacement ()

Static Public Member Functions

bool registerTransaction ()
string gettranstype ()
SPAbstractTransactionInterface createSynchronizedRandom (SPGameInterface gameobj, string master, vector< string > playerIDList, bool privateflag, string AGE, int dsize, int ecount, bool replace)
SPAbstractTransactionInterface createMultiPartSimultaneous (SPGameInterface gameobj, string master, vector< string > playerIDList, bool privateflag, string transactionID, string AGE, vector< string > configarr)

Detailed Description

This class is an extension of the SPTMultiPartSimultaneous Class to create random events over a network without a full random transaction.
Author:
IT GlobalSecure Inc.
See also:
SecurePlay License Information


Constructor & Destructor Documentation

SPTSynchronizedRandomClass::SPTSynchronizedRandomClass  ) 
 

Default Constructor.

SPTSynchronizedRandomClass::SPTSynchronizedRandomClass SPGameInterface  gameobj,
string  master,
vector< string >  playerIDList,
bool  privateflag,
string  transactionID,
string  AGE,
int  dsize,
int  ecount,
bool  replace
 

Specific Constructor.

Parameters:
gameobj 
master 
playerIDList 
privateflag 
transactionID 
AGE 
dsize 
ecount 
replace 


Member Function Documentation

SPAbstractTransactionInterface SPTSynchronizedRandomClass::APIcreateTransaction SPGameInterface  gameapiobj,
SPMessageClass  message
 

This creates a SPTSynchronizedRandomClass transaction from an incoming message.

Parameters:
gameapiobj SPGameInterface - Associated Game Object
message SPMessageClass - message class that has all the configure info
Returns:
- result - SPAbstractTransactionInterface - upcast from SPTSynchronizedRandomClass

int SPTSynchronizedRandomClass::APIgetEventCount  ) 
 

int[] SPTSynchronizedRandomClass::APIgetRandom  ) 
 

This method returns the combined random number from the transaction participants

Returns:
int[] result - combined random value

int SPTSynchronizedRandomClass::APIgetRandomRange  ) 
 

bool SPTSynchronizedRandomClass::APIgetReplacement  ) 
 

string SPTSynchronizedRandomClass::APIgetTransactionType  )  [virtual]
 

This method returns a String of the transactiontype.

Returns:
this.transtype - String - name of transaction type

Reimplemented from SecurePlayLibrary::SPTMultiPartSimultaneousClass.

bool SPTSynchronizedRandomClass::APIsendHiddenSecret string  sender,
bool  manflag,
vector< string >  newsecret
 

Reimplemented from SecurePlayLibrary::SPTMultiPartSimultaneousClass.

bool SPTSynchronizedRandomClass::APIsendHiddenSecret string  sender,
bool  manflag
 

This method allows the specified transaction participant to send the transform of a secret to the other participants in the Simultaneous transaction.

Parameters:
sender String - sender of the secret
manflag - boolean - manual resolve flag.
Returns:
result - Boolean: TRUE, if successful, FALSE, if not

SPAbstractTransactionInterface SPTSynchronizedRandomClass::createMultiPartSimultaneous SPGameInterface  gameobj,
string  master,
vector< string >  playerIDList,
bool  privateflag,
string  transactionID,
string  AGE,
vector< string >  configarr
[static]
 

OVERRIDE - OVERRIDE - OVERRIDE - OVERRIDE - OVERRIDE This method creates a SPTSimultaneousClass transaction.

Parameters:
gameobj 
master 
playerIDList 
privateflag 
transactionID 
AGE 
configarr 
Returns:
SPAbstractTransactionInterface - returns null OVERRIDE.

SPAbstractTransactionInterface SPTSynchronizedRandomClass::createSynchronizedRandom SPGameInterface  gameobj,
string  master,
vector< string >  playerIDList,
bool  privateflag,
string  AGE,
int  dsize,
int  ecount,
bool  replace
[static]
 

This method creates a SPTSimultaneousClass transaction.

Parameters:
gameobj 
master 
playerIDList 
privateflag 
AGE 
dsize 
ecount 
replace 
Returns:
SPAbstractTransactionInterface - returns SynchronizedRandom transaction.

string SPTSynchronizedRandomClass::gettranstype  )  [static]
 

Retusn the transaction type.

Returns:
synchrandom

Reimplemented from SecurePlayLibrary::SPTMultiPartSimultaneousClass.

bool SPTSynchronizedRandomClass::registerTransaction  )  [static]
 

Registers this transaction.

Returns:
boolean

Reimplemented from SecurePlayLibrary::SPTMultiPartSimultaneousClass.


The documentation for this class was generated from the following files: 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.