Skip to content

Commit 7128474

Browse files
committed
Add docstring
1 parent 226d3d4 commit 7128474

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/app/src/main/java/com/steve1316/uma_android_automation/utils/CustomImageUtils.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,11 @@ class CustomImageUtils(context: Context, private val game: Game) : ImageUtils(co
15771577
)
15781578
}
15791579

1580+
/**
1581+
* Gets the filled percentage of the energy bar.
1582+
*
1583+
* @return If energy bar is detected, returns the filled percentage, else returns null.
1584+
*/
15801585
fun analyzeEnergyBar(): Int? {
15811586
val (sourceBitmap, templateBitmap) = getBitmaps("energy")
15821587
if (templateBitmap == null) {

0 commit comments

Comments
 (0)