Provide access to the x and y origin offsets.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1896 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-11-05 03:38:59 +00:00
parent 260c304fbe
commit 118f6b2363
@@ -1,5 +1,5 @@
//
// $Id: Sprite.java,v 1.51 2002/10/08 21:03:37 ray Exp $
// $Id: Sprite.java,v 1.52 2002/11/05 03:38:59 mdb Exp $
package com.threerings.media.sprite;
@@ -55,6 +55,24 @@ public abstract class Sprite extends AbstractMedia
return _oy;
}
/**
* Returns the offset to the sprite's origin from the upper-left of
* the sprite's image.
*/
public int getXOffset ()
{
return _oxoff;
}
/**
* Returns the offset to the sprite's origin from the upper-left of
* the sprite's image.
*/
public int getYOffset ()
{
return _oyoff;
}
/**
* Returns the sprite's width in pixels.
*/