Toggle Interface implementation. Class toggling connections created and class switching via class selection menu completed.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "Menu.h"
|
||||
#include "GameState.h"
|
||||
#include "Item.h"
|
||||
#include "Toggleable.h"
|
||||
|
||||
INCLUDE_EMITTER_LIST
|
||||
|
||||
@@ -143,6 +144,8 @@ bool Crawler::OnUserCreate(){
|
||||
|
||||
GameState::Initialize();
|
||||
|
||||
ValidateGameStatus(); //Checks to make sure everything has been initialized properly.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1818,4 +1821,14 @@ void Crawler::InitializeGraphics(){
|
||||
|
||||
MapTag Crawler::GetCurrentMap(){
|
||||
return MAP_DATA[GetCurrentLevel()].MapData;
|
||||
}
|
||||
|
||||
void Crawler::ValidateGameStatus(){
|
||||
if(IToggleable::uninitializedToggleGroupItems.size()>0){
|
||||
for(IToggleable*item:IToggleable::uninitializedToggleGroupItems){
|
||||
std::cout<<"\tUninitialized Toggle Item Ptr: 0x"<<std::hex<<item<<std::endl;
|
||||
}
|
||||
std::cout<<"Error TOGGLE!!! Please turn on debug_toggleable_items in configuration.txt and re-run the program to see which toggleable item did not properly get a toggleable group set."<<std::endl;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user