diff options
| author | Petr Mrázek | 2011-12-02 10:56:40 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2011-12-02 10:56:40 +0100 |
| commit | f7d78539d34ee5d9529a32fecfe17537ec1b6bee (patch) | |
| tree | 4e3b4c402a9409f5fe1eaf9773ff24a31c4025a9 /plugins/probe.cpp | |
| parent | 9dba6003bc5973fbf99dc778f88f6f3cecf1ab0b (diff) | |
| download | dfhack-f7d78539d34ee5d9529a32fecfe17537ec1b6bee.tar.gz dfhack-f7d78539d34ee5d9529a32fecfe17537ec1b6bee.tar.bz2 dfhack-f7d78539d34ee5d9529a32fecfe17537ec1b6bee.tar.xz | |
Renaming Creatures to Units
Diffstat (limited to 'plugins/probe.cpp')
| -rw-r--r-- | plugins/probe.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/probe.cpp b/plugins/probe.cpp index f76af502..59588185 100644 --- a/plugins/probe.cpp +++ b/plugins/probe.cpp @@ -15,7 +15,7 @@ using namespace std; #include <dfhack/PluginManager.h> #include <vector> #include <string> -#include <dfhack/modules/Creatures.h> +#include <dfhack/modules/Units.h> #include <dfhack/modules/Maps.h> #include <dfhack/modules/Gui.h> #include <dfhack/modules/Materials.h> @@ -57,7 +57,7 @@ DFhackCExport command_result df_cprobe (Core * c, vector <string> & parameters) BEGIN_PROBE: c->Suspend(); DFHack::Gui *Gui = c->getGui(); - DFHack::Creatures * cr = c->getCreatures(); + DFHack::Units * cr = c->getUnits(); int32_t cursorX, cursorY, cursorZ; Gui->getCursorCoords(cursorX,cursorY,cursorZ); if(cursorX == -30000) @@ -70,7 +70,7 @@ DFhackCExport command_result df_cprobe (Core * c, vector <string> & parameters) cr->Start(ncr); for(auto i = 0; i < ncr; i++) { - df_creature * unit = cr->GetCreature( i ); + df_unit * unit = cr->GetCreature( i ); if(unit->x == cursorX && unit->y == cursorY && unit->z == cursorZ) { con.print("Creature %d, race %d (%x), civ %d (%x)\n", unit->id, unit->race, unit->race, unit->civ, unit->civ); |
