Commit Graph

1014 Commits

Author SHA1 Message Date
Michael Bayne faa237b85d Use an ArrayIntSet instead of a HashSet<Integer> as it's way more memory
efficient (and almost certainly faster as well for sets of this size).

Modified add() to properly mark the stat as modified when it changes.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@668 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-18 13:21:15 +00:00
Michael Bayne 74d08d334f Use setModified() instead of modifying our value directly. That way it can be
overridden to intercept such things if necessary (it's not necesary in this
case, we're just trying to set a good example for future programmers).


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@667 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-18 13:15:38 +00:00
Michael Bayne d65967c57e Added class documentation.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@666 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-18 12:37:16 +00:00
Michael Bayne 4df7526d1a No need to use 'this.' to call methods in the same object. Converted
ByteArrayOutputStream to a byte[] once and use that in the three places it's
needed. Some other small formatting tweaks.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@665 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-18 12:34:21 +00:00
Tom Conkling 701eea2ad2 clarity
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@664 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-17 23:23:21 +00:00
Tom Conkling 728f0a6519 DepotRepository.updatePartial() expects column names, not ColumnExps
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@663 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-17 23:12:06 +00:00
Tom Conkling 6d1e687709 not sure where those extra *s came from
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@662 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-17 20:49:43 +00:00
Tom Conkling 0e74ed2842 Whirled's Passport system is using player stats to award "badges," and a few changes to stats are necessary to allow mutliple clients to safely modify stats simultaneously:
- add a modCount field to Stat to assist detecting if a stat has been updated in the repository since being loaded into memory
- StatRepository.updateStat() is rewritten to support optionally failing if modCount has been updated (existing Stat code should not be affected by this change)
- added StatRepository.loadStat() and StatRepository.updateStatIfCurrent() to support loadingand updating of single stats.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@661 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-17 20:40:36 +00:00
Tom Conkling cf1779e8b8 ray points out that IntSetStat's size can also, of course, be stored in a byte
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@660 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-16 20:47:25 +00:00
Tom Conkling 8f12cff519 per mdb, IntSetStat will store a maximum of 255 entries
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@659 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-16 20:27:17 +00:00
Tom Conkling 43df45be1a IntStatSet fixes
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@658 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-15 20:57:01 +00:00
Tom Conkling 007bdc91c8 created IntSetStat
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@657 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-15 20:26:26 +00:00
Dave Hoover d00c21ae1a Rerun generators.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@656 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-10 18:39:53 +00:00
Michael Bayne 7b945dd674 Type our delegate ops instead of restricting our delegates.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@655 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-10 13:37:10 +00:00
Michael Bayne 17ffca41e7 Enforce the use of Game{Controller|Manager}Delegates where needed.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@654 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-10 13:19:52 +00:00
Charlie Groves fa93b7ccf9 Don't include the scene panel diagram in the whirled jar
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@652 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-07 21:32:23 +00:00
Dave Hoover 0615b7b2f1 No really, I'm pretty sure we want the AIs to tick more than once per game.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@651 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-02 00:09:42 +00:00
Charlie Groves fc2dd9a591 If the config coming in to the configurator is causing the interface to hork, try with an empty one in the hopes that the brokenness can be solved with a fresh start.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@647 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-01 02:13:30 +00:00
Michael Bayne 40ffa60f50 Inject depends into Tournies and ToureyManager.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@646 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-30 13:30:17 +00:00
Michael Bayne c3162107cf Make it easy for derived classes to start and stop the AI ticker if they need
to outside the normal circumstances.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@645 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 15:30:10 +00:00
Michael Bayne 037be2d16c Removed implicit depends; nixed grouping of AI and game manager ticks into a
single interval as that caused problems (which Charlie had to work around) and
added unnecessary complexity and indirection. There are not so many games and
so many tickers that we need to second guess the efficiency of Interval.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@644 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 14:25:55 +00:00
Michael Bayne 026a6bb128 Take our depends explicitly.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@643 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 14:20:17 +00:00
Michael Bayne 00a0a85ea8 These are no longer providerless.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@642 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 14:19:42 +00:00
Michael Bayne 105ec55f44 Created a SpotSceneRegistry, have that implement SpotService instead of using a
concrete provider. Other implicit depends removal and cleanup.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@641 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 14:19:21 +00:00
Michael Bayne d3b227a13b Have the ZoneRegistry implement ZoneService instead of using a concrete
provider. Other injection and cleanup.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@640 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 14:18:10 +00:00
Michael Bayne 10bdbaa2f3 Inject the SceneRegistry; nix implicit depends.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@639 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 14:17:12 +00:00
Michael Bayne d2841a3976 Clean up service registry.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@638 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 14:15:26 +00:00
Michael Bayne 442847c292 Inject depends, use the locator to find bodies.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@637 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 14:15:07 +00:00
Michael Bayne 0aac6b230d Implicit depends removal.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@636 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 14:13:36 +00:00
Michael Bayne 5317113b01 Widening, implicit depends removal.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@635 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 14:13:12 +00:00
Michael Bayne 8f4f4a3e53 Depends injection and other cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@634 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 14:12:30 +00:00
Michael Bayne 925a5aa982 Provide TableManager with its dependencies.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@633 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 13:12:35 +00:00
Michael Bayne 4e3f973f2d Let's put those in a more sensible order.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@632 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 12:58:54 +00:00
Michael Bayne 9b3b3c0e5a Remove implicit omgr, invmgr and plreg dependencies.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@631 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 12:57:20 +00:00
Michael Bayne 625cf7fa75 Eliminate implicit invoker dependency. Some Lists, Maps, etc.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@630 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 12:54:50 +00:00
Michael Bayne c63691ef0e Inject depends.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@629 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 12:47:08 +00:00
Michael Bayne 8cd2bf8efd Regened services.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@628 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-29 12:46:26 +00:00
Charlie Groves 5cc2e4b3f3 Remove games from the ticker if their AI goes rogue so one game blowing up doesn't cause all games to stop ticking
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@627 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-16 06:21:52 +00:00
Charlie Groves 5c4a033cdc Driveby modernization
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@626 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-15 06:16:38 +00:00
Jamie Doornbos 1eed28bba5 We don't need these file lists and groups anymore
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@625 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-14 00:25:13 +00:00
Par Winzell 7e2110eaf5 Be less promiscuous about swc's here too.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@624 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-13 00:51:46 +00:00
Par Winzell 331492a9cd Stop building ABC stuff. This can (almost) all be ripped out if we're successful in our transition.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@623 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-13 00:08:03 +00:00
Par Winzell f5f5a625d2 This has been misnamed for quite a while and nobody ever noticed... which presumably means this is a rather unimportant fix.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@622 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-10 15:47:50 +00:00
Charlie Groves e8b18bc52f Narya exports guice now
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@621 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-09 18:04:14 +00:00
Mike Thomas d9884d7646 Tell eclipse about guicey jars.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@620 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-09 17:33:54 +00:00
Michael Bayne 36c2cc8289 Updated ClientFactory implementations. Use new PlaceManagerDelegate members.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@619 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-08 20:24:30 +00:00
Michael Bayne e3dc42daab Use new LocationManager. Some injection in SimulationManager.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@618 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-08 17:18:55 +00:00
Michael Bayne d18412aa4c Make the StatRepository injectable.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@617 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-08 15:46:06 +00:00
Michael Bayne cf857dedaa Allow the RatingRepository to be injected.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@616 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-08 15:13:28 +00:00
Michael Bayne b6bf735bba Provide a Module for the StageServer.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@615 c613c5cb-e716-0410-b11b-feb51c14d237
2008-06-08 10:49:49 +00:00