BrokeAllianceUpdate
python
class BrokeAllianceUpdate(BaseModel):
type: Literal[GameUpdateType.BrokeAlliance]
traitorID: PlayerSmallID
betrayedID: PlayerSmallIDjava
public class BrokeAllianceUpdate {
public int type;
@NotNull public PlayerSmallID traitorID;
@NotNull public PlayerSmallID betrayedID;
}Encapsulates event data for when a player breaks an alliance with another player.
The "parent" type is RelevantGameUpdate, which includes all game update types that are relevant to the bot's decision-making process in the ConquerHack event.
You can check whether your bot should worry about this event by looking at the betrayedID attribute to see if it is your bot. Or you can use the update_is_for_me utility function.
Attributes
| Attribute | Type | Description |
|---|---|---|
type | GameUpdateType.BrokeAlliance | The type of game update, which is always BrokeAlliance for this class. |
traitorID | PlayerSmallID | The small ID of the player who broke the alliance (i.e. the "traitor"). |
betrayedID | PlayerSmallID | The small ID of the player whose alliance was broken (i.e. the "betrayed"). |
