Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
RoosterDragon
b733465f33
General uncontroversial cleanup:
...
- Made private methods static where possible (runtime can elide checking the object for null).
- Declared attribute classes as sealed (allows reflection on attributes to complete faster).
- Moved some static cctor's into field initializers (static cctor's are slower than static field initializers).
- Made classes static if they contained only static methods (can't create instances of useless objects).
- Use inferable Exts.Lazy and not new Lazy<T>().
- Added required STAThread attribute to CrashDialog.
- Removed unused parameters in private methods.
- Added Serializable attribute to exceptions.
- Added parameter name in calls to ArgumentNullException.
- Use of as operator instead of is + cast.
- Changed (x as Foo).Bar anti-pattern into ((Foo)x).Bar. Results in sensible cast exceptions on error rather than null dereferences.
- Removed unused method in NullShader.
2014-05-23 15:50:54 +01:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
Paul Chote
2aed55f5f6
Enable frozen order: EngineerRepair.
2013-08-12 21:34:19 +12:00
Paul Chote
3e605b1ee9
Add plumbing for issuing orders against frozen actors.
2013-08-12 21:34:18 +12:00
Paul Chote
e4d1c654ed
Merge IOrderTargeter.CanTargetActor and CanTargetLocation.
2013-08-11 22:23:52 +12:00
Scott_NZ
ac430bd3bc
Add force-move
2013-05-18 17:52:36 +12:00
Paul Chote
4ca777597f
Replace UnitTraitOrderTargeter with TargetTypeOrderTargeter.
...
This also makes naval buildings untargetable for c4 and demo trucks, as they don't make much sense.
2013-04-15 23:10:57 +12:00
Paul Chote
e76c746b61
Rewrite Enter and related activities.
...
The unit will now path to the nearest adjacent cell, drag inside, do the inner activity, then (if still alive) drag back to its original
location.
This fixes:
- Mismatch in logic between Enter and MoveAdjacentTo,
which causes an infinite loop.
- Building capturing failing from certain directions.
- Being unable to enter buildings on unpathable tiles.
- Units being stranded inside a building if the requirements
for the inner order aren't met.
2013-04-15 08:05:37 +12:00
Scott_NZ
742a27158a
Make oil derricks repairable by engineers
2013-01-12 18:55:59 +13:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
257bd6f431
fixed #849 -- forceMove plumbing removed, noone uses it.
2011-08-17 07:52:35 +12:00
Paul Chote
3972836cd6
Don't allow engineers to repair neutral structures, it conflicts with capturing.
2011-07-27 13:36:47 +12:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Paul Chote
03185fe46b
Fix #429 . Capturable Oil Derricks.
2011-01-04 14:34:00 +13:00
Chris Forbes
59fdbe8725
CanTargetUnit -> CanTargetUnit
2010-12-27 18:43:32 +13:00
Chris Forbes
81dad0bd34
tidying
2010-12-04 10:35:34 +13:00
Paul Chote
b423889c06
Remove a pile of duplication from target lines.
...
Remove MoveFlash.
2010-11-27 11:20:03 +13:00
Chris Forbes
490b0801a0
start removing weird ctors on Order
2010-11-23 15:14:48 +13:00
geckosoft
622f9bfe71
Added: forceQueue to IOrderTarget' CanTargetUnit / CanTargetLocation
...
Added: forceQueue to all related methods
Added: Only shows the select cursor IF hovering over a unit AND the orders return the 'default' icon
2010-11-13 17:46:36 +13:00
Bob
10ed3db71d
made all orders queuable
2010-11-13 15:53:08 +13:00
Bob
480c5edd75
move Building et al into Mods/
2010-11-06 11:05:45 +13:00
Bob
88a8d84153
use new Enter activity for engy, spy, c4
2010-10-21 20:58:07 +13:00
Matthew Bowra-Dean
f6df7a06f2
fixes #323
2010-10-21 07:43:52 +13:00
Chris Forbes
6c9527d9dc
#304 engineer goldwrench cursors were backwards
2010-10-15 17:44:18 +13:00
Bob
aebef4f1c8
rename IIssueOrder2 -> IIssueOrder
2010-10-07 22:07:13 +13:00
Bob
4bc9e01516
use new orders system in various traits
2010-10-07 22:07:12 +13:00
Paul Chote
2b6328f0ee
Begin imposing sanity on order ordering
2010-09-12 18:10:34 +12:00
Bob
ae703d50b2
Actor.traits is implementation detail
2010-08-14 17:39:49 +12:00
Chris Forbes
67418e0b9d
fix capturing of neutral buildings
2010-08-01 12:23:45 +12:00
Paul Chote
8528c5d3a3
Correct the ordering on DamageState
2010-07-30 22:24:43 +12:00
Paul Chote
1459ec483c
Rename ExtendedDamageState -> DamageState
2010-07-30 22:24:43 +12:00
Paul Chote
0580dc4adf
Fix damaged-building artwork and don't show healthbar for dead units (cnc critical-building state)
2010-07-30 10:11:33 +12:00
Paul Chote
98ac5a036f
Add an `Undamaged' damagestate to simplify things related to healing.
2010-07-30 01:22:41 +12:00
Paul Chote
6fba888d45
Shift Actor.Health onto a trait.
...
Known regressions:
- cnc only
- health bar colors
- can't repair buildings
2010-07-30 00:33:44 +12:00
alzeih
526bb3e042
Use Targets
2010-07-26 12:33:54 +12:00
Paul Chote
e8adc357e9
Draw targeting lines for player-issued orders. Can force-display targets with [alt].
2010-07-26 12:01:13 +12:00
Paul Chote
d5c43c9fda
Remove unused code
2010-07-23 22:44:59 +12:00
Paul Chote
4016b81208
c4 and goldwrench voices / flashes / fixed movement
2010-07-23 20:13:41 +12:00
Paul Chote
71420df0f3
Fix CursorForOrderString to work with orders + preliminary e6 fixes
2010-07-23 17:16:02 +12:00