File diff r2158:c6fcd114db94 → r2159:2c706fe6b0a7
airport_movement.h
Show inline comments
 
#ifndef AIRPORT_MOVEMENT_H
 
#define AIRPORT_MOVEMENT_H
 

	
 
#include "stdafx.h"
 
#include "macros.h"
 

	
 
typedef struct AirportMovingData {
 
	int x,y;
 
	byte flag;
 
	byte direction;
 
} AirportMovingData;
 

	
 
// state machine input struct (from external file, etc.)
 
// Finite sTate mAchine --> FTA
 
typedef struct AirportFTAbuildup {
 
	byte position;							// the position that an airplane is at
 
	byte heading;								// the current orders (eg. TAKEOFF, HANGAR, ENDLANDING, etc.)
 
	uint32 block;								// the block this position is on on the airport (st->airport_flags)
 
	byte next_in_chain;					// next position from this position
 
} AirportFTAbuildup;
 

	
 
enum {
 
	AMED_NOSPDCLAMP	= 1<<0,
 
	AMED_TAKEOFF		= 1<<1,
 
	AMED_SLOWTURN		= 1<<2,
 
	AMED_LAND				= 1<<3,
 
	AMED_EXACTPOS		= 1<<4,
 
	AMED_BRAKE			= 1<<5,
 
	AMED_HELI_RAISE	= 1<<6,