mirror of
				https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
				synced 2025-06-27 11:58:51 +02:00 
			
		
		
		
	docs(uml): add class diagram (#7)
This commit is contained in:
		
							
								
								
									
										50
									
								
								uml/class-diagram.puml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								uml/class-diagram.puml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,50 @@ | ||||
| @startuml Geometry Dash - Diagramme de classe | ||||
|  | ||||
| skinparam style strictuml | ||||
| skinparam classAttributeIconSize 0 | ||||
| skinparam classFontStyle Bold | ||||
| hide enum methods | ||||
|  | ||||
| class Position { | ||||
|   {field} + column: Integer | ||||
|   {field} + row: Integer | ||||
|  | ||||
|   {method} + Position(column: Integer, row: Integer) | ||||
|   {method} + equals(position: Position) | ||||
| } | ||||
|  | ||||
| class Level { | ||||
|   {field} + songPath: String | ||||
|   {field} + backgroundPath: String | ||||
|   {field} + speed: Double | ||||
|  | ||||
|   {method} + Level() | ||||
| } | ||||
| Level *--> "*\n- grid" GameObject : <<Is made up of>> | ||||
|  | ||||
| abstract class GameObject { | ||||
|   {method} + getImagePath(): String {abstract} | ||||
|   {method} + safeSides(): List<PositionSide> {abstract} | ||||
| } | ||||
| GameObject o--> "1\n- " Position : <<Has>> | ||||
| GameObject ..> PositionSide : <<Uses>> | ||||
|  | ||||
| class Spike extends GameObject {} | ||||
|  | ||||
| class Game { | ||||
|   {field} - score: Integer | ||||
|  | ||||
|   {method} + start(): void | ||||
|   {method} + restart(): void | ||||
|   {method} + end(): void | ||||
| } | ||||
| Game o--> "1\n- currentLevel" Level : <<Has>> | ||||
|  | ||||
| enum PositionSide <<enumeration>> { | ||||
|   TOP | ||||
|   RIGHT | ||||
|   BOTTOM | ||||
|   LEFT | ||||
| } | ||||
|  | ||||
| @enduml | ||||
		Reference in New Issue
	
	Block a user