Beatmup
scene.cpp File Reference
#include "../basic_types.h"
#include "../scene/scene.h"
#include "../exception.h"
#include "../color/constants.h"
#include <map>
#include <vector>
#include <cmath>

Go to the source code of this file.

Functions

std::string generateUniqueLayerName (const Scene &scene, const char *prefix="")
 

Function Documentation

◆ generateUniqueLayerName()

std::string generateUniqueLayerName ( const Scene scene,
const char *  prefix = "" 
)

Definition at line 97 of file scene.cpp.

97  {
98  int n = 1;
99  std::string candidate;
100  while (scene.getLayer((candidate = prefix + (" #" + std::to_string(n))).c_str()))
101  n++;
102  return candidate;
103 }
std::string to_string(Beatmup::NNets::ActivationFunction function)
return $pool getJavaReference & scene(index)
int n