diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-13 19:13:43 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-13 19:13:43 +0200 |
commit | c4f08b23bfc6832e3158e2f15fd6bfd15c04eab6 (patch) | |
tree | 21a443a9d3b8477e03678e08ac3db211f26373b4 | |
parent | 5ab49aa46b6f1a9cd5196165009d2ee08b6b7a87 (diff) |
WIP
-rw-r--r-- | People.cpp | 1 | ||||
-rw-r--r-- | Tile.h | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -17,6 +17,7 @@ People::~People() { } void People::add_artist(ArtistData data) { + if (this->artists.size() > 30e3) return; this->artists.push_back(new Artist(this->museum, data)); } @@ -13,8 +13,8 @@ public: Tile(Museum & museum, TileData data); public: - TileData data = { 0 }; - Color color = { 0 }; + TileData data; + Color color; std::unique_ptr<TileBehaviorStrategy> behavior = nullptr; unsigned int x = 0; |