This commit is contained in:
alexander.tvorogov committed 2018-05-22 17:00:30 +05:00
1 parent 0d9d77769c
commit 6e610664b0
14 files changed
+848 -731

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
#include "galaxy.h"
Executable
+24
View File
@@ -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
+14
View File
@@ -0,0 +1,14 @@
#include "galaxy_menu.h"
GalaxyMenu::GalaxyMenu()
{
}
GalaxyMenu::~GalaxyMenu()
{
}
void GalaxyMenu::InitGalaxyMenu(std::string config) {
/*...Read ptree from config...*/
}
+40
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
#include "galaxy_objects.h"
+32
View File
@@ -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
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -28,6 +28,7 @@
#include "menucode.h"
#include "creditscode.h"
#include "loadingcode.h"
#include "galaxy_menu.h"
using namespace SE;