1 /////////////////////////////////////////////////////////////////////////////// 2 // $Id: HelpCommand.hxx,v 1.1 1995/01/08 06:41:41 bmott Exp $ 3 /////////////////////////////////////////////////////////////////////////////// 4 // 5 // HelpCommand.hxx - Command to help the user with oonsoo 6 // 7 // 8 // Bradford W. Mott 9 // Copyright (C) 1994 10 // December 12,1994 11 // 12 /////////////////////////////////////////////////////////////////////////////// 13 // $Log: HelpCommand.hxx,v $ 14 // Revision 1.1 1995/01/08 06:41:41 bmott 15 // Initial revision 16 // 17 /////////////////////////////////////////////////////////////////////////////// 18 19 #ifndef HELPCOMMAND_HXX 20 #define HELPCOMMAND_HXX 21 22 #include "Help.hxx" 23 #include "Command.hxx" 24 #include "CommandFlags.hxx" 25 26 27 class HelpCommand : public Command { 28 private: 29 SpriteCollection* mySprites; 30 31 public: 32 // Protected constructor to prevent instantiation HelpCommand(SpriteCollection * sprites)33 HelpCommand(SpriteCollection* sprites) 34 :mySprites(sprites) 35 {}; 36 37 // Destructor ~HelpCommand()38 virtual ~HelpCommand() {}; 39 40 // Create a help dialog execute(void * argument)41 virtual void execute(void* argument) 42 { 43 if(!helpCurrentlyDisplayedFlag) 44 { 45 new Help(mySprites); 46 helpCurrentlyDisplayedFlag = 1; 47 } 48 } 49 }; 50 #endif 51 52