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::SPTStrobeClass Class Reference

#include <SPTStrobeClass.h>

Inheritance diagram for SecurePlayLibrary::SPTStrobeClass:

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

Public Member Functions

 SPTStrobeClass ()
 SPTStrobeClass (SPGameInterface *gameobj, string master, vector< string > playerIDList, bool privateflag, string transactionID, string AGE, vector< string > configarr)
void pruniqueinit ()
bool APIsendHiddenSecret (string sender, vector< string > newsecret)
bool APIverifyStrobeStep ()
vector< string > APIgetSecret (string sender)
bool pronincomingTransaction (SPMessageClass *incoming)
bool isAactive ()
int getPrpadlength ()
SPMap< string, vector< string > * > getSecretA ()
SPMap< string, vector< string > * > getSecretB ()
SPMap< string, string > getSecrettransformA ()
SPMap< string, string > getSecrettransformB ()
SPAbstractTransactionInterfaceAPIcreateTransaction (SPGameInterface *gameapiobj, SPMessageClass *message)
string APIgetTransactionType ()

Static Public Member Functions

string gettranstype ()
bool registerTransaction ()
SPAbstractTransactionInterfacecreateStrobe (SPGameInterface *gameobj, string master, vector< string > playerIDList, bool privateflag, string AGE, vector< string > configarr)

Detailed Description

The Strobe Class is used to provide securely synchronized game play. This is essentially a combination of the Multipart transaction and the Simultaneous transaction. Each participant sends a simultaneous message to the others. Once all sent, then a “tick” or event has occurred. Then another message can be sent and the first message read.
Author:
IT GlobalSecure
See also:
SecurePlay License Information


Constructor & Destructor Documentation

SPTStrobeClass::SPTStrobeClass  ) 
 

Default Constructor

SPTStrobeClass::SPTStrobeClass SPGameInterface gameobj,
string  master,
vector< string >  playerIDList,
bool  privateflag,
string  transactionID,
string  AGE,
vector< string >  configarr
 

Overloaded Constructor

Parameters:
gameobj SPGameInterface - the game object with which the transaction is associated
master String - the master of the transaction
playerIDList String[] - player id list of players who are associated with the transaction
privateflag boolean - private flag
transactionID String - the transaction id


Member Function Documentation

SPAbstractTransactionInterface * SPTStrobeClass::APIcreateTransaction SPGameInterface gameapiobj,
SPMessageClass message
[virtual]
 

Creates a new instance of an SPSecretClass class.

Parameters:
gameapiobj SPGameInterface - game associated with this transaction.
message SPMessageClass - message class with all the configure info

Reimplemented from SecurePlayLibrary::SPAbstractTransactionClass.

Reimplemented in SecurePlayLibrary::SPTActClass.

vector< string > SPTStrobeClass::APIgetSecret string  sender  ) 
 

This method returns the actual secret for the specified player that this STROBE step is protecting, if available.

Parameters:
sender String - sender of the secret
Returns:
secret - String - the secret

Reimplemented in SecurePlayLibrary::SPTActClass.

string SPTStrobeClass::APIgetTransactionType  )  [virtual]
 

This method returns a String of the transactiontype.

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

Reimplemented from SecurePlayLibrary::SPAbstractTransactionClass.

Reimplemented in SecurePlayLibrary::SPTActClass.

bool SPTStrobeClass::APIsendHiddenSecret string  sender,
vector< string >  newsecret
 

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
newsecret String - the secret
Returns:
result - Boolean: TRUE, if successful, FALSE, if not

Reimplemented in SecurePlayLibrary::SPTActClass.

bool SPTStrobeClass::APIverifyStrobeStep  ) 
 

This method verifies whether the just completed STROBE step is valid.

Returns:
result - Boolean: TRUE, if transaction verified, FALSE, if not.

SPAbstractTransactionInterface * SPTStrobeClass::createStrobe SPGameInterface gameobj,
string  master,
vector< string >  playerIDList,
bool  privateflag,
string  AGE,
vector< string >  configarr
[static]
 

This method creates a SPTStrobeClass transaction.

Parameters:
gameobj 
master 
playerIDList 
privateflag 
AGE 
configarr 
Returns:
SPAbstractTransactionInterface - returns Strobe class created

int SPTStrobeClass::getPrpadlength  ) 
 

Getter function that returns the property: prpadlength

Returns:
prpadlength - int

SPMap< string, vector< string > * > SPTStrobeClass::getSecretA  ) 
 

Getter function that returns the property: secretA

Returns:
secretA - SPHashtable

SPMap< string, vector< string > * > SPTStrobeClass::getSecretB  ) 
 

Getter function that returns the property: secretB

Returns:
secretB - SPHashtable

SPMap< string, string > SPTStrobeClass::getSecrettransformA  ) 
 

Getter function that returns the property: secrettransformA

Returns:
secrettransformA - SPHashtable

SPMap< string, string > SPTStrobeClass::getSecrettransformB  ) 
 

Getter function that returns the property: secrettransformB

Returns:
secrettransformB - SPHashtable

string SPTStrobeClass::gettranstype  )  [static]
 

This method gets the transaction type.

Returns:
String

Reimplemented from SecurePlayLibrary::SPAbstractTransactionClass.

Reimplemented in SecurePlayLibrary::SPTActClass.

bool SPTStrobeClass::isAactive  ) 
 

Getter function that returns the property: Aactive

Returns:
Aactive

bool SPTStrobeClass::pronincomingTransaction SPMessageClass incoming  ) 
 

This method provides the unique handlers for incoming Strobe turn message types

Parameters:
incoming SPMessageClass - incoming message
Returns:
Boolean - TRUE if successful, FALSE, if unsuccessful

Reimplemented from SecurePlayLibrary::SPAbstractTransactionClass.

void SPTStrobeClass::pruniqueinit  ) 
 

Uniques initialization

Reimplemented from SecurePlayLibrary::SPAbstractTransactionClass.

bool SPTStrobeClass::registerTransaction  )  [static]
 

Registers this transaction.

Returns:
boolean

Reimplemented in SecurePlayLibrary::SPTActClass.


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.