diff --git a/code_Mars/ModelingProject1.suo b/code_Mars/ModelingProject1.suo index cabb103..168722d 100644 Binary files a/code_Mars/ModelingProject1.suo and b/code_Mars/ModelingProject1.suo differ diff --git a/code_Mars/ModelingProject1Lib/GeneratedCode/Place.cs b/code_Mars/ModelingProject1Lib/GeneratedCode/Place.cs index 020e850..026728b 100644 --- a/code_Mars/ModelingProject1Lib/GeneratedCode/Place.cs +++ b/code_Mars/ModelingProject1Lib/GeneratedCode/Place.cs @@ -11,37 +11,59 @@ public class Place { - private Double x - { - get; - set; - } + //attributes, properties and accessors - private Double y - { - get; - set; - } + private double map_x; + public double X { get { return map_x; } set { map_x = value; } } - private string name - { - get; - set; - } - public virtual IEnumerable l_outside - { - get; - set; - } + private double map_y; + public double Y { get { return map_y; } set { map_y = value; } } - public Place(int pixel_x, int pixel_y, string name) - { - } + private string name; + public string Name { get { return name; } set { name = value; } } + + private int hq_x; + public int Hq_x {get { return hq_x;}} + + private int hq_y; + public int Hq_y {get {return hq_y;}} + + private List l_outside; + public List L_Outside { get { return l_outside; } set { l_outside = value; } } - public Place(Double x, Double y, string name) + //constructor + + public Place(double _map_x, double _map_y, string _name, int _hq_x, int _hq_y) { - } + map_x = _map_x; + map_y = _map_y; + name = _name; + hq_x = _hq_x; + hq_y = _hq_y; + } + + public Place(int _click_x, int _click_y, string _name ) + { + x = convertisseur (pixel_x); + y = ..; + Place(x,y, name) + } + + //methodes + + // horizontal = true : + // --> converti coordonnée x + // horizontale = false : + // --> converti coordonnée y + + public double convertClickToMap (int _coordonnée, bool horizontal) + { + if (horizontal == true) + { + + + } diff --git a/code_Mars/ModelingProject1Lib/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/code_Mars/ModelingProject1Lib/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index cdedd2e..4186a28 100644 Binary files a/code_Mars/ModelingProject1Lib/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/code_Mars/ModelingProject1Lib/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ