Mercurial > atc
changeset 41:df92ec9825a6
Basic beacon structures - unused as of now
author | Josef "Jeff" Sipek <jeffpc@optonline.net> |
---|---|
date | Fri, 19 Aug 2005 16:58:43 -0500 |
parents | 34d28eef594e |
children | 05245904f997 |
files | atc_beacon.py |
diffstat | 1 files changed, 50 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/atc_beacon.py Fri Aug 19 16:58:43 2005 -0500 @@ -0,0 +1,50 @@ +#/* +# * ATC - Air Traffic Controller simulation game +# * +# * Copyright (C) 2005 Josef "Jeff" Sipek <jeffpc@optonline.net> +# * +# * This program is free software; you can redistribute it and/or modify +# * it under the terms of the GNU General Public License as published by +# * the Free Software Foundation; either version 2 of the License, or +# * (at your option) any later version. +# * +# * This program is distributed in the hope that it will be useful, +# * but WITHOUT ANY WARRANTY; without even the implied warranty of +# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# * GNU General Public License for more details. +# * +# * You should have received a copy of the GNU General Public License +# * along with this program; if not, write to the Free Software +# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# * +# * @(#) %M% %I% %E% %U% +# */ + +import os +import sys +import time +import pygame +from math import * + +import atc_config + +import atc_colors +import atc_utils + +class Beacon: + """ Class to manage a generic beacon """ + def __init__(self, name, freq, loc): + self.freq = freq + self.loc = loc + self.name = name + +class ILS_Beacon(Beacon): + """ Class to manage ILS beacons """ + def __init__(self, name, freq, loc, marker): + Beacon.__init__(self, name, freq, loc) + self.marker = marker + +class VOR_Beacon(Beacon): + """ Class to manage VOR beacons """ + def __init__(self, name, freq, loc): + Beacon.__init__(self, name, freq, loc)