Highlight the tile under the mouse cursor. Increase the width of a
scene for easier testing. Other minor clean-up. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@51 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: Tile.java,v 1.2 2001/07/14 00:21:24 shaper Exp $
|
||||
// $Id: Tile.java,v 1.3 2001/07/16 00:45:07 shaper Exp $
|
||||
|
||||
package com.threerings.cocktail.miso.tile;
|
||||
|
||||
@@ -24,6 +24,9 @@ public class Tile
|
||||
public static final int HALF_HEIGHT = HEIGHT / 2;
|
||||
public static final int HALF_WIDTH = WIDTH / 2;
|
||||
|
||||
public static final float EDGE_LENGTH = (float)
|
||||
Math.sqrt((HALF_WIDTH * HALF_WIDTH) + (HALF_HEIGHT * HALF_HEIGHT));
|
||||
|
||||
/**
|
||||
* Construct a new tile with the specified identifiers. Intended
|
||||
* only for use by the TileManager. Do not use this method.
|
||||
|
||||
Reference in New Issue
Block a user