Switch to new unified direction constants.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@818 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-12-17 03:34:04 +00:00
parent f51a2e0d0c
commit 7d079a2bec
12 changed files with 87 additions and 178 deletions
@@ -1,5 +1,5 @@
//
// $Id: BundledComponentRepository.java,v 1.4 2001/12/07 01:33:29 mdb Exp $
// $Id: BundledComponentRepository.java,v 1.5 2001/12/17 03:33:41 mdb Exp $
package com.threerings.cast.bundle;
@@ -233,7 +233,7 @@ public class BundledComponentRepository
// and create the necessary multiframe image instances
MultiFrameImage[] frames =
new MultiFrameImage[Sprite.NUM_DIRECTIONS];
new MultiFrameImage[Sprite.DIRECTION_COUNT];
for (int i = 0; i < frames.length; i++) {
frames[i] = new TileSetFrameImage(fset, i);
}
@@ -271,7 +271,7 @@ public class BundledComponentRepository
// documentation inherited
public int getFrameCount ()
{
return _set.getTileCount() / Sprite.NUM_DIRECTIONS;
return _set.getTileCount() / Sprite.DIRECTION_COUNT;
}
// documentation inherited