use Placement instead of Vector2 + Orientation authored by Pőcze Barnabás's avatar Pőcze Barnabás
......@@ -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
+ Position : 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 {
......
......