Update Osztály diagram: model properties added, UI naming convention fixed authored by Bahil Botond's avatar Bahil Botond
......@@ -5,22 +5,23 @@
package Model.Field{
interface ITowerTypeData{
+ Name: String
+ Damage: float
+ Range: float
+ CooldownTime: float
+ Name(): String{get}
+ Damage(): float{get}
+ Range(): float{get}
+ CooldownTime(): float{get}
}
class TilePosition{
WidthPosition: int
HeightPosition: int
X(): int{get}
Y(): int{get}
}
class Field{
+ Width: int
+ Height: int
+ Grid: TileObject[,]
- _grid: TileObject[,]
+ Width(): int{get}
+ Height(): int{get}
+ Grid(int, int): TileObject{get}
}
abstract TileObject{
......@@ -28,7 +29,7 @@ package Model.Field{
}
abstract Building{
+ Owner: GameTeam
+ Owner(): GameTeam{get}
}
class Obstacle{
......@@ -36,10 +37,10 @@ package Model.Field{
}
class Tower{
+ BuildingCost: int
+ UpgradeCost: int
+ Target: Unit
+ Level: int
+ BuildingCost(): int{get}
+ UpgradeCost(): int{get}
+ Target(): Unit{get}
+ Level(): int{get}
}
class Barrack{
......@@ -47,7 +48,7 @@ package Model.Field{
}
class Castle{
+ Health: float
+ Health(): float{get}
}
......@@ -64,16 +65,16 @@ package Model.Field{
package Model.Unit{
abstract Unit{
+ Owner: GameTeam
+ Cost: int
+ Destination: TileObject?
+ Owner(): GameTeam{get}
+ Cost(): int{get}
+ Destination(): TileObject?{get}
}
interface IUnitTypeData{
+ Name: String
+ Health: float
+ Damage: float
+ Speed: float
+ Name(): String{get}
+ Health(): float{get}
+ Damage(): float{get}
+ Speed(): float{get}
}
Unit "1" o-- IUnitTypeData
......@@ -92,6 +93,7 @@ enum GameTeam{
BLUE
}
```
# Nézet, UI nélkül (azaz VFX, SFX)
......@@ -111,15 +113,15 @@ package Presentation.UI {
}
class IngameUI {
- GameState: GameState
- ActivePlayer: ActivePlayer
- _gameState: GameState
- _activePlayer: ActivePlayer
Start(): void
OnStateUpdated(): void
OnDestroy(): void
}
class TowerPlacingUI {
- ActivePlayer: ActivePlayer
- _activePlayer: ActivePlayer
Start(): void
Show(): void
Hide(): void
......@@ -136,7 +138,7 @@ package Presentation.UI {
}
class UnitDeployingUI {
- ActivePlayer: ActivePlayer
- _activePlayer: ActivePlayer
Start(): void
Show(): void
Hide(): void
......
......