+
+
11 #ifndef YAGE_SPRITESHEET_H
+
12 #define YAGE_SPRITESHEET_H
+
+
+
+
20 #include <rapidjson/reader.h>
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
42 typedef std::map<std::string, details::Coordinate>
SpriteMap;
-
-
-
-
-
-
-
49 SpriteSheet(std::string pngFileName, std::string jsonFileName);
-
-
51 void sprite(std::string spriteName)
const;
-
52 std::string
fileContent(std::string jsonFileName)
const;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
45 typedef std::map<std::string, details::Coordinate>
SpriteMap;
+
+
+
+
+
+
+
52 SpriteSheet(std::string pngFileName, std::string jsonFileName);
-
-
-
-
-
-
59 std::string jsonContent)
const;
-
-
-
-
-
-
Definition: spritesheet.h:46
-
Coordinate(int x_i, int y_i, int width_i, int height_i)
Definition: spritesheet.h:36
-
SpriteSheet(std::string pngFileName, std::string jsonFileName)
Definition: spritesheet.cpp:29
+
54 void sprite(std::string spriteName)
const;
+
55 std::string
fileContent(std::string jsonFileName)
const;
+
+
+
+
+
+
+
62 std::string jsonContent)
const;
+
+
+
+
+
+
Definition: spritesheet.h:49
+
Coordinate(int x_i, int y_i, int width_i, int height_i)
Definition: spritesheet.h:39
+
SpriteSheet(std::string pngFileName, std::string jsonFileName)
Definition: spritesheet.cpp:28
-
int x
Definition: spritesheet.h:29
-
-
std::map< std::string, details::Coordinate > SpriteMap
Definition: spritesheet.h:42
-
Texture texture_
Definition: spritesheet.h:55
-
int width
Definition: spritesheet.h:31
+
int x
Definition: spritesheet.h:32
+
+
std::map< std::string, details::Coordinate > SpriteMap
Definition: spritesheet.h:45
+
Texture texture_
Definition: spritesheet.h:58
+
int width
Definition: spritesheet.h:34
void sprite(std::string spriteName) const
-
int height
Definition: spritesheet.h:32
-
std::string fileContent(std::string jsonFileName) const
Definition: spritesheet.cpp:42
+
int height
Definition: spritesheet.h:35
-
Definition: spritesheet.h:28
-
int y
Definition: spritesheet.h:30
-
details::SpriteMap parseJson(int &width, int &height, std::string jsonContent) const
Definition: spritesheet.cpp:52
-
details::SpriteMap fileLocations_
Definition: spritesheet.h:56
+
Definition: spritesheet.h:31
+
int y
Definition: spritesheet.h:33
+
std::string fileContent(std::string jsonFileName) const
Definition: spritesheet.cpp:41
+
details::SpriteMap parseJson(int &width, int &height, std::string jsonContent) const
Definition: spritesheet.cpp:51
+
details::SpriteMap fileLocations_
Definition: spritesheet.h:59