Update Osztály diagram authored by Bahil Botond's avatar Bahil Botond
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
```plantuml ```plantuml
package Model.Field{ package Model.World{
interface ITowerTypeData{ interface ITowerTypeData{
+ Name(): String{get} + Name(): String{get}
...@@ -17,7 +17,7 @@ package Model.Field{ ...@@ -17,7 +17,7 @@ package Model.Field{
} }
class Field{ class GameWorld{
- _grid: TileObject[,] - _grid: TileObject[,]
+ Width(): int{get} + Width(): int{get}
+ Height(): int{get} + Height(): int{get}
...@@ -57,7 +57,7 @@ package Model.Field{ ...@@ -57,7 +57,7 @@ package Model.Field{
Building <|-- Tower Building <|-- Tower
Building <|-- Castle Building <|-- Castle
Building <|-- Barrack Building <|-- Barrack
Field o-- TileObject GameWorld o-- TileObject
TileObject "1" o-- TilePosition TileObject "1" o-- TilePosition
Tower "1" o-- ITowerTypeData Tower "1" o-- ITowerTypeData
} }
...@@ -65,9 +65,11 @@ package Model.Field{ ...@@ -65,9 +65,11 @@ package Model.Field{
package Model.Unit{ package Model.Unit{
abstract Unit{ abstract Unit{
- _checkpoints: IList<TilePosition>
+ Owner(): GameTeam{get} + Owner(): GameTeam{get}
+ Cost(): int{get} + Cost(): int{get}
+ Destination(): TileObject?{get} + NextCheckpoint(): TilePosition
} }
interface IUnitTypeData{ interface IUnitTypeData{
... ...
......