| 315 | } |
| 316 | |
| 317 | FeatureExtractor* 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 | |
| 338 | hfo_status_t Agent::getGameStatus() { |
| 339 | hfo_status_t game_status = IN_GAME; |
nothing calls this directly
no outgoing calls
no test coverage detected