view atc_beacon.py @ 45:c93c3c910c85

Updated headers/copyrights ATC is now licensed under GPLv2 only
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Fri, 01 Jun 2007 02:04:37 -0400
parents 1757b7e8d09f
children
line wrap: on
line source

#/*
# * ATC - Air Traffic Controller simulation game
# *
# * Copyright (C) 2004-2007 Josef "Jeff" Sipek <jeffpc@josefsipek.net>
# *
# * This program is free software; you can redistribute it and/or modify
# * it under the terms of the GNU General Public License version 2 as
# * published by the Free Software Foundation.
# *
# * 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.
# */

import os
import sys
import time
import pygame
from math import *

import atc_config

import atc_colors
import atc_utils

# FIXME: power output/range?
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)