| 63 | TileMap::~TileMap() = default; |
| 64 | |
| 65 | void TileMap::addObjectToMap(sp<Projectile> projectile) |
| 66 | { |
| 67 | if (projectile->tileObject) |
| 68 | { |
| 69 | LogError("Projectile already has tile object"); |
| 70 | } |
| 71 | // FIXME: mksp<> doesn't work for private (but accessible due to friend) |
| 72 | // constructors? |
| 73 | sp<TileObjectProjectile> obj(new TileObjectProjectile(*this, projectile)); |
| 74 | obj->setPosition(projectile->getPosition()); |
| 75 | projectile->tileObject = obj; |
| 76 | } |
| 77 | |
| 78 | void TileMap::addObjectToMap(GameState &state, sp<Vehicle> vehicle) |
| 79 | { |
no test coverage detected