summaryrefslogtreecommitdiff
path: root/plugins/probe.cpp
diff options
context:
space:
mode:
authorQuietust2012-02-13 16:56:33 -0600
committerQuietust2012-02-13 16:56:33 -0600
commitd0a8c2edd8922673d72a18bfd2214ce45126507b (patch)
treeb64220558035888a0cea2f0ee7354f4a20b27ecc /plugins/probe.cpp
parent9f43d61c2c4f1a9ae760158d3e57601e39ff4a24 (diff)
downloaddfhack-d0a8c2edd8922673d72a18bfd2214ce45126507b.tar.gz
dfhack-d0a8c2edd8922673d72a18bfd2214ce45126507b.tar.bz2
dfhack-d0a8c2edd8922673d72a18bfd2214ce45126507b.tar.xz
Move TileTypes to XML, part 1 - a bunch of stuff is now broken
Diffstat (limited to 'plugins/probe.cpp')
-rw-r--r--plugins/probe.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/probe.cpp b/plugins/probe.cpp
index 0e6bfb2d..1281b93c 100644
--- a/plugins/probe.cpp
+++ b/plugins/probe.cpp
@@ -143,7 +143,7 @@ DFhackCExport command_result df_probe (Core * c, vector <string> & parameters)
con.print("\n\n");
}
*/
- int16_t tiletype = mc.tiletypeAt(cursor);
+ df::tiletype tiletype = mc.tiletypeAt(cursor);
df::tile_designation &des = block.designation[tileX][tileY];
/*
if(showDesig)
@@ -169,15 +169,15 @@ DFhackCExport command_result df_probe (Core * c, vector <string> & parameters)
con.print(" = %s",tileName(tiletype));
con.print("\n");
- DFHack::TileShape shape = tileShape(tiletype);
- DFHack::TileMaterial material = tileMaterial(tiletype);
- DFHack::TileSpecial special = tileSpecial(tiletype);
+ df::tiletype_shape shape = tileShape(tiletype);
+ df::tiletype_material material = tileMaterial(tiletype);
+ df::tiletype_special special = tileSpecial(tiletype);
con.print("%-10s: %4d %s\n","Class" ,shape,
- TileShapeString[ shape ]);
+ tiletype_shape::get_key(shape));
con.print("%-10s: %4d %s\n","Material" ,
- material,TileMaterialString[ material ]);
+ material, tiletype_material::get_key(material));
con.print("%-10s: %4d %s\n","Special" ,
- special, TileSpecialString[ special ]);
+ special, tiletype_special::get_key(special));
con.print("%-10s: %4d\n" ,"Variant" ,
tileVariant(tiletype));
con.print("%-10s: %s\n" ,"Direction",