General updating per initial code review. Created EditableSceneView
to separate scene display from editing functionality. Load and initialize managers in a fashion that more appropriately hides the implementation details. Tidied comments up a bit. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@103 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: Tile.java,v 1.6 2001/07/20 08:17:10 shaper Exp $
|
||||
// $Id: Tile.java,v 1.7 2001/07/23 18:52:51 shaper Exp $
|
||||
|
||||
package com.threerings.miso.tile;
|
||||
|
||||
@@ -10,25 +10,33 @@ import java.awt.Image;
|
||||
*/
|
||||
public class Tile
|
||||
{
|
||||
public Image img; // the tile image
|
||||
public short tsid; // the tile set identifier
|
||||
public short tid; // the tile identifier within the set
|
||||
/** The tile image. */
|
||||
public Image img;
|
||||
|
||||
/** The tile set identifier. */
|
||||
public short tsid;
|
||||
|
||||
/** The tile identifier within the set. */
|
||||
public short tid;
|
||||
|
||||
/** The tile height in pixels. */
|
||||
public short height; // the tile height in pixels
|
||||
|
||||
// height and width of a tile image in pixels
|
||||
/** The height and width of a tile image in pixels. */
|
||||
public static final int HEIGHT = 16;
|
||||
public static final int WIDTH = 32;
|
||||
|
||||
// halved values of tile width/height in pixels for use in common
|
||||
// tile-dimension-related calculations
|
||||
/** Halved tile width in pixels for use in common calculations. */
|
||||
public static final int HALF_HEIGHT = HEIGHT / 2;
|
||||
|
||||
/** Halved tile height in pixels for use in common calculations. */
|
||||
public static final int HALF_WIDTH = WIDTH / 2;
|
||||
|
||||
/**
|
||||
* Construct a new tile with the specified identifiers. Intended
|
||||
* only for use by the TileManager. Do not use this method.
|
||||
*
|
||||
* @see com.threerings.miso.TileManager#getTile
|
||||
* @see TileManager#getTile
|
||||
*/
|
||||
public Tile (int tsid, int tid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user