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 { ...@@ -46,8 +46,8 @@ package Model.Common {
} }
interface IBuilder { interface IBuilder {
+ CanBuild(IMapObjectBlueprint, Vector2, Orientation) : bool + CanBuild(IMapObjectBlueprint, Placement) : bool
+ Build(IMapObjectBlueprint, Orientation) : (IDisplayable, IInspectable) + Build(IMapObjectBlueprint, Placement) : (IDisplayable, IInspectable)
} }
...@@ -160,14 +160,14 @@ package Model.Map { ...@@ -160,14 +160,14 @@ package Model.Map {
} }
class Placement { class Placement {
+ Pos : Vector2 + Position : Vector2
+ Orientation : Orientation + Orientation : Orientation
} }
class Map { class Map {
+ Map(Vector2) + Map(Vector2)
+ CanBuild(IMapObjectBlueprint, Vector2, Orientation) : bool + CanBuild(IMapObjectBlueprint, Placement) : bool
+ Build(IMapObjectBlueprint, Vector2, Orientation) : (IDisplayable, IInspectable) + Build(IMapObjectBlueprint, Placement): (IDisplayable, IInspectable)
} }
Map *- "*" Cell Map *- "*" Cell
Map o-- "1" NavigationGraph Map o-- "1" NavigationGraph
...@@ -418,8 +418,8 @@ class Model.Simulation { ...@@ -418,8 +418,8 @@ class Model.Simulation {
interface Model.IBuilder { interface Model.IBuilder {
+ CanBuild(IMapObjectBlueprint, Vector2, Orientation) : bool + CanBuild(IMapObjectBlueprint, Placement) : bool
+ Build(IMapObjectBlueprint, Vector2, Orientation) : (IDisplayable, IInspectable) + Build(IMapObjectBlueprint, Placement) : (IDisplayable, IInspectable)
} }
interface Model.IInspectable { interface Model.IInspectable {
... ...
......