2025-08-09 03:57 CEST

spring: develop 26334b67 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
tnowell tnowell develop 2008-02-01 18:14:56 develop 1c0e0702
Changeset - some project filters changed around
- CActions update method now processes every 16 not 15 frames, and the creation of the ef integer array is moved to the constructor to speed thigns up a little
- event messages are now cached and handed out in Global::Update() instead of being fired out immediatly. A maximum of 15 messages per frame can be processed, throttling the cpu usage of the AI.
- because update messages may not arrive on the same frame, a frame variable was added and encapsulated. Some pieces of code nwo use these methods instead of global::GetCurrentFrame()
- CMessage objects can now have lifetimes after which they become invalid. Useful for messages that arrive so late they're no longer meaningful
- minor whitespace improvements
- unitdamaged calls no longer check for valid unit IDs twice, and calls with zero damage or less are now ignored.

git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@5437 37977431-3df6-0310-b722-df95706aa16b
mod - AI/Global/NTai/AI/AI.vcproj Diff ] File ]
mod - AI/Global/NTai/AI/NTai/Core/CMessage.cpp Diff ] File ]
mod - AI/Global/NTai/AI/NTai/Core/CMessage.h Diff ] File ]
mod - AI/Global/NTai/AI/NTai/Core/Global.cpp Diff ] File ]
mod - AI/Global/NTai/AI/NTai/Core/Global.h Diff ] File ]
mod - AI/Global/NTai/AI/NTai/Helpers/Terrain/CBuildingPlacer.cpp Diff ] File ]
mod - AI/Global/NTai/AI/NTai/Helpers/Units/Actions.cpp Diff ] File ]
mod - AI/Global/NTai/AI/NTai/Helpers/Units/Actions.h Diff ] File ]
mod - AI/Global/NTai/AI/NTai/Units/Behaviours/CDGunBehaviour.cpp Diff ] File ]