![]() |
BamBirds 2021
|


Public Member Functions | |
| Meta (LevelSelection levelSelector) | |
| Strategy | getStrategy (Level level, int currentShot) throws IllegalArgumentException |
| void | startMeta () throws InterruptedException, ServerException |
| void | shutdown () |
| boolean | sceneInitialisationFailed (BufferedImage img, SceneInitialisationException e) throws ServerException |
| void | shotSelected (Shot proposedShot, Plan plan, boolean demoShot) |
| void | shotDelivered (Shot shot) throws ServerException |
| void | shotDeliveredSceneStable (BufferedImage img, boolean moving, boolean noBirds, boolean noPigs) throws ServerException |
Public Attributes | |
| Plan | lastPlan = null |
| String | lastShotDescriptor = "" |
| boolean | isPlaying = true |
Static Public Attributes | |
| static boolean | EVALUATE_SHOTS = true |
Private Member Functions | |
| void | selectNextLevel () throws ServerException |
| void | selectNextLevel (Level level) throws ServerException |
| boolean | shouldStartNextLevel () |
| void | evaluatePreviousShot (BufferedImage img) throws ServerException |
| boolean | waitForLevelEnd () throws ServerException |
Private Attributes | |
| LevelSelection | levelSelector |
| GameStateExtractor | extractor |
| ShotExecutor | shotExecutor = null |
| boolean | levelInitialized = false |
| Level | currentLevel = null |
| int | previousScore = 0 |
| int | lastPigCount = 0 |
| Shot | lastShot = null |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger(Meta.class) |
|
private |
Calculate score difference to previous screen
| img | Reusing screenshot from other analysis |
| Strategy de.uniba.sme.bambirds.Meta.getStrategy | ( | Level | level, |
| int | currentShot | ||
| ) | throws IllegalArgumentException |
Callback method for prolog file generation
| level |
| IllegalArgumentException |
Implements de.uniba.sme.bambirds.execution.ShotExecutor.StrategyCallback.
| boolean de.uniba.sme.bambirds.Meta.sceneInitialisationFailed | ( | BufferedImage | img, |
| SceneInitialisationException | e | ||
| ) | throws ServerException |
| ServerException |
Implements de.uniba.sme.bambirds.execution.ShotExecutor.ShotExecutorCallback.
|
private |
Tell server to load a different level and update current level object
| void de.uniba.sme.bambirds.Meta.shotDelivered | ( | Shot | shot | ) | throws ServerException |
Evaluated predicted parabola with actual and update decision tree
| ServerException |
Implements de.uniba.sme.bambirds.execution.ShotExecutor.ShotExecutorCallback.
| void de.uniba.sme.bambirds.Meta.shotDeliveredSceneStable | ( | BufferedImage | img, |
| boolean | moving, | ||
| boolean | noBirds, | ||
| boolean | noPigs | ||
| ) | throws ServerException |
Will be called after everything has come to a still (max 16s)
| moving | Hard limit exceeded |
| ServerException |
Implements de.uniba.sme.bambirds.execution.ShotExecutor.ShotExecutorCallback.
Just before execution
Implements de.uniba.sme.bambirds.execution.ShotExecutor.ShotExecutorCallback.
|
private |
|
private |
| ServerException |