class Map -  
 More...
#include <Map.hpp>
|  | 
|  | Map (unsigned width=15, unsigned height=11) | 
|  | Map constructor.  More... 
 | 
|  | 
| std::shared_ptr< Hexagon > | operator() (unsigned x, unsigned y) | 
|  | Operator to access a specific hexagon of the map.  More... 
 | 
|  | 
| unsigned | getMapHeight () | 
|  | 
| unsigned | getMapWidth () | 
|  | 
| void | setMapHeight (unsigned height) | 
|  | 
| void | setMapWidth (unsigned width) | 
|  | 
| void | setWater (int x, int y) | 
|  | 
| void | generateRandomMap (int seed) | 
|  | Function to generate a random map based on Perlin Noise.  More... 
 | 
|  | 
| void | init () | 
|  | 
| void | addResource (int x, int y, int procent, ResourceEnum resource) | 
|  | 
|  | 
| class | boost::serialization::access | 
|  | 
◆ Map()
      
        
          | Map::Map | ( | unsigned | width = 15, | 
        
          |  |  | unsigned | height = 11 | 
        
          |  | ) |  |  | 
      
 
Map constructor. 
- Parameters
- 
  
    | width | Width of the map to instantiate |  | height | Height of the map to instantiate |  
 
 
 
◆ generateRandomMap()
      
        
          | void Map::generateRandomMap | ( | int | seed | ) |  | 
      
 
Function to generate a random map based on Perlin Noise. 
- Parameters
- 
  
    | seed | Seed to use for the random generation |  
 
 
 
◆ operator()()
      
        
          | std::shared_ptr< Hexagon > Map::operator() | ( | unsigned | x, | 
        
          |  |  | unsigned | y | 
        
          |  | ) |  |  | 
      
 
Operator to access a specific hexagon of the map. 
- Parameters
- 
  
    | x | X coordinate of the hexagon |  | y | Y coordinate of the hexagon |  
 
- Returns
- Pointer to the hexagon 
 
 
The documentation for this class was generated from the following files:
- include/shared/Map.hpp
- src/shared/Map.cpp
- src/shared/Serialization.cpp