00001 // execution.h 00002 // 00003 // Copyright (C) 2001 Chris Laurel <claurel@shatters.net> 00004 // 00005 // This program is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU General Public License 00007 // as published by the Free Software Foundation; either version 2 00008 // of the License, or (at your option) any later version. 00009 00010 #ifndef _EXECUTION_H_ 00011 #define _EXECUTION_H_ 00012 00013 #include <celengine/execenv.h> 00014 #include <celengine/command.h> 00015 00016 00017 class Execution 00018 { 00019 public: 00020 Execution(CommandSequence&, ExecutionEnvironment&); 00021 00022 bool tick(double); 00023 void reset(CommandSequence&); 00024 00025 private: 00026 CommandSequence::const_iterator currentCommand; 00027 CommandSequence::const_iterator finalCommand; 00028 ExecutionEnvironment& env; 00029 double commandTime; 00030 }; 00031 00032 #endif // _EXECUTION_H_ 00033
1.4.1