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() {
assert(ready_for_action);
// Execute the action
agent->action();
agent->executeAction();
// Advance the environment by one step
do {
......@@ -136,8 +136,7 @@ status_t HFOEnvironment::step() {
} while (agent->statusUpdateTime() <= current_cycle || !ready_for_action);
// Update the state features
agent->ProcessTeammateMessages();
agent->UpdateFeatures();
agent->preAction();
assert(agent->currentTime().cycle() == (current_cycle + 1));
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