|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Targeting | |
---|---|
us.asciiroth.client.agents | |
us.asciiroth.client.core |
Uses of Targeting in us.asciiroth.client.agents |
---|
Methods in us.asciiroth.client.agents that return Targeting | |
---|---|
Targeting |
Targeting.attackPlayer(int range)
Attack the player. |
Targeting |
Targeting.dodgeBullets(int percentage)
Avoid any cell that has a direct line-of-fire between the player and the agent. |
Targeting |
Targeting.fleePlayer(int range)
Run away from the player. |
Targeting |
Targeting.keepDistance(int distance)
Set the distance (in cells) that an agent should keep from the player. |
Targeting |
Targeting.moveRandomly()
Set the agent to move randomly if a target cannot be acquired. |
Targeting |
Targeting.trackPlayer()
Track the player. |
Methods in us.asciiroth.client.agents with parameters of type Targeting | |
---|---|
static Direction |
AgentUtils.findPathInDirection(Cell agentLoc,
Agent agent,
Cell targetCell,
Direction direction,
Targeting targeting)
Given targeting information and a desired direction to move in, return a direction that is the closest the agent can get to moving in the desired direction. |
static Direction |
AgentUtils.findPathToTarget(Cell agentLoc,
Agent agent,
Targeting targeting)
Given targeting information, devise the best possible direction to move. |
static Direction |
AgentUtils.getDirectionToCellRangeLimited(Cell origin,
Cell target,
Targeting targeting)
Determine a direction toward the provided target cell from the origin cell, accounting for the range specified in the targeting parameter. |
Uses of Targeting in us.asciiroth.client.core |
---|
Methods in us.asciiroth.client.core with parameters of type Targeting | |
---|---|
void |
Game.agentMove(Cell agentLoc,
Agent agent,
Targeting targeting)
|
void |
Game.shoot(Cell agentLoc,
Agent agent,
Item ammo,
Targeting targeting)
|
|
0.7 | ||||||||
PREV NEXT | FRAMES NO FRAMES |
© 2009 Alx Dark