Class diagram
This commit is contained in:
parent
5cc101db40
commit
3aa7f2febd
1 changed files with 33 additions and 0 deletions
33
frontend/README.md
Normal file
33
frontend/README.md
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
```mermaid
|
||||||
|
classDiagram
|
||||||
|
Entity <|-- Raspberry
|
||||||
|
Entity <|-- Obstacle
|
||||||
|
Entity: -Position position
|
||||||
|
Entity: -int width
|
||||||
|
Entity: -int height
|
||||||
|
Entity: -update()
|
||||||
|
Entity: -draw()
|
||||||
|
Entity: -detectCollision(Entity other)
|
||||||
|
class Raspberry{
|
||||||
|
-input()
|
||||||
|
-boost()
|
||||||
|
}
|
||||||
|
|
||||||
|
class Obstacle{
|
||||||
|
-Entity pipeTop
|
||||||
|
-Entity pipeBottom
|
||||||
|
-int distanceBetweenPipes
|
||||||
|
-int padding
|
||||||
|
-resetPosition()
|
||||||
|
}
|
||||||
|
|
||||||
|
class Position{
|
||||||
|
-int _x
|
||||||
|
-int _y
|
||||||
|
|
||||||
|
+get x()
|
||||||
|
+set x()
|
||||||
|
+get y()
|
||||||
|
+set y()
|
||||||
|
}
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue