projects
/
tabakrolletjie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add total power and damage.
[tabakrolletjie.git]
/
tabakrolletjie
/
rays.py
diff --git
a/tabakrolletjie/rays.py
b/tabakrolletjie/rays.py
index 7c8b5beab712c0fe756afbb7645afc92fc3b563c..b4142a3e6694f8ecaeb4f67264a4bb270ca7a025 100644
(file)
--- a/
tabakrolletjie/rays.py
+++ b/
tabakrolletjie/rays.py
@@
-156,6
+156,12
@@
class RayPolyManager(object):
self._end = self._direction.rotated(-spread)
self._poly_cache = None
self._end = self._direction.rotated(-spread)
self._poly_cache = None
+ @property
+ def spread(self):
+ if not self._direction:
+ return 2 * math.pi
+ return math.fabs(self._start.get_angle_between(self._end))
+
def _set_angle_limits(self, direction, spread):
if direction is None or spread is None:
self._direction = None
def _set_angle_limits(self, direction, spread):
if direction is None or spread is None:
self._direction = None