5373597143
forget to update a sprite's tile coordinates when updating its screen coordinates and only TilePath could be used for sprites in the view and generally a huge pain was incurred to avoid what isn't very expensive which is to calculate a sprite's tile coordinates from its screen coordinates when that sprite is involved in a repaint. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2029 542714f4-19e9-0310-aa3c-eee0fc999fb1
23 lines
580 B
Java
23 lines
580 B
Java
//
|
|
// $Id: MisoCharacterSprite.java,v 1.7 2002/12/05 23:06:30 mdb Exp $
|
|
|
|
package com.threerings.miso.scene;
|
|
|
|
import com.threerings.cast.CharacterSprite;
|
|
import com.threerings.miso.tile.BaseTile;
|
|
|
|
/**
|
|
* The miso character sprite extends the basic character sprite to support
|
|
* the notion of tile passability.
|
|
*/
|
|
public class MisoCharacterSprite extends CharacterSprite
|
|
implements Traverser
|
|
{
|
|
// documentation inherited
|
|
public boolean canTraverse (BaseTile tile)
|
|
{
|
|
// by default, passability is solely the province of the tile
|
|
return tile.isPassable();
|
|
}
|
|
}
|