SimplifiedAttack
python
class SimplifiedAttack(BaseModel):
attackID: str
attackerID: PlayerID
targetID: Optional[PlayerID]
troops: float
borderSize: intjava
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
| Attribute | Type | Description |
|---|---|---|
attackID | AttackID | Unique identifier for the attack. |
attackerID | PlayerID | The ID of the player initiating the attack. |
targetID | PlayerID or None/null | The ID of the targeted player, or None/null if the attack is targeting empty territory. |
troops | float | The number of troops involved in the attack. |
borderSize | int | The size of the border between the attacker and the target (the unit is tiles). |
