Changes
Page history
Update Osztály diagram: Data update
authored
Feb 26, 2022
by
Bahil Botond
Show whitespace changes
Inline
Side-by-side
Osztály-diagram.md
View page @
3824525e
# Modell (logika)
```
plantuml
package Logic.Data{
package Logic.World{
...
...
@@ -29,7 +30,7 @@ package Logic.World{
}
abstract Building extends TileObject{
+ Owner
(): GameTeam
{get}
+ Owner
Color(): Color
{get}
}
class Obstacle extends TileObject{
...
...
@@ -44,7 +45,8 @@ package Logic.World{
}
class Barrack extends Building{
- _checkPoints: IList<TilePosition>
+ CheckPoints(): IReadOnlyCollection<TilePosition>{get}
}
class Castle extends Building{
...
...
@@ -61,10 +63,11 @@ package Logic.Unit{
abstract Unit{
- _checkpoints: IList<TilePosition>
+ Owner
(): GameTeam
{get}
+ Owner
Color(): Color
{get}
+ Cost(): int{get}
+ NextCheckpoint(): TilePosition
}
Unit o-- TilePosition
interface IUnitTypeData{
+ Name(): String{get}
...
...
@@ -78,13 +81,26 @@ package Logic.Unit{
}
class GameTeam{
+ TeamColor(): Color{get}
+ Barracks(): IReadOnlyCollection<Barrack>
+ CastlePos(): TilePosition{get}
+ Money(): int{get}
+ AliveUnitCount(): int{get}
+ PresentTowerCount(): int{get}
+ MoneySpent(): int{get}
+ PurchasedUnitCount(): int{get}
+ BuiltTowerCount(): int{get}
}
GameTeam o-- TilePosition
enum Phase{
PREPARE
FIGHT
}
enum
GameTeam
{
enum
Color
{
RED
BLUE
}
...
...
...
...