1
0
forked from 0ad/0ad
0ad/source/simulation
janwas c0ed950657 had to remove uint and ulong from lib/types.h due to conflict with other library.
this snowballed into a massive search+destroy of the hodgepodge of
mostly equivalent types we had in use (int, uint, unsigned, unsigned
int, i32, u32, ulong, uintN).

it is more efficient to use 64-bit types in 64-bit mode, so the
preferred default is size_t (for anything remotely resembling a size or
index). tile coordinates are ssize_t to allow more efficient conversion
to/from floating point. flags are int because we almost never need more
than 15 distinct bits, bit test/set is not slower and int is fastest to
type. finally, some data that is pretty much directly passed to OpenGL
is now typed accordingly.

after several hours, the code now requires fewer casts and less
guesswork.

other changes:
- unit and player IDs now have an "invalid id" constant in the
respective class to avoid casting and -1
- fix some endian/64-bit bugs in the map (un)packing. added a
convenience function to write/read a size_t.
- ia32: change CPUID interface to allow passing in ecx (required for
cache topology detection, which I need at work). remove some unneeded
functions from asm, replace with intrinsics where possible.

This was SVN commit r5942.
2008-05-11 18:48:32 +00:00
..
scripting [requires workspace rebuild due to added directory] 2008-04-13 14:50:11 +00:00
AStarEngine.cpp # Fixed walking on a multistep path, which sometimes stopped after the first few steps. 2008-02-04 08:24:17 +00:00
AStarEngine.h pathfinding change: the engine uses Triangulation and A* on triangles now. dcdt package added. premake.lua changed to include the dcdt code. it needs to run update-workspaces.bat (flag -showOverlay will draw the triangulation and a single unit paths) 2007-10-09 07:27:45 +00:00
Aura.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Aura.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
BoundingObjects.cpp # SwEng 2007-05-02 12:07:08 +00:00
BoundingObjects.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Collision.cpp # SwEng 2007-05-02 12:07:08 +00:00
Collision.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Entity.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Entity.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntityFormation.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntityFormation.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntityHandles.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntityHandles.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntityManager.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntityManager.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntityOrders.h # A number of network synchronization fixes. 2007-11-18 09:09:06 +00:00
EntityRendering.cpp # SwEng 2007-05-02 12:07:08 +00:00
EntityScriptInterface.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntityStateProcessing.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntitySupport.cpp # SwEng 2007-05-02 12:07:08 +00:00
EntitySupport.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntityTemplate.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntityTemplate.h Territorial limits applied 2007-07-14 06:15:19 +00:00
EntityTemplateCollection.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EntityTemplateCollection.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
EventHandlers.cpp # Bug fixes and cleanup of entity kill code. 2007-01-25 07:00:31 +00:00
EventHandlers.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Formation.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Formation.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
FormationCollection.cpp improvements and fixes: 2008-01-07 20:03:19 +00:00
FormationCollection.h part4: adapt codebase to changes in lib/ 2007-12-20 20:21:45 +00:00
FormationManager.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
FormationManager.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
LOSManager.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
LOSManager.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
PathfindEngine.cpp part1a: misc fixes 2007-12-20 19:57:41 +00:00
PathfindEngine.h part1a: misc fixes 2007-12-20 19:57:41 +00:00
PathfindSparse.cpp # SwEng 2007-05-02 12:07:08 +00:00
PathfindSparse.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
ProductionQueue.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
ProductionQueue.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Projectile.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Projectile.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Scheduler.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Scheduler.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
ScriptObject.cpp More header-file rejigging. 2006-06-09 18:32:00 +00:00
ScriptObject.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Simulation.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Simulation.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Stance.cpp # SwEng 2007-05-02 12:07:08 +00:00
Stance.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Technology.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Technology.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
TechnologyCollection.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
TechnologyCollection.h part4: adapt codebase to changes in lib/ 2007-12-20 20:21:45 +00:00
TerritoryManager.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
TerritoryManager.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
TRAStarEngine.cpp pathfinding change: the engine uses Triangulation and A* on triangles now. dcdt package added. premake.lua changed to include the dcdt code. it needs to run update-workspaces.bat (flag -showOverlay will draw the triangulation and a single unit paths) 2007-10-09 07:27:45 +00:00
TRAStarEngine.h # OS X fixes. 2007-10-11 08:00:05 +00:00
TriggerManager.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
TriggerManager.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
TurnManager.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
TurnManager.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00