|
|
@@ -290,9 +290,12 @@ class Grid(BaseClass):
|
|
|
result.reverse()
|
|
|
return result
|
|
|
|
|
|
- @classmethod
|
|
|
- def fire_dist(cls, from_, to_):
|
|
|
- return len(cls.line(from_, to_))
|
|
|
+ def fire_line(self, from_, to_):
|
|
|
+ line = self.line(from_, to_)
|
|
|
+ return line if all(self.can_see_trough(c) for c in line) else []
|
|
|
+
|
|
|
+ def fire_dist(self, from_, to_):
|
|
|
+ return len(self.fire_line(from_, to_))
|
|
|
|
|
|
|
|
|
# Create grid
|