File: DealCardsCommand.hxx

package info (click to toggle)
oonsoo 1.2-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,604 kB
  • ctags: 422
  • sloc: cpp: 24,373; makefile: 82
file content (45 lines) | stat: -rw-r--r-- 1,188 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
///////////////////////////////////////////////////////////////////////////////
// $Id: DealCardsCommand.hxx,v 1.1 1995/01/08 06:41:27 bmott Exp $
///////////////////////////////////////////////////////////////////////////////
//
// DealCardsCommand.hxx - Command to deal cards
//
//
// Bradford W. Mott
// Copyright (C) 1994
// December 12,1994
//
///////////////////////////////////////////////////////////////////////////////
// $Log: DealCardsCommand.hxx,v $
// Revision 1.1  1995/01/08  06:41:27  bmott
// Initial revision
//
///////////////////////////////////////////////////////////////////////////////

#ifndef DEALCARDSCOMMAND_HXX
#define DEALCARDSCOMMAND_HXX

#include "Command.hxx"
#include "Engine.hxx"

class DealCardsCommand : public Command {
  private:
    Engine* myEngine;

  public:
    // Protected constructor to prevent instantiation
    DealCardsCommand(Engine* engine) { myEngine = engine; }

    // Destructor
    virtual ~DealCardsCommand() { }

    // All I do is tell the engine to deal some cards
    virtual void execute(void* argument)
    {
      (application->soundSystem())->playSample("TypeSpace");
      myEngine->dealCards(FaceUp);
    }
};

#endif