Commit Graph

1851 Commits

Author SHA1 Message Date
Ray Greenwell b5e5f5f4e1 director audit: make sure things shut down well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1854 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-28 00:22:38 +00:00
Walter Korman 883f912a30 Added gameWillEnd(), and GameObject.winners that details the winners of
the game, as assigned by GameManager.assignWinners() when the game ends.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1853 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 23:54:32 +00:00
Walter Korman 556347c778 Clear things out when the client logs off.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1852 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 23:30:56 +00:00
Ray Greenwell c3743cd98c change to ChatDisplay.clear() method signature
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1851 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 22:34:43 +00:00
Ray Greenwell 811ccd0bf1 when the client logs off, forcibly clear all chat displays
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1850 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 22:34:11 +00:00
Ray Greenwell a3eb2e1b7a changed clear() -> clear(boolean force), if force is true,
ChatDisplays may not ignore the request to clear.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1849 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 22:33:42 +00:00
Michael Bayne 34e777c444 Debug log fiddle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1848 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 22:24:59 +00:00
Michael Bayne e166a3efff Debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1847 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 22:24:20 +00:00
Michael Bayne 31baef425a Director audit: make sure these guys clean up after themselves when the
client logs off.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1846 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 22:23:14 +00:00
Michael Bayne 7aa16f09e0 Removed obsolete comment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1845 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 22:19:21 +00:00
Walter Korman 2625d76084 Oh god, how did I accidentally leave this in here? Removed verbose
logging.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1844 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 21:58:18 +00:00
Michael Bayne 6781e1da56 Oh the price we pay for wanting to be able to logoff and log back on
without exiting the client.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1843 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 21:24:58 +00:00
Michael Bayne 14a313486b Documentation repairs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1842 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 18:49:51 +00:00
Walter Korman 4b97ff9916 Fixed typo in javadoc.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1841 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 02:05:26 +00:00
Walter Korman a5576eed88 Factored out code to update a player's connection status to make it
available for use by derived classes, and because it's cleaner this way.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1840 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 02:04:50 +00:00
Walter Korman 657a8a6f03 Initial version.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1839 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 02:03:40 +00:00
Walter Korman 28a3cde90b Use an ObserverList.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1838 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 02:03:13 +00:00
Michael Bayne 76ba2840c4 Provide access to the values that existed previous to the application of
events that change values.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1837 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 01:33:43 +00:00
Michael Bayne bb489caf39 New OccupantObserver signature.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1836 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 01:25:18 +00:00
Michael Bayne 561f25bb18 Provide the previous occupant info record when reporting an update so that
observers can determine which fields have changed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1835 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 01:25:08 +00:00
Michael Bayne c3eb45bbed Remove crack pipe; insert correct code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1834 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-26 23:21:19 +00:00
Michael Bayne 2c2a9f819d Documented SafeScrollPane requirement.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1833 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-26 20:31:15 +00:00
Michael Bayne 868ce6f471 Added method for obtaining the sign of a value.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1832 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-26 20:31:06 +00:00
Walter Korman fec48b8586 Track a user's connection status in their occupant info so that we can
react to player disconnection, idle (implementation still pending), and
reconnection appropriately.  Added PlaceManager.bodyUpdated().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1831 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-26 02:40:30 +00:00
Walter Korman ad344e05e1 Fixed typo in javadoc.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1830 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-26 02:37:59 +00:00
Michael Bayne 286892639e Removed the vestigal return as it confused the comment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1829 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-25 21:15:27 +00:00
Ray Greenwell f7b462b9c2 added MuteObserver interface.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1828 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-25 20:32:41 +00:00
Michael Bayne fd44620d57 Incorporate a hash of the resource URL into the cache directory so that
bundles from one client installation don't overwrite bundles from another.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1827 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-25 17:21:00 +00:00
Walter Korman beca9850aa Return null in getImageSource() if the specified bundle can't be found, as
was documented, so that callers can do things like fall back to trying the
classpath rather than having the previously-thrown IOException circumvent
the rest of their antics.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1826 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-25 00:44:16 +00:00
Michael Bayne dd912c3d7d Need to use getPlayerSlots() not getPlayerCount().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1825 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-24 19:05:46 +00:00
Michael Bayne 58d33880b1 Added getPlayerSlots() which returns the maximum number of players allowed
in the game and which doesn't choke if called before we have a game
object. Modified code to use it where appropriate.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1824 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-24 18:51:41 +00:00
Walter Korman d46423ea7b Added addPlayerAt(). Don't send gameReady notification to players when
added since it's (at least currently) assumed that the puzzle has already
been created and the player is fully present in the puzzle room.
Sanity-check to disallow adding a player to a game more than once.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1823 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-24 07:01:08 +00:00
Walter Korman ea6733ba20 Log image dimensions when given a badly sized image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1822 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-22 02:05:42 +00:00
Walter Korman 2a26c76006 Deal gracefully with images that we can't usefully tile (which includes
the default 1x1 transparent image we're given if the image manager failed
to load an image successfully.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1821 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-22 02:02:40 +00:00
Michael Bayne a0e9044e93 Config clean up and unification. The base servers were doing more than
they needed to and when all that was stripped away, they didn't really
need their own config files.

Now what little config they need is provided by the users of these basic
services so that said users can make their own decisions about where to
obtain configuration information.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1820 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-21 20:56:21 +00:00
Michael Bayne 2b345cb8cf Notes!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1819 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-21 20:54:01 +00:00
Michael Bayne 7ce6ca340e Clear out clobj when we're logged off; keep cloid up to date; don't claim
we're logged on until we're fully logged on (meaning we have our clobj
reference).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1818 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-21 18:04:56 +00:00
Walter Korman 5d7123caab Deal gracefully with having no component classes or actions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1817 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-18 23:47:27 +00:00
Ray Greenwell dda1039dc0 Created changeHoverObject() to consolidate setting a new hover object and
do the required changes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1816 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-18 19:44:00 +00:00
Ray Greenwell c69bfc2ca3 use our LRU cache, report stats in debug.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1815 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-18 01:32:23 +00:00
Michael Bayne 3ee6e84676 Now supports loading icons from resource bundles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1814 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-17 17:43:21 +00:00
Michael Bayne 3ec6f9301c Added a method for creating a uniform tileset that loads its source image
from a resource bundle.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1813 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-17 17:42:53 +00:00
Michael Bayne 8662f12241 Further support for loading images from resource bundles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1812 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-17 17:42:20 +00:00
Ray Greenwell c1a56db9c4 added hoverObjectChanged(), does nothing in this class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1811 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-17 02:12:42 +00:00
Ray Greenwell 366111dbfe small optimizations to avoid System.arraycopy()
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1810 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-17 02:11:58 +00:00
Walter Korman efe514eb3b Not to use a double-semicolon.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1809 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-16 23:23:32 +00:00
Ray Greenwell 619ceb03af removed getTightObjectBounds(), unused and possibly buggy.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1808 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-16 20:39:46 +00:00
Walter Korman 78b0d1eae9 Added loadImage() variant that allows specifying the resource set from
which the image is to be loaded.  Removed unused imports.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1807 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-16 15:57:12 +00:00
Ray Greenwell a5d00cb1ca - Added hook for adding additional objects to the scene other than those
provided by the DisplayMisoScene.
- If hover objects are SceneObjects, tell them when we start/stop hovering
  on them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1806 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-16 01:55:22 +00:00
Ray Greenwell 1c0f405121 added setHovered() so that a SceneObject can be told when it is being
hovered over, and can request to have it's object tile repainted.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1805 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-16 01:53:57 +00:00