File diff r15609:02b794721f9c → r15610:623a23fb6560
src/aircraft_cmd.cpp
Show inline comments
 
@@ -7,7 +7,8 @@
 
 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
 
 */
 

	
 
/** @file aircraft_cmd.cpp
 
/**
 
 * @file aircraft_cmd.cpp
 
 * This file deals with aircraft and airport movements functionalities */
 

	
 
#include "stdafx.h"
 
@@ -70,7 +71,8 @@ void Aircraft::UpdateDeltaXY(Direction d
 
}
 

	
 

	
 
/** this maps the terminal to its corresponding state and block flag
 
/**
 
 * this maps the terminal to its corresponding state and block flag
 
 *  currently set for 10 terms, 4 helipads */
 
static const byte _airport_terminal_state[] = {2, 3, 4, 5, 6, 7, 19, 20, 0, 0, 8, 9, 21, 22};
 
static const byte _airport_terminal_flag[] =  {0, 1, 2, 3, 4, 5, 22, 23, 0, 0, 6, 7, 24, 25};
 
@@ -100,7 +102,8 @@ enum HelicopterRotorStates {
 
	HRS_ROTOR_MOVING_3,
 
};
 

	
 
/** Find the nearest hangar to v
 
/**
 
 * Find the nearest hangar to v
 
 * INVALID_STATION is returned, if the company does not have any suitable
 
 * airports (like helipads only)
 
 * @param v vehicle looking for a hangar
 
@@ -137,7 +140,8 @@ static StationID FindNearestHangar(const
 
}
 

	
 
#if 0
 
/** Check if given vehicle has a goto hangar in his orders
 
/**
 
 * Check if given vehicle has a goto hangar in his orders
 
 * @param v vehicle to inquiry
 
 * @return true if vehicle v has an airport in the schedule, that has a hangar */
 
static bool HaveHangarInOrderList(Aircraft *v)
 
@@ -213,7 +217,8 @@ void DrawAircraftEngine(int left, int ri
 
	}
 
}
 

	
 
/** Get the size of the sprite of an aircraft sprite heading west (used for lists)
 
/**
 
 * Get the size of the sprite of an aircraft sprite heading west (used for lists)
 
 * @param engine The engine to get the sprite from
 
 * @param width The width of the sprite
 
 * @param height The height of the sprite
 
@@ -226,7 +231,8 @@ void GetAircraftSpriteSize(EngineID engi
 
	height = spr->height;
 
}
 

	
 
/** Build an aircraft.
 
/**
 
 * Build an aircraft.
 
 * @param tile tile of depot where aircraft is built
 
 * @param flags for command
 
 * @param p1 aircraft type being built (engine)
 
@@ -383,7 +389,8 @@ CommandCost CmdBuildAircraft(TileIndex t
 
}
 

	
 

	
 
/** Sell an aircraft.
 
/**
 
 * Sell an aircraft.
 
 * @param tile unused
 
 * @param flags for command type
 
 * @param p1 vehicle ID to be sold
 
@@ -431,7 +438,8 @@ bool Aircraft::FindClosestDepot(TileInde
 
	return true;
 
}
 

	
 
/** Send an aircraft to the hangar.
 
/**
 
 * Send an aircraft to the hangar.
 
 * @param tile unused
 
 * @param flags for command type
 
 * @param p1 vehicle ID to send to the hangar
 
@@ -456,7 +464,8 @@ CommandCost CmdSendAircraftToHangar(Tile
 
}
 

	
 

	
 
/** Refits an aircraft to the specified cargo type.
 
/**
 
 * Refits an aircraft to the specified cargo type.
 
 * @param tile unused
 
 * @param flags for command type
 
 * @param p1 vehicle ID of the aircraft to refit
 
@@ -634,7 +643,8 @@ void SetAircraftPosition(Aircraft *v, in
 
	}
 
}
 

	
 
/** Handle Aircraft specific tasks when a an Aircraft enters a hangar
 
/**
 
 * Handle Aircraft specific tasks when a an Aircraft enters a hangar
 
 * @param *v Vehicle that enters the hangar
 
 */
 
void HandleAircraftEnterHangar(Aircraft *v)
 
@@ -1952,7 +1962,8 @@ bool Aircraft::Tick()
 
}
 

	
 

	
 
/** Returns aircraft's target station if v->target_airport
 
/**
 
 * Returns aircraft's target station if v->target_airport
 
 * is a valid station with airport.
 
 * @param v vehicle to get target airport for
 
 * @return pointer to target station, NULL if invalid