AdventuresInLestoria/Crawler/State_OverworldMap.h

20 lines
636 B
C++

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