2023-10-05 02:03:59 -05:00
|
|
|
#include "GameState.h"
|
2023-10-29 17:00:54 -05:00
|
|
|
#include "State_GameRun.h"
|
|
|
|
|
#include "State_OverworldMap.h"
|
|
|
|
|
#include "State_MainMenu.h"
|
2023-10-05 02:03:59 -05:00
|
|
|
|
2023-11-11 00:54:50 -06:00
|
|
|
#define NEW_STATE(state,class) GameState::states[state]=NEW class();
|
2023-10-05 02:03:59 -05:00
|
|
|
|
|
|
|
|
void GameState::Initialize(){
|
|
|
|
|
NEW_STATE(States::GAME_RUN,State_GameRun);
|
2023-10-29 14:50:22 -05:00
|
|
|
NEW_STATE(States::OVERWORLD_MAP,State_OverworldMap);
|
2023-10-05 02:03:59 -05:00
|
|
|
NEW_STATE(States::MAIN_MENU,State_MainMenu);
|
|
|
|
|
|
2023-11-11 07:09:40 -06:00
|
|
|
GameState::ChangeState(States::GAME_RUN);
|
2023-11-11 00:54:50 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GameState::~GameState(){}
|