This commit is contained in:
alstergym
2026-09-04 08:35:40 +02:00
commit 232d6e4350
9 changed files with 337 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
```mermaid
classDiagram
Item
Item : count: int
Item : type: int
Item : inc(self, amount)
Kart
Kart : int speed_max
Kart : Vector2 vel
Kart : Vector2 pos
Kart : string color
Kart : ram(self, Kart other)
Kart : consume_item(self, Item item)
```
Die Methode `inc(amount)` in `Item` ändert `.count` um `amount`.
Die Methode `ram(other)` in `Kart` tauscht die beiden Geschwindigkeiten.