Skip to content

SimplifiedAttack

python
class SimplifiedAttack(BaseModel):
    attackID: str
    attackerID: PlayerID
    targetID: Optional[PlayerID]
    troops: float
    borderSize: int
java
public class SimplifiedAttack {
    @NotNull public AttackID attackID;
    @NotNull public PlayerID attackerID;
    @Nullable public PlayerID targetID;
    public double troops;
    public int borderSize;
}

Encapsulates information about an ongoing attack.

Attributes

AttributeTypeDescription
attackIDAttackIDUnique identifier for the attack.
attackerIDPlayerIDThe ID of the player initiating the attack.
targetIDPlayerID or None/nullThe ID of the targeted player, or None/null if the attack is targeting empty territory.
troopsfloatThe number of troops involved in the attack.
borderSizeintThe size of the border between the attacker and the target (the unit is tiles).