Add constructor that takes bounds. We love the bounds.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2438 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: Sprite.java,v 1.62 2003/01/18 20:45:23 mdb Exp $
|
||||
// $Id: Sprite.java,v 1.63 2003/04/20 04:52:33 mdb Exp $
|
||||
|
||||
package com.threerings.media.sprite;
|
||||
|
||||
@@ -35,6 +35,14 @@ public abstract class Sprite extends AbstractMedia
|
||||
super(new Rectangle());
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a sprite with the supplied bounds.
|
||||
*/
|
||||
public Sprite (Rectangle bounds)
|
||||
{
|
||||
super(bounds);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the sprite's x position in screen coordinates. This is the
|
||||
* x coordinate of the sprite's origin, not the upper left of its
|
||||
|
||||
Reference in New Issue
Block a user