| 1145 | UString Scenery::getSupportString() const { return format("%d", supportHardness); } |
| 1146 | |
| 1147 | void Scenery::setPosition(const Vec3<float> &pos) |
| 1148 | { |
| 1149 | currentPosition = pos; |
| 1150 | if (!this->tileObject) |
| 1151 | { |
| 1152 | LogError("setPosition called on scenery with no tile object"); |
| 1153 | return; |
| 1154 | } |
| 1155 | |
| 1156 | this->tileObject->setPosition(pos); |
| 1157 | } |
| 1158 | |
| 1159 | void Scenery::updateRelationWithAttacker(GameState &state, StateRef<Organisation> attackerOrg, |
| 1160 | bool killed) |