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.
SecurePlayLibrary::SPGameClass Class Reference
#include <SPGameClass.h>
Inheritance diagram for SecurePlayLibrary::SPGameClass:
List of all members.
|
Public Member Functions |
| | SPGameClass (string gameID, string master, bool signaturepolicy, bool encryptionpolicy, SecurePlayClass *SPlibobj, SPLogInterface *log, SPSecurityManagerInterface *security) |
| | SPGameClass (string master, bool signaturepolicy, bool encryptionpolicy, SPLogInterface *log, SPSecurityManagerInterface *security) |
| bool | addPlayer (string pid) |
| bool | removePlayer (string pid) |
| bool | setPlayerComms (string playerID, string commsID) |
| bool | addComms (string commsID) |
| bool | removeComms (string commsID) |
| bool | addTransaction (SPAbstractTransactionInterface *transObj) |
| bool | closeTransaction (string transID) |
| SPAbstractTransactionInterface * | APIgetGameTransaction (string tid) |
| bool | transactionincluded (string tid) |
| void | onIncomingTransaction (SPMessageClass *messObj) |
| bool | isPlayerInternal (string pid) |
| SPCommsManagerClass * | getCommsManager () |
| SecurePlayClass * | getSecurePlay () |
| string | APIgetGamestatus () |
| vector< string > | APIgetOpentransactionIDList () |
| vector< SPAbstractTransactionInterface * > | getTransactions () |
| string | APIgetLicenseSummary () |
| SPLogInterface * | APIgetGameLog () |
| int | APIgetBasicTransactionCount () |
| bool | setGameID (string gid, SecurePlayClass *spc) |
| string | APIgetMaster () |
| string | APIgetTransactionID () |
| string | APIgetGameID () |
| vector< string > | APIgetPlayerIDList () |
| void | SPnotify (string eventdescription, vector< string > args, string sourceMethod, string sourceClass, string errorType) |
Static Public Attributes |
| const string | mt_newTransaction = "newTransaction" |
Detailed Description
This is the general class that holds a game instance. It is also the transaction class for the basic game transaction. - Author:
- IT GlobalSecure
- See also:
- SecurePlay License Information
Constructor & Destructor Documentation
|
|
Constructs an overloaded SPGameClass() - Parameters:
-
| gameID | String - id of the game |
| master | String - id of the player who will be the master of this game |
| signaturepolicy | boolean - signature policy |
| encryptionpolicy | boolean - encryption policy |
| SPlibobj | SecurePlayClass - secure play library in which the game will be created. |
|
|
|
Constructs an overloaded SPGameClass() - Parameters:
-
| master | String - id of the player who will be the master of this game |
| signaturepolicy | boolean - signature policy |
| encryptionpolicy | boolean - encryption policy |
| log | - SPLogInterface - game log object |
| security | - SPSecurityManagerInterface - security manager object |
|
Member Function Documentation
| bool SPGameClass::addComms |
( |
string |
commsID |
) |
[virtual] |
|
|
|
This method associates a comms service specified by the commsID string to a game instance. - Parameters:
-
| commsID | String - id of the comms to be added |
- Returns:
- result - Boolean: TRUE, if gamestatus is "complete", FALSE, if not
Implements SecurePlayLibrary::SPGameInterface. |
| bool SPGameClass::addPlayer |
( |
string |
pid |
) |
[virtual] |
|
|
|
This method safely adds an existing Player, specified by the playerID to the game instance. - Parameters:
-
| pid | String - the id of the player to be added |
- Returns:
- result - Boolean: TRUE, if successful, FALSE, if no
Implements SecurePlayLibrary::SPGameInterface. |
|
|
This safely adds a transaction to a game instance and appropriately updates the game state. - Parameters:
-
- Returns:
- result - Boolean: TRUE, if successful, FALSE, if not
Implements SecurePlayLibrary::SPGameInterface. |
| int SPGameClass::APIgetBasicTransactionCount |
( |
|
) |
|
|
|
|
This method returns the basic transaction count - the total number of transactions that have been generated. - Returns:
- - int - the basic transaction count
|
| string SPGameClass::APIgetGameID |
( |
|
) |
[virtual] |
|
| string SPGameClass::APIgetGamestatus |
( |
|
) |
[virtual] |
|
|
|
This method returns a specific transaction associated with a given game instance. - Parameters:
-
| tid | String - identifier for transaction object |
- Returns:
- result - Boolean: TRUE, if successful, FALSE, if not
Implements SecurePlayLibrary::SPGameInterface. |
| string SPGameClass::APIgetLicenseSummary |
( |
|
) |
[virtual] |
|
|
|
This method returns a summary of the licensee information for the current game instance. This information needs to be publicly available from any game instance, see SecurePlay license for details. - Returns:
- fulllicensetext - String - this string contains full license information.
Implements SecurePlayLibrary::SPGameInterface. |
| string SPGameClass::APIgetMaster |
( |
|
) |
[virtual] |
|
| vector< string > SPGameClass::APIgetOpentransactionIDList |
( |
|
) |
[virtual] |
|
| vector< string > SPGameClass::APIgetPlayerIDList |
( |
|
) |
[virtual] |
|
| string SPGameClass::APIgetTransactionID |
( |
|
) |
[virtual] |
|
| bool SPGameClass::closeTransaction |
( |
string |
transID |
) |
[virtual] |
|
|
|
Safely removes a transaction from a game instance. - Parameters:
-
| transID | String - the id of the transaction to be closed |
- Returns:
- result - Boolean: TRUE, if successful, FALSE, if not
Implements SecurePlayLibrary::SPGameInterface. |
|
|
This method returns the unique SecurePlay library object associated with the game instance object. - Returns:
- spc - SecurePlayLibrary - the secure play library
Implements SecurePlayLibrary::SPGameInterface. |
|
|
Getter function that returns the transactions from propentransactionlist - Returns:
- prplayerList - SPHashtable
|
| bool SPGameClass::isPlayerInternal |
( |
string |
pid |
) |
[virtual] |
|
|
|
Checks to see if the player is internal - Parameters:
-
| pid | String - id of the player to be checked |
- Returns:
- result - Boolean: TRUE, if successful, FALSE, if not
Implements SecurePlayLibrary::SPGameInterface. |
| void SPGameClass::onIncomingTransaction |
( |
SPMessageClass * |
messObj |
) |
[virtual] |
|
| bool SPGameClass::removeComms |
( |
string |
commsID |
) |
[virtual] |
|
|
|
This method removes the association of a communications service with a game instance. - Parameters:
-
| commsID | String - id of the comms to be removed |
- Returns:
- result - Boolean: TRUE, if successful, FALSE, if not
Implements SecurePlayLibrary::SPGameInterface. |
| bool SPGameClass::removePlayer |
( |
string |
pid |
) |
[virtual] |
|
|
|
This method safely removes a Player instance from an existing Game Instance. - Parameters:
-
| pid | String - id of the player to be removed |
- Returns:
- result - Boolean: TRUE, if successful, FALSE, if not.
Implements SecurePlayLibrary::SPGameInterface. |
| bool SPGameClass::setGameID |
( |
string |
gid, |
|
|
SecurePlayClass * |
spc |
|
) |
[virtual] |
|
|
|
This method sets the internal ID for a comms service if it has not been set. NOTE, this ID is not the public, network, or other ID for the communications service, but simply an internal handler. - Parameters:
-
- Returns:
- boolean: TRUE, if succesful, FALSE, if not
Implements SecurePlayLibrary::SPGameInterface. |
| bool SPGameClass::setPlayerComms |
( |
string |
playerID, |
|
|
string |
commsID |
|
) |
[virtual] |
|
|
|
This method associates a specific player instance, specified by the playerID, with a specific communications service, specified by the commsID. For certain remote players, a relay service is supported to allow messages to be forwarded. NOTE: there is a reserved comms service "internal" for player instances that are included in the local application session. - Parameters:
-
| playerID | String - id of the player to be added |
| commsID | String - id of the comms object to be added |
- Returns:
- result - Boolean: TRUE, if successful, FALSE, if not
Implements SecurePlayLibrary::SPGameInterface. |
| void SPGameClass::SPnotify |
( |
string |
eventdescription, |
|
|
vector< string > |
args, |
|
|
string |
sourceMethod, |
|
|
string |
sourceClass, |
|
|
string |
errorType |
|
) |
[virtual] |
|
| bool SPGameClass::transactionincluded |
( |
string |
tid |
) |
[virtual] |
|
|
|
This method checks the specified transaction ID against the currently included transaction IDs in the game instance. - Parameters:
-
| tid | String - the id of the transaction in question |
- Returns:
- result Boolean: TRUE, if included, FALSE, if not
Implements SecurePlayLibrary::SPGameInterface. |
Member Data Documentation
|
|
This property is the message type for new transactions. |
The documentation for this class was generated from the following files:
- D:/SecurePlayLibrary/060216_SecurePlayLibrary_3_1_baseline/CPP/src/SPGameClass.h
- D:/SecurePlayLibrary/060216_SecurePlayLibrary_3_1_baseline/CPP/src/SPGameClass.cpp
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.