Commit Graph

67 Commits

Author SHA1 Message Date
Andrzej Kapolka 9695c3ef3a Moved default field deserialization code into separate method to allow
subclasses to read additional fields.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@142 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-09 21:23:38 +00:00
Ray Greenwell 6d2ecb8f67 Don't generate a TypeError if we're not in an EZGame environment.
It may be well worth adding an isConnected() method that can be used to test
whether the EZGame stuff is connected or whether we should just show
demo graphics or something.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@141 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-08 23:37:11 +00:00
Ray Greenwell 08d317b329 Added rescued documentation from the old EZGame class.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@140 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-06 01:58:43 +00:00
Ray Greenwell 1078ac796f Buildfix.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@139 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-06 01:57:17 +00:00
Ray Greenwell 00e2c45f01 Mostly kinda fixed up keyboard issues for EZGames.
They can add their keyboard listeners directly to the GameControl object
to receive global key events.

There are strange focus weirdnesses on the flex side- sometimes you have
focus with no focus highlight and sometimes you don't have focus and you
do have the highlight. Punting, rather than spending more hours on this.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@138 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-06 01:44:05 +00:00
Ray Greenwell 3b08974f73 Revamped EZGame to work over the security boundary.
Now, instead of implementing "Game" and having the EZGame object assigned
to you, you create it yourself using your top-level component.

You must register listeners manually, and keyboard focus is currently an
issue that I'm working on.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@137 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-05 18:59:08 +00:00
Ray Greenwell bbfcf85775 Remove giant obnoxious game-blocking chat display.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@134 c613c5cb-e716-0410-b11b-feb51c14d237
2006-12-08 03:43:37 +00:00
Ray Greenwell 4536556ba9 Removed debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@133 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-30 23:42:27 +00:00
Ray Greenwell 52febf265b Allow the TableManager to be configured to create subclasses of Table.
Commented out unneeded flash client code in Table.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@131 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-17 23:24:14 +00:00
Ray Greenwell ccb530d8c7 Cookie fixes.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@124 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-15 20:47:57 +00:00
Ray Greenwell cff4238b3e Updates to EZGame to allow games to store 'user cookies'.
Then intention is that other games besides EZGame may use this as well,
so it's semi-separated, but for now it's part of EZGame.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@123 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-15 03:01:49 +00:00
Ray Greenwell a4ae0dd2dc Regenerated with new templates.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@122 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-15 02:56:12 +00:00
Ray Greenwell 515f2d6be5 Implemented Collections.shuffle().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@118 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-01 03:56:12 +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 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
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 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 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
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
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 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 54f0316691 Removed debug statement.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@56 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-24 00:20:48 +00:00
Ray Greenwell a465884a84 Created listener interfaces that will automatically be registered
if implemented by something on the display hierarchy.
You may also implement them in utility classes and register and unregister
event listening by hand.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@55 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-24 00:15:49 +00:00
Ray Greenwell b118e302a3 Brought up to date and made easier to subclass.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@54 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-24 00:14:15 +00:00
Ray Greenwell a993e2ec46 Fixed the toString() output a bit.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@52 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-23 21:25:59 +00:00
Ray Greenwell 77c51c95d8 For now, the EZGameConfig contains a String called configData that
simply contains the game url or classname.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@51 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-23 21:17:25 +00:00
Ray Greenwell 35f6bc5b90 Renamed "GameObject" to "EZGame". I'm not super happy with the name,
so not everything is converted. I'll revisit once I've decided what to do.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@49 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-23 17:37:26 +00:00
Ray Greenwell 70b0d759c0 Moved the serverless game stuff out of msoy and back into the vilya library.
We'll be using this in game gardens, at least.
Note that the actionscript side currently doesn't compile because of
limitations in building a .swc file, but that'll be fixed soon.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@47 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-23 02:28:36 +00:00
Ray Greenwell a90d7e655b Compilation fixes: these classes weren't referenced before and so weren't
compiling, but I'm playing around with building .swc libraries to cut
down on the build time of the client.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@46 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-22 20:48:47 +00:00
Ray Greenwell 5331407313 Match change to ConfirmAdapter.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@45 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-19 01:05:32 +00:00