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

Plays all possible cards to foundations.

Syntax:

HRESULT AutoPlay(
   VARIANT_BOOL *pbValid
);

Parameters:

pbValid
The address of a VARIANT_BOOL variable that receives whether any card was autoplayed.

Return Value:

Returns S_OK if successful, or an error value otherwise.

Remarks:

This method is called when the user selects AutoPlay from the Game menu. If your game supports autoplay, move all cards to foundations. If at least one card was moved, set *pbValid to VARIANT_TRUE. If not, then set *pbValid to VARIANT_FALSE and return.

  February 24, 2002 jmhoersc@mtu.edu