1
0
forked from 0ad/0ad
0ad/source/simulation
Matei 44fe226dd2 # Housekeeping and pathfinder enhancements / optimization when dealing with ranged actions.
- Modified Xeromyces to no longer automatically convert element and
attribute names to lowercase, so that we can have camelCase names. We
should now be able to convert all the multi-word entity properties, like
pass_through_allies, to camelCase, like passThroughAllies, which is more
consistent with the rest of our JavaScript naming conventions. To
support the existing code that assumes lowercase element names, I made
the getElementID and getAttributeID methods (used in the EL and AT
macros) ignore case, and I changed any code that directly accessed
element names to use the right case. CEntityTemplate now converts
Names_LikeThis to names_likeThis (changing each separate "word" in the
name to camelCase). Changed the version letter in XMB filenames from A
to B to support this without requiring people to delete old XMBs.

- Enhanced the pathfinder's handling of contact paths, resulting in a
very large speedup for actions like attacking, construction, etc. The
problem was that the pathfinder used to not count a given state as the
goal unless it was exactly coincident with the target location. This is
fine when you order a unit to go exactly to a certain spot, but if
you're ordering a unit to build, gather or attack something, then the
target tile is impassable (because your target is there) and therefore
the pathfinder never declares a state final. As a result, the pathfinder
tries hundreds of extra tiles in case there is a long path that gets to
the goal, and after failing to find any path that reaches the goal, it
gives you one to the closest point it got to. To fix it, I made the
pathfinder take into account a radius around the goal in which it's OK
to be, which depends on the size of the target unit and the range of
your action.

This was SVN commit r4186.
2006-08-01 03:41:21 +00:00
..
AStarEngine.cpp # Housekeeping and pathfinder enhancements / optimization when dealing with ranged actions. 2006-08-01 03:41:21 +00:00
AStarEngine.h # Housekeeping and pathfinder enhancements / optimization when dealing with ranged actions. 2006-08-01 03:41:21 +00:00
Aura.cpp More header-file rejigging. 2006-06-09 18:32:00 +00:00
Aura.h More header-file rejigging. 2006-06-09 18:32:00 +00:00
BoundingObjects.cpp Simplification of #Include paths: relative names are used only for included files in the same directory as the including file; everything else uses the full path relative to source/. 2006-06-02 02:10:27 +00:00
BoundingObjects.h Simplification of #Include paths: relative names are used only for included files in the same directory as the including file; everything else uses the full path relative to source/. 2006-06-02 02:10:27 +00:00
Collision.cpp # Housekeeping and pathfinder enhancements / optimization when dealing with ranged actions. 2006-08-01 03:41:21 +00:00
Collision.h # Housekeeping and pathfinder enhancements / optimization when dealing with ranged actions. 2006-08-01 03:41:21 +00:00
Entity.cpp # Housekeeping and pathfinder enhancements / optimization when dealing with ranged actions. 2006-08-01 03:41:21 +00:00
Entity.h - Changed actor selection sets to CStr8 rather than CStrW. 2006-07-29 22:02:11 +00:00
EntityFormation.cpp Upgraded console (text wrap, help text), cinematic stuff 2006-07-06 03:17:44 +00:00
EntityFormation.h # Housekeeping. 2006-07-24 01:33:26 +00:00
EntityHandles.cpp - Optimization: added bit vector to let CEntityManager check referenced entities with more spatial locality. 2006-07-29 23:58:33 +00:00
EntityHandles.h - Optimization: added bit vector to let CEntityManager check referenced entities with more spatial locality. 2006-07-29 23:58:33 +00:00
EntityManager.cpp # Housekeeping and pathfinder enhancements / optimization when dealing with ranged actions. 2006-08-01 03:41:21 +00:00
EntityManager.h - Optimization: added bit vector to let CEntityManager check referenced entities with more spatial locality. 2006-07-29 23:58:33 +00:00
EntityMessage.h Fixed file properties - removed svn:executable and svn:keywords (left over from CVS conversion?) from all files; set svn:eol-style=native for *.cpp, *.h (and fixed files with inconsistent line endings) 2006-04-23 23:14:18 +00:00
EntityOrders.h Premake: include precompiled.h in the project; set up dependencies for Atlas projects. 2006-06-09 16:44:16 +00:00
EntityPredicate.h Forcing update of EntityPredicate.h 2005-03-30 18:25:07 +00:00
EntityProperties.cpp Some cleanup - renamed CBaseEntity to CEntityTemplate, and removed JSInterface_BaseEntity.h and JSInterface_Entity.h (which were unused). 2006-07-13 03:29:33 +00:00
EntityProperties.h # housekeeping 2006-07-20 14:37:58 +00:00
EntityStateProcessing.cpp # Housekeeping and pathfinder enhancements / optimization when dealing with ranged actions. 2006-08-01 03:41:21 +00:00
EntitySupport.cpp # Housekeeping. 2006-07-24 01:33:26 +00:00
EntitySupport.h # Housekeeping. 2006-07-24 01:33:26 +00:00
EntityTemplate.cpp # Housekeeping and pathfinder enhancements / optimization when dealing with ranged actions. 2006-08-01 03:41:21 +00:00
EntityTemplate.h # Housekeeping. 2006-07-24 01:33:26 +00:00
EntityTemplateCollection.cpp # housekeeping 2006-07-20 14:37:58 +00:00
EntityTemplateCollection.h # housekeeping 2006-07-20 14:37:58 +00:00
EventHandlers.cpp # Updates to construction: Added a start construction net message and made the selected units start working on a newly placed building after you place it. 2006-05-04 07:40:31 +00:00
EventHandlers.h Simplification of #Include paths: relative names are used only for included files in the same directory as the including file; everything else uses the full path relative to source/. 2006-06-02 02:10:27 +00:00
Formation.cpp # housekeeping 2006-07-20 14:37:58 +00:00
Formation.h # housekeeping 2006-07-20 14:37:58 +00:00
FormationCollection.cpp # housekeeping 2006-07-20 14:37:58 +00:00
FormationCollection.h # housekeeping 2006-07-20 14:37:58 +00:00
FormationManager.cpp A few organization changes: 2006-06-09 23:07:11 +00:00
FormationManager.h A few organization changes: 2006-06-09 23:07:11 +00:00
LOSManager.cpp Simplification of #Include paths: relative names are used only for included files in the same directory as the including file; everything else uses the full path relative to source/. 2006-06-02 02:10:27 +00:00
LOSManager.h Simplification of #Include paths: relative names are used only for included files in the same directory as the including file; everything else uses the full path relative to source/. 2006-06-02 02:10:27 +00:00
PathfindEngine.cpp # Housekeeping and pathfinder enhancements / optimization when dealing with ranged actions. 2006-08-01 03:41:21 +00:00
PathfindEngine.h # Housekeeping and pathfinder enhancements / optimization when dealing with ranged actions. 2006-08-01 03:41:21 +00:00
PathfindSparse.cpp # Housekeeping. 2006-07-27 21:20:30 +00:00
PathfindSparse.h # complete revamp of build system in preparation for automated self tests. 2006-06-02 03:56:24 +00:00
ProductionQueue.cpp # Better handling of entity ownership changes. 2006-07-21 00:05:56 +00:00
ProductionQueue.h # Better handling of entity ownership changes. 2006-07-21 00:05:56 +00:00
Projectile.cpp Premake: include precompiled.h in the project; set up dependencies for Atlas projects. 2006-06-09 16:44:16 +00:00
Projectile.h Simplification of #Include paths: relative names are used only for included files in the same directory as the including file; everything else uses the full path relative to source/. 2006-06-02 02:10:27 +00:00
Scheduler.cpp Fixed file properties - removed svn:executable and svn:keywords (left over from CVS conversion?) from all files; set svn:eol-style=native for *.cpp, *.h (and fixed files with inconsistent line endings) 2006-04-23 23:14:18 +00:00
Scheduler.h Simplification of #Include paths: relative names are used only for included files in the same directory as the including file; everything else uses the full path relative to source/. 2006-06-02 02:10:27 +00:00
ScriptObject.cpp More header-file rejigging. 2006-06-09 18:32:00 +00:00
ScriptObject.h More header-file rejigging. 2006-06-09 18:32:00 +00:00
Simulation.cpp Added a random number generator in CSimulation and functions to access it from JavaScript, which will be useful for things like projectile inaccuracy. 2006-07-30 00:24:04 +00:00
Simulation.h Added a random number generator in CSimulation and functions to access it from JavaScript, which will be useful for things like projectile inaccuracy. 2006-07-30 00:24:04 +00:00
Technology.cpp # Housekeeping. 2006-07-27 21:20:30 +00:00
Technology.h More tech work: 2006-07-21 22:57:38 +00:00
TechnologyCollection.cpp # Updates to techs. 2006-07-20 22:43:06 +00:00
TechnologyCollection.h # housekeeping 2006-07-20 14:37:58 +00:00
TerritoryManager.cpp svn:ignore auto-generated test .cpp files. 2006-07-12 14:49:10 +00:00
TerritoryManager.h Added code for placement of socketted buildings. 2006-07-09 23:12:37 +00:00
TurnManager.cpp Simplification of #Include paths: relative names are used only for included files in the same directory as the including file; everything else uses the full path relative to source/. 2006-06-02 02:10:27 +00:00
TurnManager.h Fixed file properties - removed svn:executable and svn:keywords (left over from CVS conversion?) from all files; set svn:eol-style=native for *.cpp, *.h (and fixed files with inconsistent line endings) 2006-04-23 23:14:18 +00:00