예제 #1
0
파일: Activity.cs 프로젝트: RxnDbr/PI_Mars
 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;
 }
예제 #2
0
파일: Day.cs 프로젝트: RxnDbr/PI_Mars
 //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;
     }
 }
예제 #3
0
파일: Mission.cs 프로젝트: RxnDbr/PI_Mars
 //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>();
 }
예제 #4
0
파일: Mission.cs 프로젝트: RxnDbr/PI_Mars
 //================================================================================================================================================
 //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;
 }
예제 #5
0
파일: Outside.cs 프로젝트: RxnDbr/PI_Mars
 public Outside(int _start, int _end, Place _place, string _type = "private")
     : base(_start, _end, _place, _type)
 {
 }
예제 #6
0
파일: Future.cs 프로젝트: RxnDbr/PI_Mars
 public Future(int _number, Place _map_hq)
     : base(_number, _map_hq)
 {
 }
예제 #7
0
파일: Present.cs 프로젝트: RxnDbr/PI_Mars
 public Present(int _number, Place _map_hq)
     : base(_number, _map_hq)
 {
 }
예제 #8
0
파일: Day.cs 프로젝트: RxnDbr/PI_Mars
 public void modifyContentActivity(Activity prevActivity, Place newPlace)
 {
     prevActivity.Place = newPlace;
 }
예제 #9
0
파일: Inside.cs 프로젝트: RxnDbr/PI_Mars
 public Inside(int _start, int _end, Place map_hq, string _type = "private")
     : base(_start, _end, map_hq, _type)
 {
 }
예제 #10
0
파일: Past.cs 프로젝트: RxnDbr/PI_Mars
 public Past(int _number, Place _map_hq) : base(_number, _map_hq)
 {
 }
예제 #11
0
파일: Past.cs 프로젝트: RxnDbr/PI_Mars
 public Past(int _number, Place _map_hq)
     : base(_number, _map_hq)
 {
 }
예제 #12
0
파일: Present.cs 프로젝트: RxnDbr/PI_Mars
 public Present(int _number, Place _map_hq) : base(_number, _map_hq)
 {
 }