I already have the variables defined for holding this information and it is easy to place the checks for sufficient activities remaining into where the current check is. What I need to do next is figure out how to display the current status of who has how many of each to the players. Once I have that worked out, I can design the form for the players to use to request and grant exchanges of limited activities.ORIGINAL: amwild
ORIGINAL: Shannon V. OKeets
I am now deep into the code for air missions and I came across a problem - for which I have a possible solution. What I am proposing is a different solution from the one used in CWIF, so I want to see what your opinion is.
The situation is that a player wants to perform an air mission for which activity limits are in effect. Now as long as a player controls all of his own units, there is no problem. But consider the case where a unit has been 'loaned' to another player. By loaned I am using the same meaning that CWIF has, which is that the unit's actual move is being made by a player other than the official owner. There are many examples of this: a German unit in north Africa, an Italian unit Russia, a US unit in the United Kingdom. What players are permitted to do, is to 'loan' units to each other.
[snip]...
CWIF sends a message over the Internet and checks with all the other players' computers to bring the local computer up-to-date on the number of air missions remaining, only then does it permit the mission to be flown. I have problems with this solution for several reasons, one of which is that two messages may pass each other over the Internet and the same problem as before arises.
My solution is to require a player with a loaned unit to request limited actions from the owning player. That is, Germany would have to request X air missions from Italy. Italy either grants them to Germany or not. I would keep track of available air missions not only by major power, but also by player. What I like about this is that the German player can not fly air missions unless he has prearranged it with Italy. The solution is nice and clean, for once Italy has given away X air missions, both players' computers know exactly what missions they can and can not perform.
The same solution applies to land and naval moves, land combats, etc.
So long as no units have been loaned to other players, this problem never arises. Even then, if the owning player has unlimited air missions (land moves) available, the problem doesn't come up.
Since most of the time this is a non-problem, I want a solution that does not require sending messages over the Internet. That is another reason I was unhappy with how CWIF handled this situation.
As long as one player can say "I don't really need all these moves, have some more/back," this would be good - as long as before ending the impulse both players can be sure that they have either used all available moves, or know that they have unused moves that they don't want to use (not that I can ever reasonably expect that to happen often...)
This is low priority for me at the present though.








