SimplifiedAlliance
python
class SimplifiedAlliance(BaseModel):
requestorID: PlayerID
recipientID: PlayerID
createdAt: Tick
expiresAt: Tick
def other(me: PlayerID) -> PlayerIDjava
public class SimplifiedAlliance {
@NotNull public PlayerID requestorID;
@NotNull public PlayerID recipientID;
@NotNull public Tick createdAt;
@NotNull public Tick expiresAt;
@NotNull
public PlayerID other(@NotNull PlayerID me)
}Encapsulates information about an alliance between two players in an ongoing game.
Attributes
| Attribute | Type | Description |
|---|---|---|
requestorID | PlayerID | The unique identifier of the player who initiated the alliance. |
recipientID | PlayerID | The unique identifier of the player who accepted the alliance. |
createdAt | Tick | The game tick at which the alliance was formed. |
expiresAt | Tick | The game tick at which the alliance will expire, assuming it is not renewed or broken beforehand. |
Methods
other
python
def other(me: PlayerID) -> PlayerIDHelper function for getting the ID of the other player in one of your alliances, given your own player ID.
