std::cout<<"WARNING! There are "<<Menu::unhandledComponents.size()<<" components that were not added to any Menu! These have been leaked and should not be happening!"<<std::endl;
std::cout<<"See below for a report of unhandled components:"<<std::endl;
staticstd::vector<MenuComponent*>unhandledComponents;//This list contains MenuComponents that are created and haven't been assigned via AddComponent. If we get to the end of menu initialization and there are any components in this vector, we have leaked memory and will report this.
staticconstvf2dCENTERED;
safemap<std::string,MenuComponent*>components;//A friendly way to interrogate any component we are interested in.
std::vector<MenuComponent*>displayComponents;//Components that are only for displaying purposes.
staticstd::map<MenuType,Menu*>menus;
vf2dpos;//Specify the upper-left corner of the window. Using CENTERED will always put this where the upper-left corner would center the window.
vf2dsize;//Size in tiles (24x24), every menu will be tile-based