My Project
CMap.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4 ** File description:
5 ** CMap
6 */
7 
8 #ifndef CMAP_HPP_
9  #define CMAP_HPP_
10 
11  #include <string>
12  #include <vector>
13  #include <unordered_map>
14 
18 namespace component {
22  struct cmap_t {
23  std::vector<std::vector<std::string>> map;
24  std::unordered_map<std::size_t, std::size_t> index;
25  std::unordered_map<std::size_t, std::size_t> mapIndex;
26  std::unordered_map<std::size_t, bool> end;
27  };
28 }
29 
30 #endif /* !CMAP_HPP_ */
component::cmap_t::end
std::unordered_map< std::size_t, bool > end
is this the end of the map
Definition: CMap.hpp:26
component
Namespace for all components.
Definition: CDamage.hpp:14
component::cmap_t::mapIndex
std::unordered_map< std::size_t, std::size_t > mapIndex
Current index of each lobby if map.
Definition: CMap.hpp:25
component::cmap_t
A structure representing the direction component that holds the direction of an entity.
Definition: CMap.hpp:22
component::cmap_t::map
std::vector< std::vector< std::string > > map
Map of enemy.
Definition: CMap.hpp:23
component::cmap_t::index
std::unordered_map< std::size_t, std::size_t > index
Current index of each lobby in map.
Definition: CMap.hpp:24