SetPlayer
Changes the settlement's owner. When the player differs from the current one, the stored gold moves to the new owner's statistics and every building of the settlement gets the new owner.
An object joining a settlement keeps its owner; only this change of the settlement's owner re-owns its buildings. The loop over the buildings was not checked instruction by instruction.
Signature
void Settlement::SetPlayer(int)Parameters and return
Receiver: Settlement · Return: void
| Position | Type |
|---|---|
| 1 | int |
Other overloads
No other overloads with this name in the published catalog.