Declare the return type for these functions.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@953 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -182,7 +182,7 @@ public class AutoFringer
|
|||||||
|
|
||||||
// There's no fringe with the same identifier, so we need to create the tile.
|
// There's no fringe with the same identifier, so we need to create the tile.
|
||||||
var img :Bitmap = null;
|
var img :Bitmap = null;
|
||||||
getTileImageHelper1(img, hashValue, masks, fringers, 0, function (result :Bitmap) {
|
getTileImageHelper1(img, hashValue, masks, fringers, 0, function (result :Bitmap) :void {
|
||||||
frTile.setImage(result);
|
frTile.setImage(result);
|
||||||
});
|
});
|
||||||
fringes.put(frTile, new WeakReference(frTile));
|
fringes.put(frTile, new WeakReference(frTile));
|
||||||
@@ -190,7 +190,7 @@ public class AutoFringer
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function getTileImageHelper1 (img :Bitmap, hashValue :int, masks :Map,
|
protected function getTileImageHelper1 (img :Bitmap, hashValue :int, masks :Map,
|
||||||
fringers :Array, fringerIdx :int, callback :Function)
|
fringers :Array, fringerIdx :int, callback :Function) :void
|
||||||
{
|
{
|
||||||
var fringer :FringerRec = fringers[fringerIdx];
|
var fringer :FringerRec = fringers[fringerIdx];
|
||||||
var indexes :Array = getFringeIndexes(fringer.bits);
|
var indexes :Array = getFringeIndexes(fringer.bits);
|
||||||
@@ -399,8 +399,7 @@ public class AutoFringer
|
|||||||
NORTHWEST | WEST | SOUTHWEST | SOUTH | SOUTHEAST | EAST | NORTHEAST,
|
NORTHWEST | WEST | SOUTHWEST | SOUTH | SOUTHEAST | EAST | NORTHEAST,
|
||||||
|
|
||||||
// all the directions!
|
// all the directions!
|
||||||
NORTH | NORTHEAST | EAST | SOUTHEAST |
|
NORTH | NORTHEAST | EAST | SOUTHEAST | SOUTH | SOUTHWEST | WEST | NORTHWEST
|
||||||
SOUTH | SOUTHWEST | WEST | NORTHWEST
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// A reverse map of the above array, for quickly looking up which tile
|
// A reverse map of the above array, for quickly looking up which tile
|
||||||
@@ -444,4 +443,4 @@ class FringerRec
|
|||||||
return "[base=" + baseset + ", pri=" + priority + ", bits="
|
return "[base=" + baseset + ", pri=" + priority + ", bits="
|
||||||
+ bits.toString(16) + "]";
|
+ bits.toString(16) + "]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user