Commit Graph

76 Commits

Author SHA1 Message Date
atlimit8
1e890a921f Merge pull request #9709 from reaperrr/unitsat-actorsat
Rename ActorMap *UnitsAt* occurences to *ActorsAt*
2015-10-21 09:56:41 -05:00
Paul Chote
4226370495 Fix bridge destruction and repair. 2015-10-17 22:23:44 +01:00
reaperrr
2f69711341 Rename ActorMap *UnitsAt* occurences to *ActorsAt*
These enumerate actors in general, not just mobile actors (which the term 'unit' usually refers to).
2015-10-16 00:07:06 +02:00
atlimit8
49d7604bd9 Cache WeaponInfo look-ups 2015-10-03 22:29:40 -05:00
Matthias Mailänder
defba7aece lint check player palette reference
and tell which actor is affected when a problem is found
2015-09-27 14:57:58 +02:00
Paul Chote
ef55d646f7 Unstatic the Sound class. 2015-09-20 14:11:06 +01:00
atlimit8
de7f5a4288 Make Range WDist for all traits with circular ranges. 2015-09-19 11:02:28 -05:00
atlimit8
09984683a7 Add ActorInfo.TraitInfo[OrDefault]<T>() requiring ITraitIfo types 2015-09-19 09:56:14 -05:00
atlimit8
6970959ef1 .Trait[OrDefault]<Trait> => .Info.Traits.Get[OrDefault]<TraitInfo> where applicable 2015-09-19 09:49:24 -05:00
atlimit8
8162fa27ab Add ActorInfo.HasTraitInfo<T>() requiring ITraitInfo types 2015-09-19 09:49:24 -05:00
atlimit8
85fab45451 Remove Actor.HasTrait<T>() 2015-09-19 09:49:23 -05:00
atlimit8
8250f223c4 More HashSet trait fields & Lint support 2015-09-05 16:59:30 -05:00
RoosterDragon
901e604cf3 Replace arrays with sets.
In places where arrays were being treated as a set, just create a set directly. This reveals the intention of such collections better, and also improves performance by allowing set based methods to be used.
2015-09-03 20:09:24 +01:00
atlimit8
23d0424437 Add ITargetablePositions seperating it from ITargetable 2015-09-02 23:14:40 -05:00
Matthias Mailänder
735bb06c48 Merge pull request #9229 from pchote/fix-building-offsets
Fix TS building artwork offsets.
2015-09-02 20:45:15 +02:00
reaperrr
45e6c62ec9 Cache WithSpriteBody in Refinery constructor 2015-09-02 17:51:19 +02:00
Paul Chote
04c61727f7 Don’t sample map height when calculating building centers. 2015-09-02 16:06:05 +01:00
reaperrr
9da56f51e2 Remove RenderBuilding 2015-08-30 15:44:59 +02:00
clemty
2bbc1fcda4 LUA and trait documentation fixes
- Typo in documentation ("proximitry").
- Add spaces between sentences.
- Remove most occurrences of "  " (two spaces) unless clearly used as indendation
- Punctuation (although no fullstop after filenames like "notifications.yaml").
2015-08-24 19:41:15 +02:00
Pavel Penev
02dd5afbd9 Merge pull request #9058 from RoosterDragon/reduce-alloc
Reduce allocations in the main game loop
2015-08-24 02:11:08 +03:00
abcdefg30
429e6145cb Merge pull request #9073 from pchote/remove-production-duplication
Minor Production trait cleanups.
2015-08-22 20:39:10 +02:00
RoosterDragon
d415d3ba4e Reduce allocations in the main game loop.
- Cache the shroud projection even for flat maps to avoid allocating single element arrays.
- Avoid LINQ in shroud and map projection queries to avoid enumerator allocations.
- Avoid LINQ in calculation of sync values.
- Cache enumerables in ProductionQueue.
- Cache delegate in HackyAI.
2015-08-18 21:17:28 +01:00
Matthias Mailänder
118782a85e check palette references 2015-08-17 21:36:45 +02:00
Paul Chote
d730b4ee50 Remove duplicated DoProduction from Production. 2015-08-14 19:35:48 +01:00
Matthias Mailänder
df206ddb18 unhardcode rallypoint sprites 2015-08-10 21:35:21 +02:00
Matthias Mailänder
b536e677fb rename RallyPoint.RallyPoint to RallyPoint.Offset 2015-08-10 21:35:21 +02:00
Matthias Mailänder
281699baea add missing weapon reference 2015-08-05 15:30:51 +02:00
Matthias Mailänder
78b200d26a add missing sprite sequence and image references 2015-08-05 15:30:39 +02:00
Pavel Penev
7701980b76 Simple code style cleanups 2015-07-28 14:21:17 +03:00
Paul Chote
0b5b612757 Correct Contains check in BuildingInfluence. 2015-07-27 18:43:51 +01:00
penev92
bb648decc3 Rename Player.Country to Player.Faction 2015-07-15 04:06:52 +03:00
penev92
2e04fb5ddd Rename Faction trait members
Rename Faction.Race to Faction.InternalName
2015-07-14 18:50:39 +03:00
atlimit8
1bcc07ce69 Add property requirements to safe traits 2015-07-12 12:44:30 -05:00
Oliver Brakmann
4792ff336b Merge pull request #8674 from reaperrr/rem-initact
Removed InitialActivity from FreeActor and Buildable
2015-07-09 18:47:13 +02:00
Matthias Mailänder
7447e0bf93 rename WRange to WDist 2015-07-09 10:55:38 +02:00
reaperrr
1baae6653c Remove InitialActivity 2015-07-08 02:14:44 +02:00
atlimit8
a9908bffb4 UpgradeManager after IUpgradables 2015-06-28 10:24:00 -05:00
Paul Chote
8ae3afa3c5 Properly clean up traits that used to hook only death. 2015-05-29 19:21:35 +01:00
Paul Chote
9e5e1f1a89 Add methods to IOccupySpaceInfo. 2015-05-15 17:08:31 +01:00
penev92
50fb6f1d25 Make buildings grant prerequisites explicitly 2015-05-04 01:39:32 +03:00
abcdefg30
8d2307db83 Convert the float health percentage to an int one 2015-05-01 14:16:19 +02:00
Paul Chote
8e9a7fd08b Add an ExitDelay field to allow doors to open before exiting. 2015-04-28 19:18:44 +12:00
Paul Chote
614f96046c Remove RenderSprites animation keys. 2015-04-27 19:38:23 +12:00
Paul Chote
8a171bb452 Don’t export certain Init types. 2015-04-26 18:12:21 +12:00
Paul Chote
d5541accda Fix custom palettes in actor previews. 2015-04-26 18:12:20 +12:00
Paul Chote
1256ddc6a6 Account for bibs in ActorPreviews. 2015-04-26 18:12:19 +12:00
Matthias Mailänder
a5f60deedd fix TS repair indicator palette 2015-04-25 09:36:20 +02:00
RoosterDragon
287ead56b3 Avoid allocating a delegate and new list in every tick of RepairableBuilding. 2015-04-02 21:41:22 +01:00
penev92
0d05fb5326 Implement FreeActorWithDelivery to enable off-map harvester delivery
Fix FreeActorInfo fields descriptions
2015-03-22 17:00:57 +02:00
Taryn Hill
602de0ea13 Fix NRE caused by checking the RampType of a tile in #7645. 2015-03-12 09:11:51 -05:00