Added getPath() to provide access to the path being followed by the
sprite. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1439 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: Sprite.java,v 1.45 2002/05/31 03:38:03 mdb Exp $
|
// $Id: Sprite.java,v 1.46 2002/06/11 05:56:44 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media.sprite;
|
package com.threerings.media.sprite;
|
||||||
|
|
||||||
@@ -291,6 +291,15 @@ public abstract class Sprite
|
|||||||
_path = null;
|
_path = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the path being followed by this sprite or null if the
|
||||||
|
* sprite is not following a path.
|
||||||
|
*/
|
||||||
|
public Path getPath ()
|
||||||
|
{
|
||||||
|
return _path;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called by the active path when it begins.
|
* Called by the active path when it begins.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user