RoosterDragon
21292061f9
Added "PERF: Avoid LINQ." comments.
2015-12-12 21:05:13 +00:00
RoosterDragon
dcf375a412
Store Targetables in Actor.
...
This can be used to avoid several lookups for these traits, as well as allow Actor to provide specialised methods to deal with target types efficiently. This also reduces some code duplication.
2015-12-12 20:55:17 +00:00
atlimit8
23d0424437
Add ITargetablePositions seperating it from ITargetable
2015-09-02 23:14:40 -05:00
atlimit8
f5c3575c5a
Support multiple ITargetable traits
2015-09-02 23:14:40 -05:00
Matthias Mailänder
56e9bcd96e
rename RangeSquard to LengthSquared
2015-07-09 21:16:01 +02:00
Matthias Mailänder
7447e0bf93
rename WRange to WDist
2015-07-09 10:55:38 +02:00
Matthias Mailänder
ea5003cd2d
add new long WRange.RangeSquared to avoid integer overflows
2015-05-31 23:51:30 +02:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
RoosterDragon
a6cda967c2
Formatted all files.
...
Automatically formatted all files via VS. This generally corrects indentation, removes trailing whitespace and corrects misplaced tabs or spaces. Manually tweaked a few files where required.
2015-01-06 21:28:50 +00:00
Oliver Brakmann
30e42cdc62
Merge pull request #7247 from Hellhake/stylecop-game
...
Fix StyleCop warnings in OpenRA.Game
2015-01-02 12:58:04 +01:00
Hellhake
5a97a4b63b
Fix StyleCop warnings in OpenRA.Game
2015-01-02 12:11:01 +01:00
Hellhake
fa72e04042
Remove BOM
2015-01-01 22:51:12 +01:00
huwpascoe
a660bb95b5
Actor properties consistency improved
2014-11-21 02:44:05 +00:00
atlimit8
e29b9edfc1
Changes to map.cs, rename IPositionable.IsLeaving{ => Cell}, add IPositionable.GetValidSubCell
2014-08-29 23:30:16 -05:00
atlimit8
63c28ee4d7
Refactored in new enum SubCell
2014-08-29 23:00:53 -05:00
atlimit8
ff7ad53dee
Fixed UnloadCargo stacking using new subcell API exposure
2014-08-29 23:00:53 -05:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
Paul Chote
7b52fa52b6
Replace CPos.CenterPosition -> Map.CenterOfCell.
2014-06-27 23:30:40 +12:00
Paul Chote
086ec07eb6
Add World parameter to Target.FromCell.
2014-06-27 23:30:40 +12:00
Paul Chote
e4ea012b9e
Add World parameter to Target.FromOrder.
2014-06-27 23:30:40 +12:00
Matthias Mailänder
c76ebbdc46
exclusive force fire on husks and bridges
2014-04-03 15:57:41 +02:00
ScottNZ
1394c1dcee
Remove some misc redundancies
2013-11-12 19:39:39 +13:00
Matthias Mailänder
4fd647bc5d
ToString() for Target
2013-08-29 17:40:27 +02:00
Paul Chote
6e13cb7f3b
Unacquire invalid AI targets.
2013-08-22 19:32:25 +12:00
Paul Chote
bc5c11e44f
Check ITargetable when deciding target validity. Fixes #3659 .
2013-08-22 19:29:05 +12:00
Paul Chote
40a9caddc7
Add FrozenActor target type.
2013-08-12 21:34:18 +12:00
Paul Chote
4f3c9aa0af
Introduce Target.Type property.
2013-08-11 22:23:52 +12:00
Paul Chote
1ae2e55448
Remove obsolete PPos functions from Target.
2013-08-01 20:18:44 +12:00
Paul Chote
ac3f63b59c
Remove IHasLocation lookup from Target.
2013-07-21 17:31:00 +12:00
Paul Chote
f18994f800
Add WVec.HorizontalLengthSquared to simplify range checks.
2013-07-21 17:30:58 +12:00
Matthias Mailänder
9a6e7f749b
Merge pull request #3545 from pchote/infantry-range-fix
...
Infantry range fix
2013-07-11 11:45:15 -07:00
Paul Chote
045eb12388
Fix an integer overflow in Target.IsInRange.
2013-07-11 19:59:06 +12:00
Paul Chote
9b9952dcdf
Change ITargetable TargetableCells -> TargetablePositions.
2013-07-10 19:09:28 +12:00
Paul Chote
4b1323ada5
Target cleanup.
2013-07-08 21:52:28 +12:00
Paul Chote
89fd889cf4
Convert Target positions to world coords.
2013-07-08 21:52:28 +12:00
Paul Chote
399aac7e0f
Extend Target with world-coordinate range checks.
2013-07-06 19:12:26 +12:00
Chris Forbes
ae809ce39f
Use actor/target generations to invalidate targets on ownership change
2013-06-13 09:44:50 +12:00
Chris Forbes
5bc47f4834
Add generation counting to Actor and Target
...
This allows us to invalidate targets based on arbitrary conditions,
just by bumping the actor's generation number.
The next patches will use this.
2013-06-13 09:44:13 +12:00
Chris Forbes
085e29d22b
dead things are no longer valid targets
2012-09-16 11:24:36 +12:00
James Dunne
9c49143534
New types for cell and pixel coordinate position/vectors.
2012-06-21 15:36:59 -05:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
alzeih
255bac6aff
QueuedActivity's Insert is broken
2011-04-16 12:50:13 +12:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Chris Forbes
0c4bf5b2b3
split Target out into its own file
2011-01-30 21:47:04 +13:00