Michael Bayne
299d63fd14
Always suppress unchecked warnings on an individual declaration plus
...
assignment, not an entire method. Eclipse is helpfully stupid about this, but
we'll just have to use our big brains and help it out.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@701 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-04 12:56:08 +00:00
Michael Bayne
cf1972870e
Let's not build ActionScript interfaces for those services for which we don't
...
use them.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@699 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-01 14:44:46 +00:00
Michael Bayne
bb0d6c5ba4
More code hygiene. Need to do some fiddling to make dispatchers not generate
...
generics warnings when calling methods with generic types.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@698 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-01 14:40:54 +00:00
Michael Bayne
7708bc96a6
Type that DSet.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@697 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-01 11:22:40 +00:00
Par Winzell
117d9cb03f
Move PlayManager*.java from crowd.server to parlor.server.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@696 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-31 17:28:18 +00:00
Par Winzell
9ba443d432
Revert that.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@695 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-31 06:25:14 +00:00
Par Winzell
f3dff81492
Do the right thing, not the wrong thing. It's late...
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@694 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-31 06:20:32 +00:00
Par Winzell
23311ca4f7
Oops, the contract is to return playerId's occupant. I dunno, I have some doubts about all this...
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@693 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-31 06:15:27 +00:00
Par Winzell
a3232d645e
Basic implementation of the PlayManager interface.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@692 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-31 05:49:33 +00:00
Michael Bayne
aae3a0152a
Let the type system know that we know that we don't know what kind of
...
comparable we're dealing with.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@691 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-30 14:00:23 +00:00
Michael Bayne
18608763ea
Regenerated services and objects.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@690 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-30 13:56:07 +00:00
Tom Conkling
3ac87296a6
StatModifier is Streamable, so that we can send stat updates from the game server to the world server
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@689 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-30 01:16:42 +00:00
Tom Conkling
31d855837a
StatSet.updateStat -> StatSet.syncStat. syncStat() should be called after a stat has been successfully updated in the repository, to keep the in-memory version in sync with the repo changes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@688 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-30 00:58:36 +00:00
Dave Hoover
bcbe163a12
Prune unneeded imports, nuke some unneeded casts, rerun code generators.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@687 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-28 17:27:38 +00:00
Michael Bayne
eb935ecfab
Nixed unused variable references.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@686 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-26 22:04:34 +00:00
Tom Conkling
dd285192d9
missed one
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@685 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-25 22:52:37 +00:00
Tom Conkling
6e9a245db2
svn id keywords and Vilya preambles where appropriate
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@684 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-25 22:48:40 +00:00
Tom Conkling
6f8a1e0db0
- Created SetStat<T> generic type
...
- IntSetStat and StringSetStat extend SetStat
- consolidated SetStat-related functions in StatSet, and added StatSet.getSetStatSize()
- she sells SetStat StatSets by the seashore
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@683 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-25 22:48:13 +00:00
Tom Conkling
2a18ff5f02
switch on brain
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@682 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-25 21:01:07 +00:00
Tom Conkling
bc38d2dde9
added StatSet.updateStat(), which uses a StatModifier to do its business
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@681 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-25 20:55:14 +00:00
Nathan Curtis
41be22fdd6
MDB would prefer that we ignore these via .subversion/config, rather than svn:ignore.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@680 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-25 17:28:57 +00:00
Michael Bayne
32cec9c7d7
Blank line patrol.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@679 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-25 09:59:07 +00:00
Nathan Curtis
7ee6788a5f
Lets go ahead and svn:ignore the Flex Builder property files
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@678 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-24 21:54:54 +00:00
Tom Conkling
1683eab1b5
Create the somewhat confusingly named MaxValueIntStat -- there's already a MaxIntStat here, which tracks the maximum value that the stat has been incremented by; MaxValueIntStat tracks the maximum value that the stat has ever attained.
...
Maybe these two classes should be merged into one? I'm worried that might break other code that already relies on MaxIntStat. Brighter minds: please advise.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@677 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-24 21:19:20 +00:00
Tom Conkling
25a657d7c6
apparently we already have a StreamableArrayIntSet; use that instead.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@676 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-24 20:11:41 +00:00
Tom Conkling
3c3146d381
fix IntSetStat so that it streams properly. i'm not able to test this code on my machine, so nate will test momentarily and we'll roll back if there are any issues.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@675 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-24 19:49:13 +00:00
Nathan Curtis
08442682f8
Well, shit. MDB points out something I completely missed: these Flex Library Project files contain
...
an enumerated list of every class in the library. Since there are (as far as I know) only two
people currently using Flex Builder, and since these project files are easy to create and maintain
locally, lets not deal with keeping a versioned copy up to date every time a file is created,
removed or renamed.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@674 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-24 16:26:28 +00:00
Nathan Curtis
d0100b5e5d
Flex Builder project files for Vilya as a Flex Library. Depends on Narya and Nenya's Flex Builder
...
projects. Flex Builder projects don't seem to support exporting libs, or this could depend solely
on Nenya.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@673 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-23 20:45:18 +00:00
Michael Bayne
edaa96aef3
RatingManagerDelegate -> RatingDelegate (we're not a delegate of a
...
RatingManager, we're a GameManagerDelegate that handles ratings); inject our
dependencies.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@672 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-23 12:35:49 +00:00
Tom Conkling
ae8ec1e2ac
StatSet.addToSetStat, for IntSetStats
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@671 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-22 00:39:41 +00:00
Dave Hoover
624daadcd9
Nix unneeded imports, add @Overrides, remove content-free comments, and rerun code generators.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@670 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-18 19:02:08 +00:00
Michael Bayne
f30cb74ace
Create a notion of a StatModifier which encapsulates a change to a stat. Use
...
this to automatically retry colliding stat modifications in the repository.
We'll also use the StatModifier to package up and send the modification to the
server that is hosting a user's in-memory stats so that the same adjustment can
be made to those. As a result of this requirement, Stat.Type became
Serializable which means that Stat will probably also need to be serializable
because the pattern we've adopted for our Stat.Type implementationsn is for
them to contain a prototype Stat object which is cloned to create new stats.
Maybe we'll stick with that and make Stat serializable, or maybe we'll do
something else. Not sure yet.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@669 c613c5cb-e716-0410-b11b-feb51c14d237
2008-07-18 14:30:17 +00:00
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