Commit Graph

3628 Commits

Author SHA1 Message Date
Mythos_Ruler 479deec3c2 This was SVN commit r4222. 2006-08-11 20:35:27 +00:00
Mythos_Ruler eb3b5abd9b #Completed a series of commits for the Roman helmets and other knick knacks!
This was SVN commit r4221.
2006-08-11 20:13:46 +00:00
Mythos_Ruler f082b0a939 This was SVN commit r4220. 2006-08-11 20:12:54 +00:00
Mythos_Ruler 6473d68a1c A nice commit of new grasses, shields, and helmets
This was SVN commit r4219.
2006-08-10 22:47:30 +00:00
Mythos_Ruler 50fe377f8c This was SVN commit r4218. 2006-08-10 22:44:59 +00:00
Mythos_Ruler 0ba281e702 This was SVN commit r4217. 2006-08-10 22:44:24 +00:00
Mythos_Ruler 4dbed4678e This was SVN commit r4216. 2006-08-10 22:44:06 +00:00
Mythos_Ruler e93fbeb83d This was SVN commit r4215. 2006-08-10 22:43:46 +00:00
Mythos_Ruler 3f7e88931e This was SVN commit r4214. 2006-08-10 22:43:22 +00:00
Mythos_Ruler 5786328996 This was SVN commit r4213. 2006-08-09 16:45:35 +00:00
Mythos_Ruler e9226e48a6 This was SVN commit r4212. 2006-08-09 16:45:10 +00:00
Mythos_Ruler 9fda86622c This was SVN commit r4211. 2006-08-09 15:14:45 +00:00
Mythos_Ruler 964b79e11c #New Roman Elite Triarius unit.
This was SVN commit r4210.
2006-08-09 15:14:27 +00:00
Matei b6aa68b677 Reorganized some building placement code.
This was SVN commit r4208.
2006-08-08 16:00:47 +00:00
Matei 2ff3001b08 # Updated Cantabrian Highlands RMS to add territories.
This was SVN commit r4207.
2006-08-08 04:15:09 +00:00
Matei fce69aaa7f # - Housekeeping
# - Territory restriction rules for buildings.

This was SVN commit r4206.
2006-08-08 03:45:13 +00:00
Matei 235ad34669 Converted many entity property names to CamelCase and added TerritoryRestriction property for buildings. Also moved building-related stuff (foundation, socket and territoryRestriction) inside traits.creation.
This was SVN commit r4205.
2006-08-08 03:44:15 +00:00
Matei d789c92bd0 Modified CSimulation's random number generator to use the Boost small_int and uniform_01 distributions for better portability.
This was SVN commit r4203.
2006-08-07 20:38:23 +00:00
Mythos_Ruler 3e20982866 #New Roman helmet meshes by Wijitmaker.
This was SVN commit r4202.
2006-08-07 04:16:25 +00:00
Ykkrosh 48e80bdfbc Fixed deunicodification of actor strings - need to be converted from CStr to std::wstring when passed to Atlas
This was SVN commit r4200.
2006-08-06 18:41:07 +00:00
Mythos_Ruler 1dd2196d30 This was SVN commit r4199. 2006-08-05 09:33:39 +00:00
Mythos_Ruler 6620322603 This was SVN commit r4198. 2006-08-05 09:30:18 +00:00
janwas 399e26a9c5 # macosx compat
This was SVN commit r4196.
2006-08-04 09:30:43 +00:00
Mythos_Ruler 93b2c6ad1b #A series of commits for the Roman Triarius.
This was SVN commit r4195.
2006-08-04 01:26:50 +00:00
Mythos_Ruler bd474e39d2 This was SVN commit r4194. 2006-08-04 01:25:51 +00:00
Mythos_Ruler 1f2a36bfdc This was SVN commit r4193. 2006-08-04 01:24:59 +00:00
Mythos_Ruler 1ff43562ec This was SVN commit r4192. 2006-08-03 00:14:18 +00:00
Mythos_Ruler 177c50df32 This was SVN commit r4191. 2006-08-02 00:53:17 +00:00
Mythos_Ruler 0415048114 This was SVN commit r4190. 2006-08-02 00:52:44 +00:00
Mythos_Ruler ba14397b5f This was SVN commit r4189. 2006-08-02 00:52:00 +00:00
Mythos_Ruler 5b6505235e #A whole slew of brand new grass terrains for the Temperate Biome.
This was SVN commit r4188.
2006-08-01 06:21:25 +00:00
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
Matei f76d0ffdc6 XML / JavaScript changes for new case-aware XMB format. Mostly deals with changing things like structciv to structCiv and subtype to subType, and ensuring parent is specified with Parent on all entities.
This was SVN commit r4185.
2006-08-01 03:29:10 +00:00
Matei f007b1dc0c Added a random number generator in CSimulation and functions to access it from JavaScript, which will be useful for things like projectile inaccuracy.
This was SVN commit r4183.
2006-07-30 00:24:04 +00:00
Matei 903b97c1a8 - Optimization: added bit vector to let CEntityManager check referenced entities with more spatial locality.
- Bug fix: Entities that died due to the action of a previous entity in
a simulation step still tried to update that step.

This was SVN commit r4182.
2006-07-29 23:58:33 +00:00
Matei 554b9e537e - Changed actor selection sets to CStr8 rather than CStrW.
- Added more comments in ScriptableComplex.h/inl explaining how they are
split up and when to #include the inl.

This was SVN commit r4180.
2006-07-29 22:02:11 +00:00
Matei efb9c3d7dd Automatically add .inl files to the workspace.
This was SVN commit r4178.
2006-07-28 17:26:54 +00:00
Matei dbe4451da2 # Housekeeping.
ScriptableComplex.inl is now only #included in CPP files that need it
(files that use functions from it directly), which is a total of 5
files, so recompiling after modifying it should be a lot faster.

This was SVN commit r4176.
2006-07-27 21:20:30 +00:00
janwas 1da24b9cee # housekeeping - comments+rationale for yesterday's CJSComplex cleanup
This was SVN commit r4175.
2006-07-27 12:54:47 +00:00
lostchocolatelab 0740794e8a updated mono ogg assets
This was SVN commit r4174.
2006-07-27 12:53:56 +00:00
Matei cc22d9b73e # Housekeeping.
- Jan and I cleaned up CJSComplex and put all the function bodies and
helper classes in ScriptableComplex.inl. This also required minor
changes to other files.
- Removed a debug message from Technology.cpp.

This was SVN commit r4173.
2006-07-27 02:42:35 +00:00
janwas 8c14a7c8e4 # housekeeping
remove one entity.h (replace with forward declare) => less coupling

This was SVN commit r4172.
2006-07-27 01:29:28 +00:00
janwas 3195893d1c # MacOS X compat (part 1)
- u_anim_name disambiguation
- fix implementation of finite (use our fpclassify instead of compiler's
routine)
- ä -> ae
- workaround for MAP_ANONYMOUS
- fix GLint in ogl.cpp
- add include for SIZE_MAX in string_s
- avoid PIC clobbered error and speed up rdtsc a bit
- add include for stat

This was SVN commit r4170.
2006-07-26 14:04:52 +00:00
janwas 37c87a6579 # housekeeping
add new JSUtil, automatically included via SpiderMonkey.h.
move JS_ASSERT there and rename JSU_ASSERT.
move scriptglue's REQUIRE_PARAMS there and rename to JSU_*
replace if(argc < x) bail() code with those macros.

This was SVN commit r4169.
2006-07-26 13:10:13 +00:00
Matei 2261231ffa # Housekeeping.
Jan and I implemented a number of changes:

- Converted SClassSet to vector.
- Refactored get/set ClassSet from string into methods in CClassSet.
- Turned pass-by-value string params in getCollisionObject, CEntity
constructor and CEntityManager into pointers.
- Simplified processChooseMovement.
- Merged CalculateRun and CalculateHealth into a single, simpler
CalculateRegen + helper functions.
- Changed the way regen works so the rates read in the XML act as rates
(before, they were the number of seconds until the entity will be fully
regenned, which is a bit counterintuitive).

This was SVN commit r4167.
2006-07-24 01:33:26 +00:00
Matei 1ce5ab6e0c Modified entity XML's so regen and decay rates are actual rates rather than "time to full health".
This was SVN commit r4166.
2006-07-24 01:29:02 +00:00
Matei b82451a4ff Two new techs, to demonstrate negative bonuses. These are the infantry spearman speed and armour techs for Hellenes.
This was SVN commit r4165.
2006-07-23 17:26:37 +00:00
Ykkrosh c19dbd1360 Removed UTF-8 BOM
This was SVN commit r4164.
2006-07-22 17:51:37 +00:00
Matei 03349d7d0c More tech work:
- Added the ability to specify modifiers as percentages, by typing for
example "<value>10%</value>".
- Changed the way required techs work so you need any of them rather
than all (which is how Andrew originally had it, I think, except I
changed it to all because techs with 0 prereqs counted as unresearchable
and I thought there was a logic error).
- Techs will now correctly declare themselves unavailable if a pair tech
is in progress of being researched.

This was SVN commit r4162.
2006-07-21 22:57:38 +00:00
Matei b8456f0702 # Added 4 sample techs.
Also modified the entity script to allow for gathering fractional
resources, and modified the GUI to round resources to the nearest
integer. This is necessary since techs will likely push resource
gathering amounts to fractional numbers.

This was SVN commit r4161.
2006-07-21 22:54:01 +00:00