27 lines
499 B
C++
27 lines
499 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
#include "libs.h"
|
|
#include "star_system.h"
|
|
|
|
class Sector {
|
|
public:
|
|
/* Lightyears. */
|
|
enum { SIZE=8 };
|
|
Sector(int x, int y);
|
|
static float DistanceBetween(const Sector* a, int sysIdxA, const Sector* b, int sysIdxB);
|
|
|
|
int m_numSystems;
|
|
struct System {
|
|
std::string name;
|
|
vector3f p;
|
|
StarSystem::SBody::SubType primaryStarClass;
|
|
};
|
|
std::vector<System>m_systems;
|
|
|
|
private:
|
|
std::string GenName(MTRand& rand);
|
|
int sx, sy;
|
|
};
|
|
|