public Activity(int _start, int _end, Place _place, string _type = "private") { //choose the place in a list / with the map. If it's not there, create it start = _start; end = _end; place = _place; type = _type; }
//constructor public Day(int _number, Place map_hq) { number = _number; Activity defaultAct = new Inside(0, 147, map_hq); for (int i = 0; i <= 147; i++) //24*6+4 -1 because no activity at 24:40 { //create default activity l_activity[i] = defaultAct; } }
//constructor public Mission(int _howmanydays, List<Astronaut> _l_astronaut, int _hq_x = 700, int _hq_y = 1000) { howmanydays = _howmanydays; beginMission = false; l_astronaut = _l_astronaut; click_hq = new int[] { _hq_x, _hq_y }; map_hq = new Place(0.0, 0.0, "HQ", click_hq); l_day = new List<Day>(); for (int i = 0; i <= howmanydays; i++) { Future Day = new Future(i, map_hq); } //generate l_activity from XML l_place = new List<Place>(); }
//================================================================================================================================================ //constructor //----------- public Mission(int _howmanydays, int _hq_x = 700, int _hq_y = 1000) { howmanydays = _howmanydays; beginMission = false; l_astronaut = new List<Astronaut>(); click_hq = new int[] { _hq_x, _hq_y }; map_hq = new Place(0.0, 0.0, "HQ", click_hq); l_day = new List<Day>(); for (int i = 0; i < howmanydays; i++) { l_day.Insert(i, new Future(i, map_hq)); } //generate l_activity from XML l_place = new List<Place>(); lastUpDateEarth = DateTime.Now; }
public Outside(int _start, int _end, Place _place, string _type = "private") : base(_start, _end, _place, _type) { }
public Future(int _number, Place _map_hq) : base(_number, _map_hq) { }
public Present(int _number, Place _map_hq) : base(_number, _map_hq) { }
public void modifyContentActivity(Activity prevActivity, Place newPlace) { prevActivity.Place = newPlace; }
public Inside(int _start, int _end, Place map_hq, string _type = "private") : base(_start, _end, map_hq, _type) { }
public Past(int _number, Place _map_hq) : base(_number, _map_hq) { }