1 ///////////////////////////////////////////////////////////////////////////////
2 // $Id: DealCardsCommand.hxx,v 1.1 1995/01/08 06:41:27 bmott Exp $
3 ///////////////////////////////////////////////////////////////////////////////
4 //
5 // DealCardsCommand.hxx - Command to deal cards
6 //
7 //
8 // Bradford W. Mott
9 // Copyright (C) 1994
10 // December 12,1994
11 //
12 ///////////////////////////////////////////////////////////////////////////////
13 // $Log: DealCardsCommand.hxx,v $
14 // Revision 1.1  1995/01/08  06:41:27  bmott
15 // Initial revision
16 //
17 ///////////////////////////////////////////////////////////////////////////////
18 
19 #ifndef DEALCARDSCOMMAND_HXX
20 #define DEALCARDSCOMMAND_HXX
21 
22 #include "Command.hxx"
23 #include "Engine.hxx"
24 
25 class DealCardsCommand : public Command {
26   private:
27     Engine* myEngine;
28 
29   public:
30     // Protected constructor to prevent instantiation
DealCardsCommand(Engine * engine)31     DealCardsCommand(Engine* engine) { myEngine = engine; }
32 
33     // Destructor
~DealCardsCommand()34     virtual ~DealCardsCommand() { }
35 
36     // All I do is tell the engine to deal some cards
execute(void * argument)37     virtual void execute(void* argument)
38     {
39       (application->soundSystem())->playSample("TypeSpace");
40       myEngine->dealCards(FaceUp);
41     }
42 };
43 
44 #endif
45 
46