Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::vector<std::shared_ptr<Hex>> Hex_map::get_neighbours(Coord hex) // podstawowa
- {
- - // TODO napisz to
- - std::vector<std::shared_ptr<Hex> neigbours = {};
- + std::vector<std::shared_ptr<Hex>> neigbours = {};
- + for(auto dir : direction_movement)
- + {
- + if(hex_exists(hex + dir))
- + {
- + neigbours.push_back( get_hex_ptr(hex + dir) );
- + }
- + }
- return neigbours;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement