Commit Graph

129 Commits

Author SHA1 Message Date
Ray Greenwell f347723abe Changes stemming from a changed MediaContainer.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@148 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-18 00:37:54 +00:00
Ray Greenwell 29bec533d8 Documented the events currently being dispatched.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@147 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-12 23:10:30 +00:00
Ray Greenwell ae26fb8bcd Fill out PropertySetEvent's toString() for easier debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@146 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-12 19:15:46 +00:00
Ray Greenwell ba5b931adc Fixed some wee bugs:
calling setProperty() with an array was encoding it as byte[][], even when
an index was passed in.
Messages of arrays were also encoding as byte[][] for the server, even though
the server doesn't care about messages.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@145 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-12 19:14:22 +00:00
Ray Greenwell a6de2c9bc6 Added isConnected().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@144 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-10 19:51:49 +00:00
Andrzej Kapolka ee8f636d7e Allow subclasses to create custom backends.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@143 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-10 06:16:37 +00:00
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
Dave Hoover 86a879a725 Type safety
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@136 c613c5cb-e716-0410-b11b-feb51c14d237
2006-12-27 07:55:38 +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
Michael Bayne e60e58c8b8 Use where, improved warning when we receive a playerReady() from a non-player.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@132 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-28 18:27:58 +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
Michael Bayne 0fb8e4e693 Steer newbies away from stupid decisions.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@127 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-15 22:41:27 +00:00
Ray Greenwell 0b8b31aaa6 Prevent server spew when multiple EZGame clients attempt to end the game.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@126 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-15 21:03:51 +00:00
Ray Greenwell 3dd3c857fa Fixed SQL for saving cookies. Handy syntax, that
"insert ... on duplicate key" stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@125 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-15 20:48:49 +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 aefd823e72 Explicitly import com.samskivert.swing things, as jdk1.6 contains
javax.swing.GroupLayout.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@120 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-08 00:21:26 +00:00
Michael Bayne d231214e59 Make the logging optional.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@119 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-03 00:15:46 +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 f8ddf4d7c9 Restored correct behavior in a non-fallthrough way.
(And personally, I think falling-through is fine if documented. Maybe we
need a @FallThrough annotation so that the compiler can be our best friend.)


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@117 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-26 23:40:48 +00:00
Michael Bayne 16f070f69c Falling through is a dangerous pattern, let's not do it.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@116 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-26 23:11:56 +00:00
Andrzej Kapolka f81adbda02 Do we really need a stack trace here? I don't think so.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@110 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-13 01:56:55 +00:00
Andrzej Kapolka 45350177e1 Moved the Percentiler test over as well, added preambles.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@109 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-12 22:52:17 +00:00
Andrzej Kapolka c978fe70e8 Moved Percentiler to Vilya so that we can use it in Bang.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@108 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-12 22:42:45 +00:00
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 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