| 2647 | } |
| 2648 | |
| 2649 | std::string GameMap::nextUniqueNameTrap(TrapType type) |
| 2650 | { |
| 2651 | std::string ret; |
| 2652 | do |
| 2653 | { |
| 2654 | ++mUniqueNumberTrap; |
| 2655 | ret = TrapManager::getTrapNameFromTrapType(type) + "_" + Helper::toString(mUniqueNumberTrap); |
| 2656 | } while(getTrapByName(ret) != nullptr); |
| 2657 | return ret; |
| 2658 | } |
| 2659 | |
| 2660 | std::string GameMap::nextUniqueNameMapLight() |
| 2661 | { |
no test coverage detected