X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FLevel%2FCampaign.hpp;h=0a3d734202b24ad37cf58dd76197bc3352b2d726;hp=514a686018f75ece0de010bf7cc1d176fa732d7b;hb=6a8cb464330e92163c8feaf101b8b5837c973bba;hpb=5fca41ab430df85d6dd620a7f4130df01bc1430f diff --git a/Source/Level/Campaign.hpp b/Source/Level/Campaign.hpp index 514a686..0a3d734 100644 --- a/Source/Level/Campaign.hpp +++ b/Source/Level/Campaign.hpp @@ -35,9 +35,11 @@ class CampaignLevel { private: int width; - struct Position { + struct Position + { int x, y; }; + public: std::string mapname; std::string description; @@ -57,8 +59,9 @@ public: int getEndY(); XYZ getCenter(); int getWidth(); - std::istream& operator<< (std::istream& is); - friend std::istream& operator>> (std::istream& is, CampaignLevel& cl) { + std::istream& operator<<(std::istream& is); + friend std::istream& operator>>(std::istream& is, CampaignLevel& cl) + { return cl << is; } };