[htsserver-cvs] CVS update: pyhtsserver
Status: Abandoned
Brought to you by:
uh1763
|
From: Uwe H. <uh...@us...> - 2001-09-14 23:22:51
|
Date: Friday September 14, 2001 @ 16:22 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver In directory usw-pr-cvs1:/tmp/cvs-serv29361 Modified Files: ChangeLog Log Message: * src/htsserver.py, log.py: Move the check whether the logfile is given with an absolute path to log.init(), where it belongs to. * src/htsserver.py: The check if we have write permissions to the logfile would fail if the logfile doesn't exist. I completely removed the test, as log.init() already (implicitely) checks whether we can write to the logfile. Index the dict g.towns by ID, not by townname. * src/players.py: Add a 'transporters' attribute. * src/protocol.py: Every new player now gets a random amount of money. Every new player also gets two transporters; each of them is located in a randomly chosen town and has randomly chosen capacity and money. Fix a bug: We need to copy.deepcopy() the players into the 'players' dict, just saying 'g.players[name] = player' will only store a reference to the player, which is not what we want... The 'g' command now displays information about all transporters of each player. It also shows how much money every player has got. * src/transporters.py: Removed the attribute 'id'. The attribute 'goods' is [] per default, now. =================================================================== File: ChangeLog Status: Up-to-date Working revision: 1.4 Fri Sep 14 23:22:48 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/ChangeLog,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |