Refactor seating a bit.
[koperkapel.git] / koperkapel / vehicles / walking.py
index adcdfc931f87b276e7d3be3e79ad54069076ad52..91cf02df66372b8f33c22771fd43a7dfd4ad6006 100644 (file)
@@ -7,13 +7,14 @@ from .base import Vehicle, Seat
 
 class Walking(Vehicle):
 
-    def __init__(self):
-        self.background = Actor("vehicles/walking/background")
+    vehicle_type = "walking"
+
+    def init_seats(self):
         n_seats = 6
         d_theta = 2 * math.pi / n_seats
-        self.seats = [
+        return [
             Seat(
-                actor=Actor("vehicles/walking/seat"),
+                vehicle=self,
                 pos=(math.sin(i * d_theta), math.cos(i * d_theta)))
             for i in range(n_seats)
         ]