view atc_single.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 c0c52fb4a7fd
children ca661c5a267b
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 pygame
import sys

import atc_colors
import atc_utils
import atc_plane
import atc_message
import atc_game

from atc_maps import *

def single(screen):
	""" Main fn to run the single player game """
	g = atc_game.Game(screen)
	
	while g.run(): pass


def cmd_plane(cmd):
	parts = cmd.split(': ')
	
	if (parts.__len__()>1):
		return parts[0]
	return None

def cmd_cmd(cmd):
	parts = cmd.split(': ')
	
	if (parts.__len__()>1):
		return parts[1]
	return None

if (__name__ == '__main__'):
	print "Don't do it!"