Mike Thomas
0a5a13302c
Allow the clearing of the tile manager's cache.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@110 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-18 23:01:47 +00:00
Mike Thomas
71259f2ceb
Protect from an NPE if we find no graphics yet at sprite initialization time.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@106 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-20 20:05:09 +00:00
Michael Bayne
b44864c506
Some fiddling to support a potential wacky project.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@104 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-19 21:45:43 +00:00
Mike Thomas
493e1f1a8b
New type of sprite that wraps an animation. This is useful for moving animations. It's also useful, thanks to some wackiness in the MediaPanel for making animations appear in appropriate places in the render order compared to sprites.
...
I'd really prefer to put this in the sprite package, but putting it here means I don't have to publicize the willStart/willFinish/didFinish functions on Animation. I'm open to suggestions for better solutions to that one...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@96 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-16 00:51:03 +00:00
Michael Bayne
23f305aa81
Make the first sentence not overlong so as to play nicely with javadoc.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@92 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 07:00:42 +00:00
Michael Bayne
20021d7eab
Fixed typo.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@91 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:59:48 +00:00
Michael Bayne
4ae22890bf
Use our surprisingly handy new method.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@90 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:58:04 +00:00
Michael Bayne
cd97adf00b
Track bounds changes for our underlying sprite in such a way that we dirty
...
things properly if they do. Simply stealing our target sprite's _bounds will
not result in the necessary calls to addDirtyRegion() if they change due to
calls to setLocation() on our (now unmanaged) target sprite.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@89 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:52:54 +00:00
Michael Bayne
7850123988
Factored some duplicated code into a shared method that can be used to easily
...
and efficiently dirty old and new bounds when our bounds change.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@88 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:51:41 +00:00
Michael Bayne
8286ef88c4
Patch to BobbleAnimation (which we don't seem to use anywhere) from nvanderh.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@87 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:25:23 +00:00
Michael Bayne
562b1f11ab
Patch from nvanderh: handle dirtying properly if our bounds change between
...
frames.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@86 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:21:33 +00:00
Mike Thomas
5fda18ef31
Add two features our multi-locale yohoho is going to need:
...
- Ability to set a locale prefix in which to search for locale-specific images.
- Ability to clear the image cache (we want to do this when we switch locales, otherwise we end up with wrong-language images cached.)
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@83 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-01 18:49:09 +00:00
Mike Thomas
20922a1cf1
Rather than getting the tile count from the raw image each time (as TileSet.getTileCount does for certain tilesets), keep a copy of the number of tiles we're counting.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@74 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-08 19:11:16 +00:00
Michael Bayne
24b2d86f64
It turns out that we can just let our normal RepaintManager stuff repaint the
...
applet. We don't need to do the same restore from back buffer stuff we do for a
ManagedJFrame.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@43 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-06 20:14:01 +00:00
Ray Greenwell
bb05bd3f3f
Use the samskivert Predicate.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@39 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-28 18:39:13 +00:00
Michael Bayne
8d67918087
Missed a spot.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@35 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-25 00:56:35 +00:00
Michael Bayne
9ed3f62af7
Some further FrameManager wrangling and a proper bridge for managed applets.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@32 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-25 00:34:18 +00:00
Andrzej Kapolka
f87f335ca7
Added the ability to render meshes in multiple passes with different
...
render states. Cleaned up some formatting.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@25 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-11 21:46:21 +00:00
Mark Johnson
5376be6a88
What's everyone's favourite kind of safety?
...
Type Safety!!
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@19 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-07-22 00:35:05 +00:00
Mark Johnson
6913e5a127
Created an ExtendedTraversalPred that can check if the movement from one
...
tile to another is traversable instead of just the destination being a
traversable tile
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@18 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-07-21 08:23:42 +00:00
Ray Greenwell
005043bf6c
Handle CloneNotSupportedException in a standard and most-correct way.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@17 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-07-13 18:08:03 +00:00
Michael Bayne
c2117ee86d
Behold, Nenya, Ring of Water and repository for our media and animation related
...
goodies, both Java 2D and LWJGL/JME 3D.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-06-23 18:07:28 +00:00