Skip to content

AllianceExpiredUpdate

python
class AllianceExpiredUpdate(BaseModel):
    type: Literal[GameUpdateType.AllianceExpired]
    player1ID: PlayerSmallID
    player2ID: PlayerSmallID
java
public class AllianceExpiredUpdate {
    public int type;
    @NotNull public PlayerSmallID player1ID;
    @NotNull public PlayerSmallID player2ID;
}

Encapsulates event data for when an alliance expires between two players.

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 this event is relevant to your bot by looking at the player1ID and player2ID attributes to see if either is your bot. Or you can use the update_is_for_me utility function.

Attributes

AttributeTypeDescription
typeGameUpdateType.AllianceExpiredThe type of game update, which is always AllianceExpired for this class.
player1IDPlayerSmallIDThe small ID of one of the players whose alliance has expired.
player2IDPlayerSmallIDThe small ID of the other player whose alliance has expired.