Example #1
0
 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;
 }
Example #2
0
 //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;
     }
 }
Example #3
0
 //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>();
 }
Example #4
0
 //================================================================================================================================================
 //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;
 }
Example #5
0
 public Outside(int _start, int _end, Place _place, string _type = "private")
     : base(_start, _end, _place, _type)
 {
 }
Example #6
0
 public Future(int _number, Place _map_hq)
     : base(_number, _map_hq)
 {
 }
Example #7
0
 public Present(int _number, Place _map_hq)
     : base(_number, _map_hq)
 {
 }
Example #8
0
 public void modifyContentActivity(Activity prevActivity, Place newPlace)
 {
     prevActivity.Place = newPlace;
 }
Example #9
0
 public Inside(int _start, int _end, Place map_hq, string _type = "private")
     : base(_start, _end, map_hq, _type)
 {
 }
Example #10
0
 public Past(int _number, Place _map_hq) : base(_number, _map_hq)
 {
 }
Example #11
0
 public Past(int _number, Place _map_hq)
     : base(_number, _map_hq)
 {
 }
Example #12
0
 public Present(int _number, Place _map_hq) : base(_number, _map_hq)
 {
 }