Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2000:
[Freeciv-Dev] small orginization path
Home

[Freeciv-Dev] small orginization path

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] small orginization path
From: Dan Gohman <gohmandj@xxxxxxxxxxx>
Date: Sun, 30 Apr 2000 13:15:59 -0500

Since I think it would be fun and useful to have a C++ freeciv, I'm going to
work on this on my local tree. Some of the organization changes I'm making
I'd like to see made in the C version as well, so I'll be submitting patches
for this.

I have attached is a patch that moves two functions,
is_transporter_with_free_space and is_enough_transporter_space, from unit.c
to player.c (and updates the .h files accordingly).

For the curious, this corresponds to the following signature change:

current version (in common/unit.c):

int is_transporter_with_free_space(struct player *pplayer, int x, int y)
int is_enough_transporter_space(struct player *pplayer, int x, int y)

C++ version (in common/player.cpp):

bool player::is_transporter_with_free_space(int x, int y) const
bool player::is_enough_transporter_space(int x, int y) const

-- 
Dan Gohman
gohmandj@xxxxxxxxxxx



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] small orginization path, Dan Gohman <=