16 lines
427 B
C++
16 lines
427 B
C++
#include "GameState.h"
|
|
#include "State_GameRun.h"
|
|
#include "State_OverworldMap.h"
|
|
#include "State_MainMenu.h"
|
|
|
|
#define NEW_STATE(state,class) GameState::states[state]=NEW class();
|
|
|
|
void GameState::Initialize(){
|
|
NEW_STATE(States::GAME_RUN,State_GameRun);
|
|
NEW_STATE(States::OVERWORLD_MAP,State_OverworldMap);
|
|
NEW_STATE(States::MAIN_MENU,State_MainMenu);
|
|
|
|
GameState::ChangeState(States::GAME_RUN);
|
|
}
|
|
|
|
GameState::~GameState(){} |