AllianceRequestUpdate
python
class AllianceRequestUpdate(BaseModel):
type: Literal[GameUpdateType.AllianceRequest]
requestorID: PlayerSmallID
recipientID: PlayerSmallID
createdAt: Tickjava
public class AllianceRequestUpdate {
public int type;
@NotNull public PlayerSmallID requestorID;
@NotNull public PlayerSmallID recipientID;
@NotNull public Tick createdAt;
}Encapsulates event data for when an alliance request is sent from one player to another.
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 the recipientID attribute to see if the request is intended for your bot. Or you can use the update_is_for_me utility function.
Attributes
| Attribute | Type | Description |
|---|---|---|
type | GameUpdateType.AllianceRequest | The type of game update, which is always AllianceRequest for this class. |
requestorID | PlayerSmallID | The small ID of the player who sent the alliance request. |
recipientID | PlayerSmallID | The small ID of the player who is the intended recipient of the alliance request. |
createdAt | Tick | The game tick at which the alliance request was created. |
