Galactic Bloodshed
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SectorMap Class Reference

#include <vars.h>

Collaboration diagram for SectorMap:

Public Member Functions

 SectorMap (const Planet &planet)
 
 SectorMap (const Planet &planet, bool)
 Add an empty sector for every potential space. Used for initialization. More...
 
auto begin ()
 
auto end ()
 
Sectorget (const int x, const int y)
 
void put (Sector &&s)
 
int get_maxx ()
 
int get_maxy ()
 
Sectorget_random ()
 
 SectorMap (SectorMap &)=delete
 
void operator= (const SectorMap &)=delete
 
 SectorMap (SectorMap &&)=default
 
SectorMapoperator= (SectorMap &&)=default
 

Private Member Functions

 SectorMap (const int maxx, const int maxy)
 

Private Attributes

int maxx_
 
int maxy_
 
std::vector< Sectorvec_
 

Detailed Description

Definition at line 197 of file vars.h.

Constructor & Destructor Documentation

◆ SectorMap() [1/5]

SectorMap::SectorMap ( const Planet planet)
inline

Definition at line 199 of file vars.h.

◆ SectorMap() [2/5]

SectorMap::SectorMap ( const Planet planet,
bool   
)
inline

Add an empty sector for every potential space. Used for initialization.

Definition at line 204 of file vars.h.

◆ SectorMap() [3/5]

SectorMap::SectorMap ( SectorMap )
delete

◆ SectorMap() [4/5]

SectorMap::SectorMap ( SectorMap &&  )
default

◆ SectorMap() [5/5]

SectorMap::SectorMap ( const int  maxx,
const int  maxy 
)
inlineprivate

Definition at line 226 of file vars.h.

Member Function Documentation

◆ begin()

auto SectorMap::begin ( )
inline

Definition at line 211 of file vars.h.

◆ end()

auto SectorMap::end ( )
inline

Definition at line 212 of file vars.h.

◆ get()

Sector& SectorMap::get ( const int  x,
const int  y 
)
inline

Definition at line 214 of file vars.h.

◆ get_maxx()

int SectorMap::get_maxx ( )
inline

Definition at line 216 of file vars.h.

◆ get_maxy()

int SectorMap::get_maxy ( )
inline

Definition at line 217 of file vars.h.

◆ get_random()

Sector & SectorMap::get_random ( )

Definition at line 25 of file sector.cc.

◆ operator=() [1/2]

void SectorMap::operator= ( const SectorMap )
delete

◆ operator=() [2/2]

SectorMap& SectorMap::operator= ( SectorMap &&  )
default

◆ put()

void SectorMap::put ( Sector &&  s)
inline

Definition at line 215 of file vars.h.

Member Data Documentation

◆ maxx_

int SectorMap::maxx_
private

Definition at line 227 of file vars.h.

◆ maxy_

int SectorMap::maxy_
private

Definition at line 228 of file vars.h.

◆ vec_

std::vector<Sector> SectorMap::vec_
private

Definition at line 229 of file vars.h.


The documentation for this class was generated from the following files: