Example #1
0
 /// <summary>
 /// Initializes a new tile object.
 /// </summary>
 /// <param name="location">The 3D location of this tile in the map.</param>
 /// <param name="movementCost">This value is the movement cost of walking on this tile. It should be between 1 and 100</param>
 public Tile(Point location, int movementCost)
 {
     this.Location     = location;
     this.MovementCost = movementCost;
     Tile.TileCreatedHandler(new TileEventArg(this));
     this.TextureIndex = AssetManager.GetTextureIndex(this.GetTextureName());
 }
Example #2
0
 /// <summary>
 /// Initializes a new tile object.
 /// </summary>
 /// <param name="location">The 3D location of this tile in the map.</param>
 /// <param name="movementCost">This value is the movement cost of walking on this tile. It should be between 1 and 100</param>
 public Tile(Point2D location, int movementCost, AbstractRenderable renderable)
 {
     this.Location     = location;
     this.MovementCost = movementCost;
     Tile.TileCreatedHandler(new TileEventArg(this));
     this.IsWalkable = true;
     this.Renderable = renderable;
 }