10 Planet::Planet(int radius)
12 , tiles(new Tile[TotalArea()]) {
19 Planet::Planet(Planet &&other)
20 : radius(other.radius)
21 , tiles(other.tiles.release()) {
24 Planet &Planet::operator =(Planet &&other) {
25 radius = other.radius;
26 std::swap(tiles, other.tiles);
31 void GenerateTest(Planet &p) {
32 for (int surface = 0; surface <= 5; ++surface) {
33 for (int y = -p.Radius(); y <= p.Radius(); ++y) {
34 for (int x = -p.Radius(); x <= p.Radius(); ++x) {
35 p.TileAt(surface, x, y).type = (x == 0) + (y == 0);