From: Arne R. <arn...@gm...> - 2005-02-12 15:09:07
|
Hi Kris, > Because of a constructor change in CPlayer (needed for isLocalPlayer in > CUnitManager) I have to change the constructor of CPlayerAI too (the > constructors of CPlayerHuman and CPlayerNet are only fixed). CPlayerAI > needs now a 4th argument from type bool which indicates whether the AI > is a local AI or a remote (true for local, false for remote). I don't think that's necessary. All remote players are of type PlayerNet, it's irrelevant if a human player or an AI gives the commands. Therefore every CPlayerAI is a local AI. > And I have given the POINT struct in map.?pp a constructor, which > accepts zero, one or two arguments. If none is specified the variables > are initialised with the value 0. The struct also got two new operators, > both for addition. The first accepts an other point, the second accepts > an single integer. (Hope that is what you want arne ;D ) I don't know if there is need for the last method (add an integer), but the rest seems to be sensible. cya arne |