#pragma once #include "GameState.h" #include "ConnectionPoint.h" class State_OverworldMap:public GameState{ friend class Crawler; ConnectionPoint*currentConnectionPoint; float currentTime=0; vf2d playerTargetPos; const float playerMoveSpd=48.0; public: State_OverworldMap(); static std::vectorconnections; static ConnectionPoint&GetCurrentConnectionPoint(); void SetStageMarker(std::string connectionName); static ConnectionPoint&ConnectionPointFromIndex(int ind); virtual void OnStateChange(GameState*prevState)override; virtual void OnUserUpdate(Crawler*game)override; virtual void Draw(Crawler*game)override; static void StartLevel(); };