Hi :) I want to ask what is the best way to deal with "mini-states" in game? For example I making game like Simcity, i can build buildings, roads, rails, or I can change something in economy. I am making something like:
enum
{
ROAD_CONSTRUCT,
BUILDING_CONSTRUCT
VIEW_MAP
etc..
}
and in the game loop big switch
. But the code is getting big. Is there some solution for all popular languages? I am asking because I am writing in C++, AS3 and sometimes in C.