Lephisto/src/sector.h
Rtch90 a0a44932fe [Add] Some Hyperspace range stuff.
[Add] SectorMap indicates current ship location.
2017-11-13 20:59:38 +00:00

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;
};