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.
|
|
|
#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::vector<ConnectionPoint>connections;
|
|
|
|
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;
|
|
|
|
};
|