Pavlos Touboulidis
df0d1360dd
Give PerfTimer the ability to write only slow operations to the log
...
This is useful to ignore fast operations that just spam the log.
The class had to be reworked because it couldn't properly handle cases
where all of a node's children where below the threshold.
Also changed DoTimed() and RunActivity() to use PerfTimer.
2014-05-22 03:40:36 +03:00
Matthias Mailänder
187362e80e
rename OpenRA.Support.Random aka XRandom to MersenneTwister
2014-05-18 21:53:21 +02:00
Pavlos Touboulidis
63ec6d60e7
Refactoring to remove static Rules & SequenceProvider
2014-05-17 14:32:03 +03:00
Pavlos Touboulidis
c28faffa45
Remove custom Stopwatch wrapper
...
Remove the redirection (that doesn't offer any new functionality)
and replace it with the familiar System.Diagnostics.Stopwatch.
2014-04-26 23:58:18 +03:00
Pavlos Touboulidis
035834978d
Make Stopwatch.ElapsedTime() a property and TimeSpan
2014-04-23 00:56:07 +03:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Curtis Shmyr
6ced7b274c
Chronotank teleporation by holding SHIFT or ALT and issuing a move order
2014-03-22 00:13:24 -06:00
Matthias Mailänder
7d19e25627
don't crash on empty orders
2013-12-30 08:44:14 +01:00
ScottNZ
1394c1dcee
Remove some misc redundancies
2013-11-12 19:39:39 +13:00
Paul Chote
d7effe71da
Add squad and quantisation support to AirstrikePower.
2013-11-01 17:45:21 +13:00
Paul Chote
212f07f890
Add a helper for finding the map edge in a given direction.
2013-10-31 21:29:50 +13:00
Paul Chote
3ae75362bb
Remove WorldUtils.FindFrozenActorsAtMouse.
2013-10-05 21:01:22 +13:00
Paul Chote
0dc50c65f5
Remove unnecessary int2 -> PPos -> int2 conversions.
2013-09-27 15:41:32 +12:00
Paul Chote
3f8d75a1ac
Remove SpatialBins.
2013-09-27 15:36:51 +12:00
Paul Chote
dfd51c0caa
Introduce ScreenMap trait for caching screen-coord queries.
2013-09-27 15:36:25 +12:00
Paul Chote
eef941fd42
Track per-player frozen actors.
2013-08-12 21:34:18 +12:00
Paul Chote
bf9c737a11
Remove obsolete Gauss1D/Gauss2D functions.
2013-08-01 20:18:42 +12:00
ScottNZ
dc84acc300
Add an Unload voice for when a unit is unloading.
2013-07-22 22:19:37 +12:00
Paul Chote
27f04c1b78
Rename FindUnits -> FindActorsInBox.
2013-07-20 15:34:28 +12:00
Paul Chote
37c02fea79
Remove PPos overload of FindUnits.
2013-07-20 15:34:27 +12:00
Paul Chote
800acdbdf2
Rename FindUnitsInCircle -> FindActorsInCircle.
2013-07-20 15:34:27 +12:00
Paul Chote
e6865c5996
Remove PPos overload of FindUnitsInCircle.
2013-07-20 15:34:27 +12:00
Paul Chote
39d2095e54
Remove PPos overload of ClosestTo.
2013-07-20 15:34:27 +12:00
Paul Chote
1dfc4837d4
Add some world-coordinate helpers.
2013-07-20 15:34:26 +12:00
Paul Chote
eec986d93d
Add world coords overload of FindUnitsInCircle.
2013-07-06 19:12:25 +12:00
Paul Chote
c428cad70c
Refactor per-player shrouds & fix shellmap shroud.
2013-04-10 19:36:03 +12:00
Matthias Mailänder
47075e1cd0
generate random numbers as floats
...
as they get converted from double before use anyway
2013-03-01 10:53:41 +01:00
Kenny
f41fb32d60
Introducing per-player shrouds.
...
- Each player has their own shroud and their visibility does not extend outside of the shroud.
- Units and buildings can no longer target other units outside of their visibility. Buildings can still be targetted if they have been explored.
- GPS will provide visibility in the fog-of-war.
- Spies that infiltrate radar domes will gain their victim's exploration and reset it on all clients (if the victim does not have GPS)
2012-12-13 15:16:56 -08:00
Chris Forbes
b73a0a9720
fix off-by-one in new tile query
2012-10-14 10:07:08 +13:00
Chris Forbes
699838332d
Order results from FindTilesInCircle by distance
2012-10-13 12:55:51 +13:00
Matthias Mailänder
7a578a0679
notifications (formerly EVAalerts) centralized and race specific
...
outsourced into notifications.yaml
triggered with PlayNotification(...)
(v2: less redundant code for PlayVoice/Notifications)
added harvester under attack and battlecontrol terminated
2012-07-01 14:39:30 +12:00
James Dunne
9c49143534
New types for cell and pixel coordinate position/vectors.
2012-06-21 15:36:59 -05:00
Chris Forbes
dd88a1269a
move MakeArray to FileFormats.Exts
2011-12-27 14:52:11 +13:00
Chris Forbes
aef3ff6e65
remove some redundant SelectableInfo lookups
2011-10-23 11:49:38 +13:00
Chris Forbes
1e32014190
add CountryInfo.Selectable
2011-10-15 13:00:19 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
4e1c845303
add common version of AreMutualAllies to WorldUtils
2011-07-14 20:29:07 +12:00
Chris Forbes
c9c31345aa
fix broken indent in WorldUtils.cs
2011-07-14 20:29:07 +12:00
Chris Forbes
e44b965785
fixed #999 -- replace order/first[ordefault] with .ClosestTo(point)
2011-07-14 20:29:07 +12:00
Chris Forbes
9b3e6c5c4a
remove FP sillyness from FindUnits & friends
2011-05-22 20:38:52 +12:00
Chris Forbes
ccc245ded4
reintroduce Cached<T>; use for Actor.Bounds, Actor.ExtendedBounds, which replace Actor.GetBounds(bool)
2011-05-22 20:38:48 +12:00
Paul Chote
b0425aff3b
Renormalize line endings and fix copyright headers again.
2011-04-07 21:15:42 +12:00
Paul Chote
0d53346138
Fix bogus ClampToWorld behavior (allowed helicopters to fly outside map)
2011-03-19 21:01:14 +13:00
Chris Forbes
c3728ce674
blah
2011-03-12 22:33:25 +13:00
Chris Forbes
1e3f365cf2
move all the Game.Exts junk either down into FileFormats or into WorldUtils
2011-03-12 22:33:24 +13:00
Chris Forbes
65a54ba13a
add audio feedback to stop/scatter/deploy junk
2011-03-06 10:22:40 +13:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Paul Chote
73020a9419
Make binary info loading lazy
2011-02-11 21:50:11 +13:00
Paul Chote
2daeb45bfe
Fix a subtle bug with flying units in spatialbins. Fixes #489 .
2011-02-01 22:06:09 +13:00
Paul Chote
7c5c989eb2
Introduce World.LocalShroud. Breaks targeting stealth tanks. Probably breaks FrozenUnderFog.
2010-11-27 11:20:04 +13:00