Commit f58fd4b7 authored by Matthew Hausknecht's avatar Matthew Hausknecht

More refactoring of agent-environment interface.

parent ab0990d6
...@@ -124,7 +124,7 @@ status_t HFOEnvironment::step() { ...@@ -124,7 +124,7 @@ status_t HFOEnvironment::step() {
assert(ready_for_action); assert(ready_for_action);
// Execute the action // Execute the action
agent->action(); agent->executeAction();
// Advance the environment by one step // Advance the environment by one step
do { do {
...@@ -136,8 +136,7 @@ status_t HFOEnvironment::step() { ...@@ -136,8 +136,7 @@ status_t HFOEnvironment::step() {
} while (agent->statusUpdateTime() <= current_cycle || !ready_for_action); } while (agent->statusUpdateTime() <= current_cycle || !ready_for_action);
// Update the state features // Update the state features
agent->ProcessTeammateMessages(); agent->preAction();
agent->UpdateFeatures();
assert(agent->currentTime().cycle() == (current_cycle + 1)); assert(agent->currentTime().cycle() == (current_cycle + 1));
current_cycle = agent->currentTime().cycle(); current_cycle = agent->currentTime().cycle();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment