From 98ba22e7064db57316dfff1ae127feb3dceeb73e Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Thu, 31 Jul 2014 13:58:22 +0200 Subject: Initial commit --- docs/html/_level_reader_8h_source.html | 146 +++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 docs/html/_level_reader_8h_source.html (limited to 'docs/html/_level_reader_8h_source.html') diff --git a/docs/html/_level_reader_8h_source.html b/docs/html/_level_reader_8h_source.html new file mode 100644 index 0000000..6f76b60 --- /dev/null +++ b/docs/html/_level_reader_8h_source.html @@ -0,0 +1,146 @@ + + + + +Rally X: source/data/LevelReader.h Source File + + + + + + + + + + + +
+ + +
+ + + + + + + + + + + + + +
+
Rally X + +
+
ELEN3009 Project by Justin Wernick and David Schneider
+
+
+ + + + + +
+
+
source/data/LevelReader.h
+
+
+Go to the documentation of this file.
00001 #ifndef MAZEREADER_H
+00002 #define MAZEREADER_H
+00003 
+00004 #include <vector>
+00005 #include <list>
+00006 #include <string>
+00007 #include <fstream>
+00008 using namespace std;
+00009 
+00010 #include <allegro5/allegro_native_dialog.h>
+00011 
+00012 #include "../logic/Maze.h"
+00013 #include "../logic/PlayerCar.h"
+00014 #include "../logic/EnemyCar.h"
+00015 #include "../logic/Checkpoint.h"
+00016 #include "../logic/Rock.h"
+00017 
+00027 class FileOpenError{};
+00028 
+00035 class LevelReader
+00036 {
+00037     public:
+00043         LevelReader(string filename);
+00044 
+00045         //Assignment and copy operations are handled by the compiler generated versions
+00046 
+00059         void readLevel(Maze& maze, list<PlayerCar>& players, list<EnemyCar>& enemies, list<Checkpoint>& checkpoints, list<Rock>& rocks);
+00060 
+00061     private:
+00062         static const char PLAYER_CHAR = '@'; 
+00063         static const char ENEMY_CHAR = 'X'; 
+00064         static const char CHECKPOINT_CHAR = 'P'; 
+00065         static const char ROCK_CHAR = 'O'; 
+00066         static const char WALL_CHAR = '#'; 
+00067 
+00068         string _filename; 
+00069 };
+00070 
+00071 #endif // MAZEREADER_H
+
+
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator
+ + +
+ +
+ + + + + + + -- cgit v1.2.3