#include <SPGameInterface.h>
Inheritance diagram for SecurePlayLibrary::SPGameInterface:

Public Member Functions | |
| virtual | ~SPGameInterface () |
| virtual SPGameAPIInterface * | getGameAPI ()=0 |
| virtual bool | addPlayer (string pid)=0 |
| virtual bool | removePlayer (string pid)=0 |
| virtual bool | setPlayerComms (string playerID, string commsID, bool relayflag)=0 |
| virtual SPPlayerInterface * | getGamePlayer (string playerID)=0 |
| virtual bool | gameComplete ()=0 |
| virtual bool | addComms (string commsID)=0 |
| virtual bool | removeComms (string commsID)=0 |
| virtual bool | addTransaction (SPAbstractTransactionInterface *transObj)=0 |
| virtual bool | closeTransaction (string transID)=0 |
| virtual SPAbstractTransactionInterface * | getGameTransaction (string tid)=0 |
| virtual bool | transactionincluded (string tid)=0 |
| virtual bool | incrementBasicGameTransactionCount (int count)=0 |
| virtual void | onIncomingTransaction (SPMessageClass *messObj)=0 |
| virtual bool | isPlayerInternal (string pid)=0 |
| virtual bool | attach (string gid, SecurePlayClass *lib, string master, bool signaturepolicy, bool encryptionpolicy, SPLogInterface *log, SPSecurityManagerInterface *security)=0 |
| virtual string | getGameID ()=0 |
| virtual bool | onendGame (SPMessageClass *messObj)=0 |
| virtual vector< string > | getPlayerIDList ()=0 |
| virtual SPCommsManagerClass * | getCommsManager ()=0 |
| virtual string | getMaster ()=0 |
| virtual string | getTransactionID ()=0 |
| virtual SecurePlayClass * | getSecurePlay ()=0 |
| virtual vector< byte > | SPcreateBHash (string input, string gameid)=0 |
| virtual vector< byte > | SPcreateBSignature (string senderID, vector< byte > input, string gameid)=0 |
| virtual string | SPcreateHash (string input, string gameid)=0 |
| virtual string | SPcreateSignature (string senderID, string input, string gameid)=0 |
| virtual vector< string > | SPdecrypt (vector< string > input, string senderID, vector< string > recvrs, string gameID, string messageID)=0 |
| virtual vector< string > | SPencrypt (vector< string > input, string senderID, vector< string > recvrs, string gameID, string messageID)=0 |
| virtual bool | SPverifySignature (vector< byte > sigToVerify, string senderID, vector< byte > testhash, string gameid)=0 |
| virtual bool | SPverifySignature (string signature, string senderID, string testhash, string gameid)=0 |
| virtual SPSecurityManagerInterface * | getSecurityManager ()=0 |
| virtual void | SPnotify (string eventdescription, vector< string > args)=0 |
|
|
Virtual Destructor. |
|
|
This method associates a comms service specified by the commsID string to a game instance.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method safely adds an existing Player, specified by the playerID to the game instance.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This safely adds a transaction to a game instance and appropriately updates the game state.
Implemented in SecurePlayLibrary::SPGameClass. |
|
||||||||||||||||||||||||||||||||
|
This method attaches an empty game object instance and configures it for use in the SecurePlay library as a game
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
Safely removes a transaction from a game instance.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method allows external entities to review the status of the game instance without directly accessing its internals.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
Gets the comms manager object
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method returns the handler for the Game API object.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
Gets the game id
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method returns the player object specified by the playerID.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method returns a specific transaction associated with a given game instance.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
Gets the master
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
Gets the player id list
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method returns the unique SecurePlay library object associated with the game instance object.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method returns the security manager class associated with this game.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
Gets the transaction id
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method increments the game’s transaction counter to support certain licensing models
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
Checks to see if the player is internal
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method safely ends the local game instance.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method is the generic handler for incoming Game transaction methods.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method removes the association of a communications service with a game instance.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method safely removes a Player instance from an existing Game Instance.
Implemented in SecurePlayLibrary::SPGameClass. |
|
||||||||||||||||
|
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.
Implemented in SecurePlayLibrary::SPGameClass. |
|
||||||||||||
|
This is a wrapper function for creating a hash of a string. This reference implementation includes a MD5 hash.
Implemented in SecurePlayLibrary::SPGameClass. |
|
||||||||||||||||
|
This is a wrapper function for creating a digital signature based on an existing hashed string and a Sender ID. The reference implementation currently uses an MD5 function to approximate performance of a real signature. The included signature function is a sample function - REPLACE with a function that meets your specific security requirements.
Implemented in SecurePlayLibrary::SPGameClass. |
|
||||||||||||
|
This is a wrapper function for creating a hash of a string. This reference implementation includes a MD5 hash.
Implemented in SecurePlayLibrary::SPGameClass. |
|
||||||||||||||||
|
This is a wrapper function for creating a digital signature based on an existing hashed string and a Sender ID. The reference implementation currently uses an MD5 function to approximate performance of a real signature. The included signature function is a sample function - REPLACE with a function that meets your specific security requirements.
Implemented in SecurePlayLibrary::SPGameClass. |
|
||||||||||||||||||||||||
|
This is a placeholder for an decryption function. An actual encryption function is the responsibility of the game implementer.
Implemented in SecurePlayLibrary::SPGameClass. |
|
||||||||||||||||||||||||
|
This is a placeholder for an encryption function. An actual encryption function is the responsibility of the game implementer.
Implemented in SecurePlayLibrary::SPGameClass. |
|
||||||||||||
|
This method notifies the Listeners of events
Implemented in SecurePlayLibrary::SPGameClass. |
|
||||||||||||||||||||
|
This is a wrapper for a digital signature verification function. CAREFUL CHOICE OF ACTUAL DIGITAL SIGNATURES AND VERIFICATION IS CRITICAL. SELECTION OF APPROPRIATE FUNCTIONS AND IMPLEMENTATION MAY HAVE A SUBSTANTIAL IMPACT ON THE SECURITY AND PERFORMANCE OF A GAME IMPLEMENTATION.
Implemented in SecurePlayLibrary::SPGameClass. |
|
||||||||||||||||||||
|
This is a wrapper for a digital signature verification function. CAREFUL CHOICE OF ACTUAL DIGITAL SIGNATURES AND VERIFICATION IS CRITICAL. SELECTION OF APPROPRIATE FUNCTIONS AND IMPLEMENTATION MAY HAVE A SUBSTANTIAL IMPACT ON THE SECURITY AND PERFORMANCE OF A GAME IMPLEMENTATION.
Implemented in SecurePlayLibrary::SPGameClass. |
|
|
This method checks the specified transaction ID against the currently included transaction IDs in the game instance.
Implemented in SecurePlayLibrary::SPGameClass. |