[Freeciv-Dev] small orginization path
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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 <=
|
|