Add some new fields to the unit (from the last API update)
@@ -65,6 +65,14 @@ class Unit(object):
def radius(self):
return self._proto.radius
+ @property
+ def detect_range(self):
+ return self._proto.detect_range
+
+ @property
+ def radar_range(self):
+ return self._proto.radar_range
+
@property
def build_progress(self):
return self._proto.build_progress
@@ -82,6 +90,10 @@ class Unit(object):
"""Detected by sensor tower."""
return self._proto.is_blip
+ @property
+ def is_powered(self):
+ return self._proto.is_powered
+
@property
def is_burrowed(self):
return self._proto.is_burrowed
@@ -114,6 +126,10 @@ class Unit(object):
def shield(self):
return self._proto.shield
+ @property
+ def shield_max(self):
+ return self._proto.shield_max
+
@property
def energy(self):
return self._proto.energy
@@ -122,6 +138,10 @@ class Unit(object):
def mineral_contents(self):
return self._proto.mineral_contents
+ @property
+ def vespene_contents(self):
+ return self._proto.vespene_contents
+
@property
def is_selected(self):
return self._proto.is_selected
