Update Osztály diagram: configs authored by Sárközi Gergely János's avatar Sárközi Gergely János
...@@ -51,6 +51,15 @@ package Logic.Data.World{ ...@@ -51,6 +51,15 @@ package Logic.Data.World{
+ DestroyUnit(Unit): void + DestroyUnit(Unit): void
} }
interface IGameWorldConfig {
+ Width(): int {get}
+ Height(): int {get}
+ BarrackSpawnCooldownTime(): float {get}
+ CastleStartingHealth(): float {get}
+ MaxBuildingDistance(): int {get}
}
GameWorld o-- IGameWorldConfig
class WorldNavigation{ class WorldNavigation{
- _grid: TileObject[,] - _grid: TileObject[,]
+ IsPositionReachable(from: Vector2, to: Vector2): bool + IsPositionReachable(from: Vector2, to: Vector2): bool
...@@ -197,6 +206,19 @@ IGameOverview <|-- GameOverview ...@@ -197,6 +206,19 @@ IGameOverview <|-- GameOverview
IGameOverview o-- GameTeam IGameOverview o-- GameTeam
IGameOverview o-- GameWorld IGameOverview o-- GameWorld
interface IGameOverviewConfig {
+ FightingPhaseDuration(): float {get}
}
IGameOverview o-- IGameOverviewConfig
interface IGameEconomyConfig {
+ StartingBalance(): int {get}
+ RoundBasePay(): int {get}
+ NewUnitsKilledPay(): int {get}
+ TotalUnitsPurchasedPay(): int {get}
}
IGameOverview o-- IGameEconomyConfig
enum GamePhase{ enum GamePhase{
PREPARE PREPARE
FIGHT FIGHT
... ...
......