Home
   Home  |  Preliminary Docs  |  Design Diagrams  |  Reference  |  Development Docs  |  Download  |  Source Code  |  Final Reports  |
ISolpackGame::Initialize Method

Sets up decks and piles for the game.

Syntax:

HRESULT Initialize(
   ISolpackApp *pApp
);

Parameters:

pApp
A pointer to the ISolpackApp interface of the Solpack engine object.

Return Value:

Returns S_OK if successful, or an error value otherwise.

Remarks:

The game object will receive one call to Initialize before it is first dealt. At this time, the game can create the decks, piles, and GameData objects that it needs. The game object should cache the ISolpackApp pointer for later use; this is the only means by which a game receives this pointer.

The engine calls the ISolpackGame::Uninitialize method when the game is about to be destroyed.

  February 24, 2002 jmhoersc@mtu.edu