parent
b47f5c3485
commit
1526b4a16e
After Width: | Height: | Size: 65 KiB |
@ -1,78 +1 @@
|
|||||||
```plantuml
|

|
||||||
@startuml
|
|
||||||
hide circle
|
|
||||||
allowmixing
|
|
||||||
skinparam classAttributeIconSize 0
|
|
||||||
skinparam classBackgroundColor #ffffb9
|
|
||||||
skinparam classBorderColor #800000
|
|
||||||
skinparam classArrowColor #800000
|
|
||||||
skinparam classFontColor #black
|
|
||||||
skinparam classFontName Tahoma
|
|
||||||
|
|
||||||
|
|
||||||
Class Tile #67D2DC {
|
|
||||||
- string shape
|
|
||||||
- string color
|
|
||||||
- int row
|
|
||||||
- int column
|
|
||||||
public :
|
|
||||||
- Tile(string shape, string color)
|
|
||||||
- ~Tile()
|
|
||||||
- string getShape()
|
|
||||||
- string getColor()
|
|
||||||
- int getRow()
|
|
||||||
- int getColumn()
|
|
||||||
}
|
|
||||||
|
|
||||||
Class Player #5BBB4E {
|
|
||||||
- string name
|
|
||||||
- int score
|
|
||||||
- int bestScore
|
|
||||||
- bool playTurn
|
|
||||||
- Piece * main
|
|
||||||
- dictionnary<Tile, int nb>
|
|
||||||
public :
|
|
||||||
- Player(string name)
|
|
||||||
- ~Player()
|
|
||||||
- string getName()
|
|
||||||
- int getScore()
|
|
||||||
- int getBestScore()
|
|
||||||
- void play(dictionnary<Tile, int nb>)
|
|
||||||
- void swap(dictionnary<Tile, int nb>)
|
|
||||||
}
|
|
||||||
|
|
||||||
Class Gameboard #2981E9 {
|
|
||||||
- int[] rows
|
|
||||||
- int[] columns
|
|
||||||
public :
|
|
||||||
- Gameboard()
|
|
||||||
}
|
|
||||||
|
|
||||||
Class Cell #5792D8 {
|
|
||||||
- int x
|
|
||||||
- int y
|
|
||||||
public :
|
|
||||||
- Cell()
|
|
||||||
- int getX()
|
|
||||||
- int getY()
|
|
||||||
}
|
|
||||||
|
|
||||||
Class Play #DFBD62 {
|
|
||||||
- int nbPlayers
|
|
||||||
- Gameboard gameboard
|
|
||||||
- dictionnary<Tile, int nb>
|
|
||||||
public :
|
|
||||||
- Play(int nbPlayers)
|
|
||||||
- void getPlayerTurn()
|
|
||||||
}
|
|
||||||
|
|
||||||
Class Leaderboard #894EBB {
|
|
||||||
- int[] score
|
|
||||||
- string[] playerNames
|
|
||||||
}
|
|
||||||
|
|
||||||
Player --> "- Tile* main " Tile
|
|
||||||
Gameboard --> Cell
|
|
||||||
Cell --> Tile
|
|
||||||
@enduml
|
|
||||||
|
|
Loading…
Reference in new issue