public class AgentPositionCalculator extends Object
| Modifier and Type | Field and Description |
|---|---|
private AgentModel |
agent |
| Constructor and Description |
|---|
AgentPositionCalculator(AgentModel agent)
Sets current AgentModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
updatePosition(ParsedData data)
Updates agent's position in current AgentModel from
last received data from server by calculation using fixed
objects(flags) and agents rotation and position.
|
private final AgentModel agent
public AgentPositionCalculator(AgentModel agent)
agent - public void updatePosition(ParsedData data)
data -