Method AttackAgent
AttackAgent(RideID, RideID)
The IAgent agent will attack another agent using it's default weapon
Declaration
public IAttackResult AttackAgent(RideID attacker, RideID target)
Parameters
Type | Name | Description |
---|---|---|
RideID | attacker | the Agent which will perform the attack |
RideID | target | the agent that will be attacked |
Returns
Type | Description |
---|---|
IAttackResult | The results of an attack |
Implements
AttackAgent(IAttack, RideID, RideID)
The IAgent agent will attack another agent using it's default weapon
Declaration
public IAttackResult AttackAgent(IAttack attack, RideID attacker, RideID target)
Parameters
Type | Name | Description |
---|---|---|
IAttack | attack | parameters associated with the attack |
RideID | attacker | the Agent which will perform the attack |
RideID | target | the agent that will be attacked |
Returns
Type | Description |
---|---|
IAttackResult | The results of an attack |
Implements
AttackAgent(IAttack, RideID, RideID, IAttackResultCalculator)
Declaration
public IAttackResult AttackAgent(IAttack attack, RideID attacker, RideID target, IAttackResultCalculator attackCalc)
Parameters
Type | Name | Description |
---|---|---|
IAttack | attack | |
RideID | attacker | |
RideID | target | |
IAttackResultCalculator | attackCalc |
Returns
Type | Description |
---|---|
IAttackResult |
Implements
AttackAgent(RideID, RideID, RideID)
The IAgent agent will attack another agent if that agent is in range of the weapon
Declaration
public IAttackResult AttackAgent(RideID attacker, RideID weapon, RideID target)
Parameters
Type | Name | Description |
---|---|---|
RideID | attacker | the Agent which will perform the attack |
RideID | weapon | the weapon the agent will use to attack |
RideID | target | the agent that will be attacked |
Returns
Type | Description |
---|---|
IAttackResult | The results of an attack |
Implements
AttackAgent(IAttack, RideID, RideID, RideID)
Declaration
public IAttackResult AttackAgent(IAttack attack, RideID attacker, RideID weapon, RideID target)
Parameters
Type | Name | Description |
---|---|---|
IAttack | attack | |
RideID | attacker | |
RideID | weapon | |
RideID | target |
Returns
Type | Description |
---|---|
IAttackResult |
Implements
AttackAgent(IAttack, RideID, RideID, RideID, IAttackResultCalculator)
The concrete MonoBehaviour implementation of an IAgent attacking a specific position on the terrain whether or not an enemy is there or not
Declaration
public IAttackResult AttackAgent(IAttack attack, RideID attacker, RideID weapon, RideID attackee, IAttackResultCalculator attackCalc)
Parameters
Type | Name | Description |
---|---|---|
IAttack | attack | The IAttack data for the attack such as the position to attack |
RideID | attacker | the IAgent which will perform the attack |
RideID | weapon | the IWeapon the agent will use to attack the position |
RideID | attackee | |
IAttackResultCalculator | attackCalc |
Returns
Type | Description |
---|---|
IAttackResult | The results of an attack |