Commit Graph

357 Commits

Author SHA1 Message Date
Michael Bayne 6c0f497eef Use new ChatDisplay interface.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@107 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-10 21:48:51 +00:00
Ray Greenwell 2717fd3b24 Allow tables to be started (by the creator) when there are at
least the minimum players present.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@106 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-06 02:13:20 +00:00
Ray Greenwell 3caec3d8bc New method sig to match auto-generated stuff
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@105 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-06 01:52:17 +00:00
Michael Bayne 0f313b908a Regenerated with proper InvocationService.InvocationListener handling.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@104 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-06 01:49:08 +00:00
Ray Greenwell 7e3e8b981d Regenerated more actionscript service business.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@103 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-06 01:40:52 +00:00
Michael Bayne 77e22d65fc Some ActionScript conversion updates.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@102 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-06 00:35:00 +00:00
Michael Bayne 469e15e58e ActionScript versions of the Card stuff and Zone stuff. The Card stuff is
non-trivial and shouldn't entirely be trusted until it's actually used for
something.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@101 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-06 00:22:41 +00:00
Michael Bayne 2b05717226 Added ActionScript wiry uppy to genservice and a genascript task (though that
one is a bit limited at the moment). 


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@100 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-06 00:21:33 +00:00
Michael Bayne 1ad2584a17 Rebuilt various bits using the code generator. Annotated some Java sources
along the way.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@99 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-05 21:00:38 +00:00
Ray Greenwell 0ecfaac648 Added EZGame.getPlayerCount().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@98 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-05 01:45:16 +00:00
Michael Bayne cdbc9dcfb0 Import Hashable, add needed override.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@97 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-05 01:03:58 +00:00
Michael Bayne 451218a1a4 Updated using the code generator.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@96 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-05 00:47:20 +00:00
Michael Bayne a8fa272219 I justed checked this in in the other order, but somehow it insists on coming
out in this order now. This should not be non-deterministic. Reflection should
give me the methods in the order they are declared in the Java class so I don't
know what the major malfunction is here, but if it keeps up I'm going to
fucking alphabetize them and be done with it.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@95 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-05 00:37:35 +00:00
Michael Bayne b96d28cd1a Overwrote with generated versions (which are the same but in different orders).
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@94 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-05 00:32:20 +00:00
Ray Greenwell 6f9136d109 A few comments.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@93 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-05 00:30:15 +00:00
Michael Bayne 8b8a8120c2 Added some ActionScript annotations.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@92 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-05 00:16:25 +00:00
Ray Greenwell 910bb8be5b We should be able to pass ByteArrays around using the EZGame kit.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@91 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-04 23:32:17 +00:00
Michael Bayne 0767b42f37 Starting to rebuild with the ActionScript generator.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@90 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-04 21:26:04 +00:00
Michael Bayne 022f77a08b We'll be needing a proper controller.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@89 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-04 21:10:22 +00:00
Michael Bayne 51281a9d49 Let's just call clearOccupant() clearOccupantByOid() to avoid differences
between the Java and ActionScript version since ActionScript doesn't support
method overloading. We only have to observe this limitation in Streamable
classes.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@88 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-04 21:10:00 +00:00
Michael Bayne d896041553 Regenerated with updated templates.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@87 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-04 20:48:15 +00:00
Michael Bayne 5c1ac0f17d This is now defined in our superclass.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@86 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-04 03:18:01 +00:00
Ray Greenwell 1459306393 We need to send the tick out with a different message identifier
because otherwise the EZGameController will try to unmarshall the value.
The marshalling/unmarshalling is purely clientside, the server doesn't
understand how to do it, so it must dispatch a different event that just
contains a nice normal integer.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@85 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-02 21:11:10 +00:00
Ray Greenwell f48a48436d Regeneration of generated files.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@84 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-02 07:46:47 +00:00
Ray Greenwell a32f71bcda Let's name the method the way gendobj wants to.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@83 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-02 07:43:48 +00:00
Ray Greenwell 6472cf6f80 Added tick services to EZGame.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@82 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-02 07:39:31 +00:00
Mike Thomas a82fc55fa4 We don't want to force a restart if we're not supposed to, but we really don't want to veto it either. This could end up on the penders with the very thing we're waiting for, at which point vetoing that game restart would be bad and result in the puzzle not starting up.
Hopefully this'll fix yohoho's problem with the puzzles sometimes not restarting after stars are filled.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@81 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-29 18:28:59 +00:00
Ray Greenwell 7fd42fc729 Trashed GameService, use the new manager caller.
(This was changed in Java a few weeks back.)


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@80 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-27 23:57:48 +00:00
Ray Greenwell 33031417aa Set the snap interval, we wouldn't want to start a game with only
a fractional portion of one player!


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@79 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-27 23:57:05 +00:00
Ray Greenwell 2f8a14bdb8 Use a library method to check equality with possible nulls.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@78 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-26 02:38:19 +00:00
Ray Greenwell 4364576283 Streaming error found.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@77 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-26 00:51:54 +00:00
Michael Bayne d673b120be We need not to define createPlaceObject() so that backwards compatibility is
preserved with old games that only override getPlaceObjectClass(). Nothing
should be using PuzzleObject directly anyway.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@76 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-25 05:22:55 +00:00
Michael Bayne b0d148f107 Allow "draw" text to be provided as well. Also nixed the green because it was
really ugly...


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@75 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-25 04:06:35 +00:00
Mike Thomas 6611e60c1c We cannot check this here - the cluster is guaranteed to be size == 0 on the first insertion since we can't have called addBody until the constructor finishes. It used to be in objectAvailable which worked because it happened after the addBody calls were allowed to happen.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@74 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-19 20:56:20 +00:00
Ray Greenwell 8647002b71 Use an observer list.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@73 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-18 21:43:18 +00:00
Ray Greenwell 62dc95dbf9 Re-set the position in the byte array so that we can read from it using the
IDataInput methods.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@72 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-18 21:42:43 +00:00
Ray Greenwell 854986f4fc Commented out upstream methods for classes that will never use them.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@71 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-11 20:19:25 +00:00
Ray Greenwell cbdc73381c Removed some code that only needs to be on the server-side.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@70 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-07 21:38:02 +00:00
Ray Greenwell f2dc1b2269 Whoops, we've got to manually clone these fields.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@69 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-06 22:02:11 +00:00
Ray Greenwell 8703f5b0a8 Don't allow scene resolution to continue if the updates couldn't load.
They *are* just updates, but if it's ok for them to not load then a
game-specific scene repository needs to make that decision and just
return a blank update list rather than throwing an exception.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@68 c613c5cb-e716-0410-b11b-feb51c14d237
2006-09-01 21:07:27 +00:00
Ray Greenwell b1ae928811 Added a note explaining the difference between an ideal implementation and
the one we have now.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@67 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-28 22:30:46 +00:00
Ray Greenwell ba1d173a30 Use varargs to make construction plainer.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@66 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-28 22:26:17 +00:00
Ray Greenwell 4b9ec23221 - Use samskivert Predicate.
- Type safety.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@65 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-28 18:53:03 +00:00
Ray Greenwell 37b60db7a7 Let's use our protected _index instead of going through the accessor.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@64 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-25 01:58:41 +00:00
Ray Greenwell ebcaedeb5a Ez game stuff, javafied.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@63 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-25 01:58:11 +00:00
Ray Greenwell 64550318e9 A little type safety.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@62 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-25 01:57:38 +00:00
Mark Johnson 3182d9d7a9 Let's make sure these compile
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@61 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-25 00:52:45 +00:00
Michael Bayne aad235c7f2 Nixed GameService as it can be more simply implemented with the new dynamically
dispatched message event system. Rearranged the methods in GameManager into
some semblance of order.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@60 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-24 17:37:25 +00:00
Michael Bayne e03ffd02bc To preserve backwards compatibility, GameManager cannot define
createPlaceObject() because it needs to fall back to PlaceManager's
createPlaceObject() which calls getPlaceObjectClass() which all GG games
currently use.

It doesn't really make sense for GameManager to implement that method anyway
because no one will ever just use a GameObject, they'll need some sort of
derivation if they want to have any game state at all.

Really that method should be abstract in PlaceManager and GameManager but I'm
not sure we could change that now without breaking things (certainly we
couldn't preserve backwards compability which renders the idea moot anyway).


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@59 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-24 01:05:18 +00:00
Michael Bayne 86e594ed5e I swear I got all of these. This should really be the last one. :)
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@58 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-24 00:47:51 +00:00