Skip to content

Commit 549bc14

Browse files
committed
add indicator lines in python
1 parent 6f1c334 commit 549bc14

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

engine/src/crossplay_python/battlecode26/wrappers.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,15 @@ def sense_robot_at_location(loc: MapLocation) -> RobotInfo:
344344
@staticmethod
345345
def set_indicator_dot(loc: MapLocation, r: int, g: int, b: int) -> None:
346346
_wait(_m.RC_SET_INDICATOR_DOT, [loc, r, g, b])
347-
347+
348348
@staticmethod
349349
def set_indicator_string(text: str) -> None:
350350
_wait(_m.RC_SET_INDICATOR_STRING, [text])
351-
351+
352+
@staticmethod
353+
def set_indicator_line(startLoc: MapLocation, endLoc: MapLocation, r: int, g: int, b: int) -> None:
354+
_wait(_m.RC_SET_INDICATOR_LINE, [startLoc, endLoc, r, g, b])
355+
352356
@staticmethod
353357
def set_timeline_marker(text: str, r: int, g: int, b: int) -> None:
354358
_wait(_m.RC_SET_TIMELINE_MARKER, [text, r, g, b])

engine/src/crossplay_python/python_docs.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ class RobotController:
300300
def set_indicator_string(text: str) -> None:
301301
pass
302302

303+
def set_indicator_line(startLoc: MapLocation, endLoc: MapLocation, r: int, g: int, b: int) -> None:
304+
pass
305+
303306
def set_timeline_marker(text: str, r: int, g: int, b: int) -> None:
304307
pass
305308

0 commit comments

Comments
 (0)