Changes
Page history
use Placement instead of Vector2 + Orientation
authored
Mar 03, 2021
by
Pőcze Barnabás
Show whitespace changes
Inline
Side-by-side
Class-Diagram.md
View page @
8d6dab08
...
...
@@ -46,8 +46,8 @@ package Model.Common {
}
interface IBuilder {
+ CanBuild(IMapObjectBlueprint,
Vector2, Orientation
) : bool
+ Build(IMapObjectBlueprint,
Orientation
) : (IDisplayable, IInspectable)
+ CanBuild(IMapObjectBlueprint,
Placement
) : bool
+ Build(IMapObjectBlueprint,
Placement
) : (IDisplayable, IInspectable)
}
...
...
@@ -160,14 +160,14 @@ package Model.Map {
}
class Placement {
+ Pos : Vector2
+ Pos
ition
: Vector2
+ Orientation : Orientation
}
class Map {
+ Map(Vector2)
+ CanBuild(IMapObjectBlueprint,
Vector2, Orientation
) : bool
+ Build(IMapObjectBlueprint,
Vector2, Orientation)
: (IDisplayable, IInspectable)
+ CanBuild(IMapObjectBlueprint,
Placement
) : bool
+ Build(IMapObjectBlueprint,
Placement)
: (IDisplayable, IInspectable)
}
Map *- "*" Cell
Map o-- "1" NavigationGraph
...
...
@@ -418,8 +418,8 @@ class Model.Simulation {
interface Model.IBuilder {
+ CanBuild(IMapObjectBlueprint,
Vector2, Orientation
) : bool
+ Build(IMapObjectBlueprint,
Vector2, Orientation
) : (IDisplayable, IInspectable)
+ CanBuild(IMapObjectBlueprint,
Placement
) : bool
+ Build(IMapObjectBlueprint,
Placement
) : (IDisplayable, IInspectable)
}
interface Model.IInspectable {
...
...
...
...