execution.h
Upload User: center1979
Upload Date: 2022-07-26
Package Size: 50633k
Code Size: 1k
Category:

OpenGL program

Development Platform:

Visual C++

  1. // execution.h
  2. //
  3. // Copyright (C) 2001 Chris Laurel <claurel@shatters.net>
  4. //
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9. #ifndef _EXECUTION_H_
  10. #define _EXECUTION_H_
  11. #include <celengine/execenv.h>
  12. #include <celengine/command.h>
  13. class Execution
  14. {
  15.  public:
  16.     Execution(CommandSequence&, ExecutionEnvironment&);
  17.     
  18.     bool tick(double);
  19.     void reset(CommandSequence&);
  20.  private:
  21.     CommandSequence::const_iterator currentCommand;
  22.     CommandSequence::const_iterator finalCommand;
  23.     ExecutionEnvironment& env;
  24.     double commandTime;
  25. };
  26. #endif // _EXECUTION_H_