Update Osztály diagram: Data update authored by Bahil Botond's avatar Bahil Botond
......@@ -3,8 +3,6 @@ Az alábbi diagrammok értelmezéséhez az [Architecture](Architecture) dokument
# `Logic.Data` komponens (modell)
```plantuml
package Logic.Data{
package Logic.Data.World{
......@@ -13,6 +11,8 @@ package Logic.Data.World{
+ Damage(): float{get}
+ Range(): float{get}
+ CooldownTime(): float{get}
+ BuildingCost(): int{get}
+ UpgradeCost(): int{get}
}
class TilePosition{
......@@ -45,8 +45,6 @@ package Logic.Data.World{
}
class Tower extends Building{
+ BuildingCost(): int{get}
+ UpgradeCost(): int{get}
+ Upgrade(): void
+ Target(): Unit{get}
+ Level(): int{get}
......@@ -59,7 +57,7 @@ package Logic.Data.World{
class Barrack extends Building{
- _checkPoints: IList<TilePosition>
+ QueuedUnits(): IReadOnlyCollection<Unit>
+ QueuedUnits(): IReadOnlyCollection<IUnitTypeData>
+ CheckPoints(): IReadOnlyCollection<TilePosition>{get}
+ QueueUnit(IUnitTypeData): void
+ PushCheckpoint(TilePosition): void
......@@ -76,10 +74,8 @@ package Logic.Data.World{
}
Class Unit{
- _checkpoints: IList<TilePosition>
+ Owner(): GameTeam{get}
+ Cost(): int{get}
+ NextCheckpoint(): TilePosition
+ Move(float): void
+ Position(): Vector2{get}
......@@ -89,6 +85,7 @@ package Logic.Data.World{
+ X(): float{get}
+ Y(): float{get}
}
Unit o-- TilePosition
Unit o-- Vector2
......@@ -99,6 +96,7 @@ package Logic.Data.World{
+ Health(): float{get}
+ Damage(): float{get}
+ Speed(): float{get}
+ Cost(): int{get}
}
Unit "1" o-- IUnitTypeData
......@@ -149,8 +147,6 @@ GamePhase <-- GameOverview
Color <-- GameOverview
}
```
# `Presentation.World` komponens (játéktér megjelenés)
......
......