git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@13822 3db68df2-c116-0410-a063-a993310a9797
Add preferred classes to BuildingAI. Patch by jammus. Fixes #1985

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@13823 3db68df2-c116-0410-a063-a993310a9797
forgot to commit extra change for r13823

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@13824 3db68df2-c116-0410-a063-a993310a9797
Avoid slightly-expensive QueryInterface() calls

Add CEntityHandle which wraps an entity_id_t and also has a pointer to a
per-entity array of IComponents. QueryInterface/CmpPtr on a handle just
involve a couple of pointer dereferences instead of a map lookup.

This requires sizeof(void*) per registered interface type per entity,
which is currently ~0.5KB per entity, which shouldn't be a problem.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@13825 3db68df2-c116-0410-a063-a993310a9797
Changes GameView to expose global functions to scripts instead of using CJSObject.
Fixes #2126
Refs #1886



git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@13826 3db68df2-c116-0410-a063-a993310a9797
Fixing some Roman names. Thanks Robbob (on the forum).

Added Organic "preferredClass" to Fortresses, Wall Towers, and Defense Towers, so that they prefer to shoot at enemy units rather than enemy structures.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@13827 3db68df2-c116-0410-a063-a993310a9797
Improve game setup GUI performance by switching from main menu instead of pushing the page on top of the stsck

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@13828 3db68df2-c116-0410-a063-a993310a9797
Merge remote-tracking branch 'remotes/trunk'