1 /** 2 * @file 3 */ 4 5 /* 6 Copyright (C) 2002-2013 UFO: Alien Invasion. 7 8 This program is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public License 10 as published by the Free Software Foundation; either version 2 11 of the License, or (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16 17 See the GNU General Public License for more details. 18 19 You should have received a copy of the GNU General Public License 20 along with this program; if not, write to the Free Software 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 23 */ 24 25 #pragma once 26 27 enum { 28 UFO_IS_NO_TARGET, 29 UFO_IS_TARGET_OF_MISSILE, 30 UFO_IS_TARGET_OF_LASER 31 }; 32 33 #define UFO_GetGeoscapeIDX(ufo) ((ufo) - ccs.ufos) 34 35 const char* UFO_TypeToName(const ufoType_t type); 36 const technology_t* UFO_GetTechnologyFromType(const ufoType_t type); 37 const aircraft_t* UFO_GetByType(const ufoType_t type); 38 bool UFO_ShouldAppearOnGeoscape(const ufoType_t type); 39 const char* UFO_GetName(const aircraft_t* ufocraft); 40 void UFO_SetRandomDest(aircraft_t* ufo); 41 void UFO_SetRandomDestAround(aircraft_t* ufocraft, const vec2_t pos); 42 void UFO_FleePhalanxAircraft(aircraft_t* ufo, const vec2_t v); 43 void UFO_CheckShootBack(const campaign_t* campaign, aircraft_t* ufo, aircraft_t* phalanxAircraft); 44 void UFO_CampaignRunUFOs(const campaign_t* campaign, int dt); 45 void UFO_UpdateAlienInterestForAllBasesAndInstallations(void); 46 void UFO_DetectNewUFO(aircraft_t* ufocraft); 47 bool UFO_CampaignCheckEvents(void); 48 void UFO_InitStartup(void); 49 aircraft_t* UFO_AddToGeoscape(ufoType_t ufotype, const vec2_t destination, mission_t* mission); 50 void UFO_RemoveFromGeoscape(aircraft_t* ufo); 51 void UFO_SendToDestination(aircraft_t* ufo, const vec2_t dest); 52 bool UFO_SendPursuingAircraft(aircraft_t* ufo, aircraft_t* aircraft); 53 void UFO_NotifyPhalanxAircraftRemoved(const aircraft_t* const aircraft); 54 bool UFO_IsUFOSeenOnGeoscape(const aircraft_t* ufo); 55 aircraft_t* UFO_GetByIDX(const int idx); 56 aircraft_t* UFO_GetNext(aircraft_t* lastUFO); 57 aircraft_t* UFO_GetNextOnGeoscape(aircraft_t* lastUFO); 58 const aircraft_t* UFO_GetTemplate(ufoType_t ufoType); 59 aircraft_t* UFO_CreateFromTemplate(const aircraft_t* ufoTemplate); 60