#ifndef __COUNTRY_H__ #define __COUNTRY_H__ #include #include "Line.h" #include "Point2.h" #include "State.h" // list of states pointers typedef vector StateList; // country is a state that consists of other states! class Country : public State { public: StateList states; void addState(State *s) { checkBounds(s->min); checkBounds(s->max); // states.push_back(s); lines.insert(lines.end(), s->lines.begin(), s->lines.end()); } }; #endif // __COUNTRY_H__