Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified code_Mars/ModelingProject1.suo
Binary file not shown.
72 changes: 47 additions & 25 deletions code_Mars/ModelingProject1Lib/GeneratedCode/Place.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Outside> 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<Outside> l_outside;
public List<Outside> 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)
{




}

Binary file not shown.