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

Public Member Functions | |
| virtual | ~SPGameAPIInterface () |
| virtual bool | APIbeginGame (string playerID)=0 |
| virtual bool | APIendGame (string playerID)=0 |
| virtual string | GetNextGameSegmentID (string currentsegment)=0 |
| virtual bool | isPlayerInternal (string pid)=0 |
| virtual bool | isPlayerIncluded (string pid)=0 |
| virtual bool | APIcloseTransaction (string transID)=0 |
| virtual SPAbstractTransactionInterface * | APIcreateTransaction (string transtype, string transmaster, vector< string > playerIDList, bool privateflag)=0 |
| virtual SPTBlastClass * | APIcreateBlastTransaction (string pid, vector< string > transcontent)=0 |
| virtual bool | APIBcreateTransaction (string transtype, string transmaster, vector< string > playerIDList, bool privateflag)=0 |
| virtual SPAbstractTransactionAPIInterface * | APITAOcreateTransaction (string transtype, string transmaster, vector< string > playerIDList, bool privateflag)=0 |
| virtual bool | onnewTransaction (SPMessageClass *incoming)=0 |
| virtual bool | APIPlayerJoin (string sender, string pid, string cid)=0 |
| virtual bool | APIPlayerJoin (string sender, string pid, string cid, bool rflag)=0 |
| virtual bool | onPlayerJoin (SPMessageClass *messObj)=0 |
| virtual bool | joinPlayer (string pid, string cid, bool rflag)=0 |
| virtual bool | APIrequestbeginGame (string playerID)=0 |
| virtual bool | APIrequestendGame (string playerID)=0 |
| virtual bool | APIrequestcreateTransaction (string pid, string transmaster, string transtype, vector< string > playerIDList, bool privateflagIN)=0 |
| virtual bool | APIrequestPlayerJoin (string sender, string pid, string cid, bool rflagIN)=0 |
| virtual bool | onrequestcreateTransaction (SPMessageClass *incoming)=0 |
| virtual bool | onrequestPlayerJoin (SPMessageClass *messObj)=0 |
| virtual string | APIgetLicenseSummary ()=0 |
| virtual SPLogInterface * | APIgetGameLog ()=0 |
| virtual void * | APIgetGameLogCurrentEntry ()=0 |
| virtual int | APIgetGameLogLength ()=0 |
| virtual void * | APIgetGameLogNextEntry ()=0 |
| virtual void * | APIgetGameLogPreviousEntry ()=0 |
| virtual vector< string > | APIgetOpenTransactionIDs ()=0 |
| virtual SPAbstractTransactionAPIInterface * | APIgetTransactionAPI (string tid)=0 |
| virtual bool | sendMessage (string sender, vector< string > receivers, bool encryptflag, bool privateflag, string messagetype, vector< string > messagebody, vector< string > altmessage)=0 |
| virtual SPAbstractTransactionInterface * | APIgetTransaction (string tid)=0 |
| virtual bool | APIAddListener (SPEventInterface *gameobj)=0 |
| virtual bool | APIRemoveListener (SPEventInterface *gameobj)=0 |
| virtual vector< SPEventInterface * > | APIGetListeners ()=0 |
| virtual bool | APIClearListeners ()=0 |
| virtual int | APIGetListenerCount ()=0 |
| virtual SPPlayerInterface * | APIgetPlayer (string pid)=0 |
| virtual vector< string > | APIgetPlayerIDList ()=0 |
| virtual bool | rulesbeginGame (string requesterID)=0 |
| virtual bool | rulesendGame (string requesterID)=0 |
| virtual bool | rulesPlayerJoin (string sender, vector< string > messbody)=0 |
| virtual bool | rulescreateTransaction (string sender, string transtype, string master, vector< string > players, bool pflag)=0 |
| virtual void | onBlast (SPMessageClass *messObj)=0 |
| virtual void | onnewGameBlock (SPMessageClass *messObj)=0 |
| virtual SPGameClass * | getGameinstance ()=0 |
| virtual bool | rulesnewplayerconfig (string pid, string cid, bool rflag)=0 |
|
|
Virtual Destructor. |
|
|
This method adds a listener object for Game API events
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||||||||||
|
This method allows the creation of a new, internally controlled transaction. It also sends a message to the other transaction and game participants about this new transaction. NOTE: Thims method may not be supported
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method safely begins the game
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method clears the listener objects for Game API events
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method removes a transaction from the game instance's open transaction list.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||
|
This method creates a default Blast Transaction for this library.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||||||||||
|
This method allows the creation of a new, internally controlled transaction. It also sends a message to the other transaction and game participants about this new transaction. NOTE: Thims method may not be supported
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method safely ends a game.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
Gets the messagelog object from the gameinstance
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
Returns current entry from the messagelog object of comms
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
returns the number entries in messagelog
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
Returns the next entry from the messagelog object of comms
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
Returns the previous entry from the messagelog object of the comms
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
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.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method returns the number of listener objects for Game API events
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method returns a list of listener objects for Game API events
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
Returns a vector that contains a list of open transaction IDs
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method gets the player from the game instance using the player ID
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method gets the player id list list associated with this game.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method gets the transaction from the game instance using the transaction ID
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method returns the transaction API of the game transaction using sid.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||||||||||
|
This method allows the Game instance Master to safely add a new player during the course of a game and to notify the remote players of this information. This method will not be supported in the next version of the library.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||||||
|
This method allows the Game instance Master to safely add a new player during the course of a game and to notify the remote players of this information.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method removes a listener object for Game API events
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method sends a request to the game instance master to begin the game.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||||||||||||||
|
This method safely allows a player to request the creation of a new transaction of a given type and parameters.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method sends a message from the specified player to the game instance master to end the game.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||||||||||
|
This method sends a request to a remote game instance to add a player during a game. Note, only the game master can add a player.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||||||||||
|
This method allows the creation of a new, internally controlled transaction. It also sends a message to the other transaction and game participants about this new transaction. NOTE: Thims method may not be supported
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
Getter function that returns the property: gameinstance
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method gets automatically called by the Game any time the conditions for a new Game Segment are met according to the SecurePlay Library license. THIS FUNCTION IS A STUB - A global system for unique game segment generation needs to be created in compliance with the SecurePlay license. NOTE - An initial Game Segment needs to be set for each individual game played online this is highly variable - it could be set by a server, a client, a peer, or other system on a case-by-case basis. The base Game Segment ID is provided by SecurePlay.com. One party to the game or supporting the game is responsible for setting the Game Segment ID - the master for the game transaction in this reference implementation. REMOVAL, CIRCUMVENTION, OR DELETION OF THIS FUNCTION IS A VIOLATION OF THE SECUREPLAY LICENSE. ANY CHANGES MUST BE COORDINATED - SEE THE SECUREPLAY LICENSE FOR DETAILS.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method tests to determine if a specified player is a transaction participant.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method checks to see whether a specified playerID is internal to the local SecurePlay library process
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||||||
|
This method carries out the local process of adding a new Player to the local game instance.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method handles incoming new Blast Transactions
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method handles incoming new Game Blocks
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method handles messages for new incoming transactions. It ensures that the new transactions are safely instantiated and loaed into the game.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method safely handles remote messages for the addition of a player to the local game instance.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This method handles incoming requests for the creation of new transactions. Only the proposed transaction master can create a new transaction.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
Safely handles requests to add a player. Only the Game Master can add a player.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This is a shell function to allow the insertion of rules code for the decision to begin a game.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||||||||||||||
|
This method safely allows a player to request the creation of a new transaction of a given type and parameters.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
|
This is a shell method to allow the evaluation of the game rules to determine if the game should be allowed to end.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||||||
|
This shell method takes an incoming proposed configuration for a new player and maps it against the local preference for that player, if different.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||
|
This is a shell method to determine if a player will be allowed to join in midgame. Only the Game Master can implement this request.
Implemented in SecurePlayLibrary::SPGameAPIClass. |
|
||||||||||||||||||||||||||||||||
|
This method is a wrapper for the game instance sendMessage() method.
Implemented in SecurePlayLibrary::SPGameAPIClass. |