Pre-booked seats.
[koperkapel.git] / koperkapel / world.py
index f03bffa1a88e7945e429dc9319c7228096e1dc54..2272a7a3f01c1df2a695552e109fc6123c1c2888 100644 (file)
@@ -25,9 +25,17 @@ class World:
             self._build_roach("roichard", fast=True),
             self._build_roach("roupert"),
         ]
+        state["serums"] = [
+            "smart", "strong", "fast",
+        ]
         state["vehicles"] = {
             "current": "walking",
-            "available": ["walking"],
+            "walking": {
+                "seating": [
+                    "roachel", None, "roeginald",
+                    None, None, None,
+                ]
+            }
         }
         state["level"] = {
             "name": "level1",
@@ -125,3 +133,9 @@ class WorldListProxy(WorldBaseProxy):
 
     def __getitem__(self, index):
         return _maybe_subproxy(self, index, self._state[index])
+
+    def __len__(self):
+        return len(self._state)
+
+    def __bool__(self):
+        return bool(self._state)