]> git.mxchange.org Git - flightgear.git/blob - src/AIModel/AIScenario.hxx
992f30bb1a1c34f9b978289a4331b653ed5a3922
[flightgear.git] / src / AIModel / AIScenario.hxx
1 // FGAIScenario - class for loading an AI scenario
2 // Written by David Culp, started May 2004
3 // - davidculp2@comcast.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 as
7 // published by the Free Software Foundation; either version 2 of the
8 // License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful, but
11 // WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 // General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19 #ifndef _FG_AISCENARIO_HXX
20 #define _FG_AISCENARIO_HXX
21
22 #include <simgear/compiler.h>
23
24 #include <vector>
25 #include <string>
26
27 #include "AIBase.hxx"
28
29 SG_USING_STD(vector);
30 SG_USING_STD(string);
31
32
33 class FGAIScenario {
34
35 public:
36
37    FGAIScenario(const string &filename);
38    ~FGAIScenario();
39
40    FGAIModelEntity* const getNextEntry( void );
41    int nEntries( void );
42
43 private:
44
45     typedef vector <FGAIModelEntity*> entry_vector_type;
46     typedef entry_vector_type::const_iterator entry_vector_iterator;
47
48     entry_vector_type       entries;
49     entry_vector_iterator   entry_iterator;
50
51
52 };    
53
54
55 #endif  // _FG_AISCENARIO_HXX
56