The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'!
https://forums.lestoria.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
401 B
14 lines
401 B
#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::MAIN_MENU);
|
|
} |