.
This commit is contained in:
@@ -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.
|
||||
@@ -0,0 +1,11 @@
|
||||
classDiagram
|
||||
Item
|
||||
Item : int count
|
||||
Item : int type
|
||||
Item : inc(self, amount)
|
||||
|
||||
Kart
|
||||
Kart : int speed_max
|
||||
Kart : string color
|
||||
Kart : ram(self, Kart other)
|
||||
Kart : consume_item(self, Item item)
|
||||
Reference in New Issue
Block a user