MCPcopy Create free account
hub / github.com/LARG/HFO / getFeatureExtractor

Method getFeatureExtractor

src/agent.cpp:317–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317FeatureExtractor* Agent::getFeatureExtractor(feature_set_t feature_set_indx) {
318 if (feature_extractor != NULL) {
319 delete feature_extractor;
320 }
321
322 switch (feature_set_indx) {
323 case LOW_LEVEL_FEATURE_SET:
324 return new LowLevelFeatureExtractor(num_teammates, num_opponents,
325 playing_offense);
326 break;
327 case HIGH_LEVEL_FEATURE_SET:
328 return new HighLevelFeatureExtractor(num_teammates, num_opponents,
329 playing_offense);
330 break;
331 default:
332 std::cerr << "[Feature Extractor] ERROR Unrecognized Feature set index: "
333 << feature_set_indx << std::endl;
334 exit(1);
335 }
336}
337
338hfo_status_t Agent::getGameStatus() {
339 hfo_status_t game_status = IN_GAME;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected