double-hit-balls/game/galaxy_objects.h

60 lines
1.2 KiB
C++
Executable File

#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#::
LevelSelection selectionMenu;
// ::#Params#::
std::string texture;
std::string name;
Eigen::Vector2f position;
float scale;
private:
};
class LevelSelection {
public:
std::vector<std::string> levels;
// #params
std::pair<Eigen::Vector2f, Eigen::Vector2f> params;
std::pair<Eigen::Vector2f, Eigen::Vector2f> buttons_plane;
std::vector<std::pair<Eigen::Vector2f, Eigen::Vector2f>> buttons;
Eigen::Vector2f offset = Eigen::Vector2f(0.f,0.f); // offset
Eigen::Vector2f dim = Eigen::Vector2f(0.7f, 0.7f); // dimensions
/*..buttons plane params..*/
Eigen::Vector2f plane_size = Eigen::Vector2f(1.f, 1.f);
Eigen::Vector2f plane_pos = Eigen::Vector2f(0.f, 0.f); // relative to center
/*..buttons params..*/
int columns = 3;
//float col_size = 1.f;
float border_y_offset = 0.f;
float border_x_offset = 0.1f;
float buttons_offset = 0.1f;
private:
};
#endif