[ctp2-commit] Revision 901 committed by Martin G?\195?\188hmann

ctp2-commit at darkdust.net ctp2-commit at darkdust.net
Sat Sep 6 23:06:06 CEST 2008


Optimized AI path computation

Some cleanings:
modified trunk/ctp2_code/ai/diplomacy/diplomat.cpp
modified trunk/ctp2_code/ai/diplomacy/Diplomat.h
modified trunk/ctp2_code/ai/diplomacy/sstateevent.cpp
modified trunk/ctp2_code/ai/strategy/goals/ctpgoal.cpp
modified trunk/ctp2_code/ai/strategy/goals/Goal.h
modified trunk/ctp2_code/gs/gameobj/ArmyData.cpp

If an army has already a path to its target position, then no new path is calculated. The new path should be the same as the old path so that calculating a new path is just a waste of time:
modified trunk/ctp2_code/ai/strategy/agents/ctpagent.cpp

U   trunk/ctp2_code/ai/diplomacy/Diplomat.h
U   trunk/ctp2_code/ai/diplomacy/diplomat.cpp
U   trunk/ctp2_code/ai/diplomacy/sstateevent.cpp
U   trunk/ctp2_code/ai/strategy/agents/ctpagent.cpp
U   trunk/ctp2_code/ai/strategy/goals/Goal.h
U   trunk/ctp2_code/ai/strategy/goals/ctpgoal.cpp
U   trunk/ctp2_code/gs/gameobj/ArmyData.cpp



More information about the ctp2-commit mailing list