BamBirds 2021
|
Public Member Functions | |
Scene (BufferedImage img) throws SceneInitialisationException | |
Scene (BufferedImage img, double scalingFactor) throws SceneInitialisationException | |
Scene (BufferedImage img, Slingshot sling) throws SceneInitialisationException | |
Scene (BufferedImage img, Slingshot sling, double scalingFactor) throws SceneInitialisationException | |
Public Member Functions inherited from de.uniba.sme.bambirds.common.objects.AbstractScene | |
AbstractScene (BufferedImage image) | |
Slingshot | getSlingshot () |
void | setSlingshot (Slingshot slingshot) |
List< ABObject > | getBirds () |
List< ABObject > | getPigs () |
List< ABObject > | getHills () |
List< ABObject > | getBlocks () |
List< ABObject > | getTnts () |
List< ABObject > | getAllObjects () |
int | getGroundPlane () |
List< ABObject > | sortedTargetsList () |
int | estimateMaximalPointsWithoutBirds () |
ABObject | findObjectWithID (String id) |
String | sceneDescription () |
ABType | getBirdTypeOnSling () |
String | toString () |
BufferedImage | getImage () |
String | toJSON () |
int | getObjectCount () |
boolean | compareTo (AbstractScene scene) |
Static Private Attributes | |
static final Logger | log = LogManager.getLogger(Scene.class) |
Additional Inherited Members | |
Public Attributes inherited from de.uniba.sme.bambirds.common.objects.AbstractScene | |
double | scalingFactor = 1.005 |
Protected Member Functions inherited from de.uniba.sme.bambirds.common.objects.AbstractScene | |
void | generateIds () |
void | generateIDsPerList (List< ABObject > list) |
List< ABObject > | mergeAllObjectsInOneList () |
double | estimateScreenScale () |
long | getNumberOfSpecBlocks (ABType typeOfBlock) |
Protected Attributes inherited from de.uniba.sme.bambirds.common.objects.AbstractScene | |
Slingshot | slingshot |
List< ABObject > | pigs |
List< ABObject > | birds |
List< ABObject > | hills |
List< ABObject > | blocks |
List< ABObject > | tnts |
List< ABObject > | _allObjects |
int | groundPlaneY = -1 |
BufferedImage | image |
The
class is basically a simple wrapper around the Vision class. It provides a few simple methods to suit the needs of the BamBird agent and hides the many
methods we don't care about.
When you instantiate a
object, make sure you catch the
it may throw if the given
does not contain some critical objects.
de.uniba.sme.bambirds.vision.Scene.Scene | ( | BufferedImage | img | ) | throws SceneInitialisationException |
Stores all objects in
that are recognized by the
methods of the Vision class.
img | A screenshot from ActionRobot#doScreenShot |
SceneInitialisationException | if Vision
img
|
de.uniba.sme.bambirds.vision.Scene.Scene | ( | BufferedImage | img, |
double | scalingFactor | ||
) | throws SceneInitialisationException |
Stores all objects in
that are recognized by the
methods of the Vision class.
img | A screenshot from ActionRobot#doScreenShot |
scalingFactor | If 0
|
SceneInitialisationException | if Vision
img
|
de.uniba.sme.bambirds.vision.Scene.Scene | ( | BufferedImage | img, |
Slingshot | sling | ||
) | throws SceneInitialisationException |
Stores all objects in
that are recognized by the
methods of the Vision class.
img | A screenshot from ActionRobot#doScreenShot |
sling | If null
Vision
|
SceneInitialisationException | if Vision
img
|
de.uniba.sme.bambirds.vision.Scene.Scene | ( | BufferedImage | img, |
Slingshot | sling, | ||
double | scalingFactor | ||
) | throws SceneInitialisationException |
Stores all objects in
that are recognized by the
methods of the Vision class.
img | A screenshot from ActionRobot#doScreenShot |
sling | If null
Vision
|
scalingFactor | If 0
|
SceneInitialisationException | if Vision
img
|