Changed tabs to spaces since not everyone has the same tab stops.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3259 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: Sprite.java,v 1.68 2004/11/12 02:16:04 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
@@ -109,7 +109,7 @@ public abstract class Sprite extends AbstractMedia
|
|||||||
*/
|
*/
|
||||||
public int getWidth ()
|
public int getWidth ()
|
||||||
{
|
{
|
||||||
return _bounds.width;
|
return _bounds.width;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -117,7 +117,7 @@ public abstract class Sprite extends AbstractMedia
|
|||||||
*/
|
*/
|
||||||
public int getHeight ()
|
public int getHeight ()
|
||||||
{
|
{
|
||||||
return _bounds.height;
|
return _bounds.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -142,7 +142,7 @@ public abstract class Sprite extends AbstractMedia
|
|||||||
*/
|
*/
|
||||||
public int getOrientation ()
|
public int getOrientation ()
|
||||||
{
|
{
|
||||||
return _orient;
|
return _orient;
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -187,7 +187,7 @@ public abstract class Sprite extends AbstractMedia
|
|||||||
*/
|
*/
|
||||||
public void paintPath (Graphics2D gfx)
|
public void paintPath (Graphics2D gfx)
|
||||||
{
|
{
|
||||||
if (_path != null) {
|
if (_path != null) {
|
||||||
_path.paint(gfx);
|
_path.paint(gfx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -294,7 +294,7 @@ public abstract class Sprite extends AbstractMedia
|
|||||||
public void pathCompleted (long timestamp)
|
public void pathCompleted (long timestamp)
|
||||||
{
|
{
|
||||||
Path oldpath = _path;
|
Path oldpath = _path;
|
||||||
_path = null;
|
_path = null;
|
||||||
oldpath.wasRemoved(this);
|
oldpath.wasRemoved(this);
|
||||||
if (_observers != null) {
|
if (_observers != null) {
|
||||||
_observers.apply(new CompletedOp(this, oldpath, timestamp));
|
_observers.apply(new CompletedOp(this, oldpath, timestamp));
|
||||||
|
|||||||
Reference in New Issue
Block a user