Update Osztály diagram: Data update authored by Bahil Botond's avatar Bahil Botond
...@@ -4,6 +4,7 @@ Az alábbi diagrammok értelmezéséhez az [Architecture](Architecture) dokument ...@@ -4,6 +4,7 @@ Az alábbi diagrammok értelmezéséhez az [Architecture](Architecture) dokument
```plantuml ```plantuml
package Logic.Data{ package Logic.Data{
package Logic.Data.World{ package Logic.Data.World{
...@@ -22,6 +23,7 @@ package Logic.Data.World{ ...@@ -22,6 +23,7 @@ package Logic.Data.World{
class GameWorld{ class GameWorld{
- _grid: TileObject[,] - _grid: TileObject[,]
+ TileObjects(): IReadOnlyCollection<TileObject>
+ Units(): IReadOnlyCollection<Unit> + Units(): IReadOnlyCollection<Unit>
+ Width(): int{get} + Width(): int{get}
+ Height(): int{get} + Height(): int{get}
...@@ -80,8 +82,17 @@ package Logic.Data.World{ ...@@ -80,8 +82,17 @@ package Logic.Data.World{
+ Cost(): int{get} + Cost(): int{get}
+ NextCheckpoint(): TilePosition + NextCheckpoint(): TilePosition
+ Move(float): void + Move(float): void
+ Position(): Vector2{get}
}
Class Vector2{
+ X(): float{get}
+ Y(): float{get}
} }
Unit o-- TilePosition Unit o-- TilePosition
Unit o-- Vector2
interface IUnitTypeData{ interface IUnitTypeData{
+ Name(): String{get} + Name(): String{get}
...@@ -138,6 +149,8 @@ GamePhase <-- GameOverview ...@@ -138,6 +149,8 @@ GamePhase <-- GameOverview
Color <-- GameOverview Color <-- GameOverview
} }
``` ```
# `Presentation.World` komponens (játéktér megjelenés) # `Presentation.World` komponens (játéktér megjelenés)
... ...
......