From 1fc693523db95dc40104b31556f1b5adc8a48932 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sun, 20 Apr 2003 04:52:33 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/media/sprite/Sprite.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/media/sprite/Sprite.java b/src/java/com/threerings/media/sprite/Sprite.java index acba983cf..a239efbab 100644 --- a/src/java/com/threerings/media/sprite/Sprite.java +++ b/src/java/com/threerings/media/sprite/Sprite.java @@ -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