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