menu dev
This commit is contained in:
1 parent
0d9d77769c
commit
6e610664b0
14 files changed
+848
-731
No files matched your search
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#include "galaxy.h"
|
||||
|
||||
|
||||
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#ifndef GALAXY_H
|
||||
#define GALAXY_H
|
||||
|
||||
#include "include/Engine.h"
|
||||
|
||||
#include "galaxy_objects.h"
|
||||
|
||||
class Galaxy {
|
||||
public:
|
||||
|
||||
// ====== All objects =======
|
||||
std::vector<StarObject> Stars;
|
||||
// ====== All objects =======
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
|
||||
#include "galaxy_menu.h"
|
||||
|
||||
GalaxyMenu::GalaxyMenu()
|
||||
{
|
||||
}
|
||||
|
||||
GalaxyMenu::~GalaxyMenu()
|
||||
{
|
||||
}
|
||||
|
||||
void GalaxyMenu::InitGalaxyMenu(std::string config) {
|
||||
/*...Read ptree from config...*/
|
||||
}
|
||||
Executable
+40
@@ -0,0 +1,40 @@
|
||||
#ifndef GALAXY_MENU_H
|
||||
#define GALAXY_MENU_H
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
#include "galaxy.h"
|
||||
|
||||
class GalaxyMenu {
|
||||
public:
|
||||
|
||||
GalaxyMenu();
|
||||
~GalaxyMenu();
|
||||
|
||||
// ======== All objects =========
|
||||
std::vector<Galaxy> galaxies;
|
||||
// ======== All objects =========
|
||||
|
||||
|
||||
// ======== Main Methods ========
|
||||
void InitGalaxyMenu(std::string config);
|
||||
void DrawGalaxyMenu();
|
||||
void UpdateGalaxyMenu();
|
||||
// ======== Main Methods ========
|
||||
|
||||
void InteractWithGalaxy(/*..Vector/Vector/Int..*/); // Prototype for mouse/tap events
|
||||
|
||||
// Params
|
||||
Eigen::Vector2f menuPosition;
|
||||
float menuScale;
|
||||
|
||||
private:
|
||||
|
||||
void readSaveData(); // inner init method
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
#include "galaxy_objects.h"
|
||||
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#ifndef GALAXY_OBJECTS_H
|
||||
#define GALAXY_OBJECTS_H
|
||||
|
||||
#include "include/Engine.h"
|
||||
#include <string>
|
||||
|
||||
class StarObject {
|
||||
public:
|
||||
|
||||
//StarObject(Eigen::Vector2f pos, std::string id/*star name*/);
|
||||
//~StarObject();
|
||||
|
||||
// :::::::::::::
|
||||
Eigen::Vector2f GetPosition();
|
||||
// :::::::::::::
|
||||
|
||||
// ::#Levels#::
|
||||
std::vector<std::string> levels;
|
||||
|
||||
// ::#Params#::
|
||||
std::string selfTexture;
|
||||
std::string name;
|
||||
Eigen::Vector2f selfPosition;
|
||||
float selfScale;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
+675
-669
File diff suppressed because it is too large.
Load diff
@@ -28,6 +28,7 @@
|
||||
#include "menucode.h"
|
||||
#include "creditscode.h"
|
||||
#include "loadingcode.h"
|
||||
#include "galaxy_menu.h"
|
||||
|
||||
using namespace SE;
|
||||
|
||||
|
||||
Reference in new issue
Block a user