Changes
Page history
Update Osztály diagram: Logika whitespace
authored
Feb 26, 2022
by
Bahil Botond
Hide whitespace changes
Inline
Side-by-side
Osztály-diagram.md
View page @
28d04f1e
...
...
@@ -4,88 +4,83 @@
package Model.Field{
class Field{
+ Width: int
+ Height: int
+ Grid: TileObject[,]
class Field{
+ Width: int
+ Height: int
+ Grid: TileObject[,]
}
}
abstract TileObject{
abstract TileObject{
}
}
abstract Building{
+ Owner: ?
}
class Obstacle{
}
abstract Tower{
+ Damage: int
+ Range: int
+ Fire rate: double
+ BuildingCost: int
+ UpgradeCost: int
+ Target: Unit
+ Upgraded: bool
}
class Barrack{
}
class Castle{
Health: int
}
class Tower1{}
class Tower2{}
class Tower3{}
Tower <|-- Tower1
Tower <|-- Tower2
Tower <|-- Tower3
TileObject <|-- Building
TileObject <|-- Obstacle
Building <|-- Tower
Building <|-- Castle
Building <|-- Barrack
Field o-- TileObject
+ Owner: ?
}
class Obstacle{
}
}
abstract Tower{
+ Damage: int
+ Range: int
+ Fire rate: double
+ BuildingCost: int
+ UpgradeCost: int
+ Target: Unit
+ Upgraded: bool
}
class Barrack{
}
class Castle{
+ Health: int
}
class Tower1{}
class Tower2{}
class Tower3{}
Tower <|-- Tower1
Tower <|-- Tower2
Tower <|-- Tower3
TileObject <|-- Building
TileObject <|-- Obstacle
Building <|-- Tower
Building <|-- Castle
Building <|-- Barrack
Field o-- TileObject
}
package Model.Unit{
abstract Unit{
Owner: ?
Health: int
Damage: int
Speed: int
Cost: int
Destination:
}
abstract Unit{
+
Owner: ?
+
Health: int
+
Damage: int
+
Speed: int
+
Cost: int
+
Destination:
}
class CircleUnit{}
class TriangleUnit{}
class CircleUnit{}
class TriangleUnit{}
Unit <|-- CircleUnit
Unit <|-- TriangleUnit
Unit <|-- CircleUnit
Unit <|-- TriangleUnit
}
enum Phase{
BUILD
TRAIN
FIGHT
PREPARE
FIGHT
}
```
# Nézet, UI nélkül (azaz VFX, SFX)
...
...
...
...