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

Plays the specified card to a foundation, if possible.

Syntax:

HRESULT AutoPlayCard(
   ISolpackCard *pCard,
   VARIANT_BOOL *pbValid
);

Parameters:

pCard
A pointer to the ISolpackCard interface of the card to autoplay.
pbValid
The address of a VARIANT_BOOL variable that receives whether the card was autoplayed.

Return Value:

Returns S_OK if successful, or an error value otherwise.

Remarks:

If the specified card can be moved to a foundation, do so and set *pbValid to VARIANT_TRUE. Otherwise, set *pbValid to VARIANT_FALSE and return.

  February 24, 2002 jmhoersc@mtu.edu