Commit Graph

15 Commits

Author SHA1 Message Date
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
Paul Chote
7883b1bd7f Convert Combat.DoExplosion to world coords. 2013-07-08 21:52:27 +12:00
Chris Forbes
55036cd58c fix trailing whitespace everywhere 2011-09-26 08:40:39 +13:00
Paul Chote
094907c1a9 Update copyright header. Normalize line endings to LF. 2011-02-13 10:38:57 +13:00
Chris Forbes
31d5d18d65 undo ProjectileArgs stuff 2010-07-22 18:59:41 +12:00
alzeih
6be4e5c266 Combat.DoExplosion now takes a Target
(needs more refactoring)
2010-07-22 16:00:14 +12:00
Chris Forbes
d5f12dd8ee trim down license spam in all files 2010-07-18 16:48:21 +12:00
Chris Forbes
5bec019d55 add RALint checking to nearly everything 2010-07-01 18:57:10 +12:00
Chris Forbes
db465e1fdd ActorInitializer, in preparation for next change (bob) 2010-06-19 14:28:30 +12:00
Chris Forbes
c63697e181 explode crates wired up again 2010-04-02 16:45:37 +13:00
Chris Forbes
11121baf23 bullet/lobbed sortof work now 2010-04-02 16:44:58 +13:00
Paul Chote
85f9b3627f Remove duplication 2010-03-21 20:49:36 +13:00
Paul Chote
0510a7fb7f Begin generalizing crates; only give firepower bonus to units with weapons 2010-03-21 20:49:36 +13:00
Chris Forbes
0f902ae41a tweaks, setup flame and boom variants of ExplodeCrateAction 2010-03-21 10:06:06 +13:00
Chris Forbes
a38b5b89db add explosive crates 2010-03-21 09:49:27 +13:00