MCPcopy Create free account
hub / github.com/WarFrontIO/client / attackPlayer

Method attackPlayer

src/game/attack/AttackActionHandler.ts:48–63  ·  view source on GitHub ↗

* Schedule an attack on a player. * @param player The player that is attacking. * @param target The player that is being attacked. * @param troops The amount of troops that are attacking. * @param borderTiles The tiles from which the attack is executed, or null to use the player's border til

(player: Player, target: Player, troops: number, borderTiles: Set<number> | null = null)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

updateWaypointMethod · 0.80
actuallyHandleAttackFunction · 0.80

Calls 6

getAttackMethod · 0.95
removeAttackMethod · 0.95
addAttackMethod · 0.95
modifyTroopsMethod · 0.80
opposeMethod · 0.80
getTroopsMethod · 0.45

Tested by

no test coverage detected