예제 #1
0
파일: mission.cpp 프로젝트: joaocc/ta3d-git
	void MissionStack::load(gzFile file)
	{
		sMission.clear();
		while (gzgetc(file))
		{
			add(Mission());
			sMission.back().load(file);
		}
	}
예제 #2
0
// Default constructor for AOI, Initializes Mission List and Sensor list as well
AOI::AOI(int num_sensor_input, int num_mission_input, int mission_duration, int mission_req_sensors)
{
	// initialize AOI specific variables
	aoi_size = AOI_SIZE;
	num_sensor = num_sensor_input;
	num_mission = num_mission_input;
	
	// initialize Sensors
	for (int i = 0; i < num_sensor; i++)
	{
		s_list.push_back(Sensor(i, aoi_size));
	}
	
	// initialize Missions
	for (int i = 0; i < num_mission; i++)
	{
		m_list.push_back(Mission(aoi_size, mission_duration, mission_req_sensors));
	}

}