Another checkpoint. Compiling/building/running - Python API tests from in-engine REPL are not passing, though

This commit is contained in:
John McCardle 2023-03-01 21:37:42 -05:00
commit f23dfbe4ba
12 changed files with 127 additions and 22 deletions

View file

@ -6,6 +6,10 @@
//#include "GameEngine.h" // can't - need forward declaration
//#include "ActionCode.h"
#include "Python.h"
#include "UIMenu.h"
#include "Grid.h"
#include "IndexSprite.h"
#include "EntityManager.h"
class GameEngine; // forward declared (circular members)
@ -37,9 +41,9 @@ public:
static void REPL();
// Jank mode engage: let the API hold data for Python to hack on
std::vector<UIMenu> menus;
static std::vector<UIMenu> menus;
EntityManager entities; // this is also kinda good, entities not on the current grid can still act (like monsters following you through doors??)
std::vector<Grid> grids;
static std::vector<Grid> grids;
// Jank Python Method Exposures
static PyObject* _createMenu(PyObject*, PyObject*); // creates a new menu object in McRFPy_API::menus
@ -55,7 +59,7 @@ public:
//static PyObject* _createSprite(PyObject*, PyObject*);
// Jank Functionality
static UIMenu createMenu(int sizex, int sizey);
static UIMenu createMenu(int posx, int posy, int sizex, int sizey);
//static Button createButton(UIMenu & menu, int x, int y, int w, int h);
//static sf::Sprite createSprite(int tex_index, int x, int y);
//static void playSound(const char * filename);