2023-03-05 04:04:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Common.h"
|
|
|
|
#include "Scene.h"
|
|
|
|
#include "GameEngine.h"
|
|
|
|
#include "Grid.h"
|
2023-03-07 01:54:23 +00:00
|
|
|
//#include "Animation.h"
|
|
|
|
//#include <list>
|
2023-03-05 04:04:16 +00:00
|
|
|
|
|
|
|
class PythonScene: public Scene
|
|
|
|
{
|
|
|
|
sf::Vector2i dragstart, mouseprev;
|
|
|
|
bool dragging;
|
|
|
|
Grid* drag_grid;
|
|
|
|
void doLClick(sf::Vector2i);
|
|
|
|
void doRClick(sf::Vector2i);
|
|
|
|
void doZoom(sf::Vector2i, int);
|
2023-03-07 01:54:23 +00:00
|
|
|
//std::list<Animation*> animations;
|
|
|
|
void animate();
|
2023-07-14 03:01:09 +00:00
|
|
|
std::map<std::string, bool> actionInjected;
|
|
|
|
|
2023-03-05 04:04:16 +00:00
|
|
|
public:
|
|
|
|
PythonScene(GameEngine*, std::string);
|
|
|
|
void update() override final;
|
|
|
|
void doAction(std::string, std::string) override final;
|
|
|
|
void sRender() override final;
|
2023-07-17 03:30:00 +00:00
|
|
|
bool registerActionInjected(int, std::string) override;
|
|
|
|
bool unregisterActionInjected(int, std::string) override;
|
2023-03-05 04:04:16 +00:00
|
|
|
};
|