BamBirds 2021
de.uniba.sme.bambirds.vision.Vision Class Reference
Collaboration diagram for de.uniba.sme.bambirds.vision.Vision:

Public Member Functions

 Vision (BufferedImage image)
 
List< ABObjectfindBirdsMBR ()
 
List< ABObjectfindBlocksMBR ()
 
List< ABObjectfindTNTs ()
 
Rectangle findSlingshotRealShape ()
 
List< ABObjectfindPigsMBR ()
 
List< ABObjectfindPigsRealShape ()
 
List< ABObjectfindBirdsRealShape ()
 
List< ABObjectfindHills ()
 
Rectangle findSlingshotMBR ()
 
List< Point > findTrajPoints ()
 
List< ABObjectfindBlocksRealShape ()
 
VisionMBR getMBRVision ()
 
int findGroundPlane (int slingPivotY)
 

Private Member Functions

void maskUI ()
 

Private Attributes

BufferedImage image
 
VisionMBR visionMBR = null
 
VisionRealShape visionRealShape = null
 

Member Function Documentation

◆ findBlocksMBR()

List< ABObject > de.uniba.sme.bambirds.vision.Vision.findBlocksMBR ( )
Returns
a list of MBRs of the blocks in the screenshot. Blocks: Stone, Wood, Ice

◆ findBlocksRealShape()

List< ABObject > de.uniba.sme.bambirds.vision.Vision.findBlocksRealShape ( )
Returns
a list of real shapes (represented by Body.java) of the blocks in the screenshot. Blocks: Stone, Wood, Ice

◆ maskUI()

void de.uniba.sme.bambirds.vision.Vision.maskUI ( )
private

Clear out interfering game menu elements


The documentation for this class was generated from the following file: